In the new gamemode, everything will be based on access rights (which are per-player) rather than the current "admin"/"moderator" way. This allows us to give any kind of rights to anyone who we thing is worthy to have these specific rights. Meaning admin rights who can't do everything a loyal player can!
[table]
[tr]
[td]Right ID [/td]
[td]Right Tag [/td]
[td]Description[/td]
[td] [/td]
[/tr]
[tr]
[td]1[/td]
[td]CAN_JOIN[/td]
[td]Indicates that this player is allowed to join the server. [/td]
[td][all][/td]
[/tr]
[/table]
The tags can be used in server-side scripts (access related stuff shouldn't occur in client-side scripts anyway) using the following syntax. All tags are automatically registered using the LVP Core and have the ID associated with the right, as described above. It does not matter whether you use the ID or the enum-value.
echoMessage ( "Value of the CAN_JOIN right is: " .. LVP_RIGHTS.CAN_JOIN )
Mind the dot in the middle of the right-value. When you use it in the LVP C++ Core, whatever you might be doing there in the first place, that dot has to become another underscore so the define would be LVP_RIGHTS_CAN_JOIN, carrying the same value as the LUA value.
Coloured Circle value's:
[all] Indicates that all players get this right by default
[table]
[tr]
[td]Right ID [/td]
[td]Right Tag [/td]
[td]Description[/td]
[td] [/td]
[/tr]
[tr]
[td]1[/td]
[td]CAN_JOIN[/td]
[td]Indicates that this player is allowed to join the server. [/td]
[td][all][/td]
[/tr]
[/table]
The tags can be used in server-side scripts (access related stuff shouldn't occur in client-side scripts anyway) using the following syntax. All tags are automatically registered using the LVP Core and have the ID associated with the right, as described above. It does not matter whether you use the ID or the enum-value.
echoMessage ( "Value of the CAN_JOIN right is: " .. LVP_RIGHTS.CAN_JOIN )
Mind the dot in the middle of the right-value. When you use it in the LVP C++ Core, whatever you might be doing there in the first place, that dot has to become another underscore so the define would be LVP_RIGHTS_CAN_JOIN, carrying the same value as the LUA value.
Coloured Circle value's:
[all] Indicates that all players get this right by default