[Mod] Yet another show-people-rules thing [git][newplayer]
Posted: Wed May 18, 2016 03:42
Colored text enabled! (will only appear for very up-to-date clients/servers)
Description:
Shows rules to players that don't have interact, and allows them to either accept or reject them, granting interact if they agree to them. It can also be configured to require a "keyword" from the rules to be entered, and contains an in-game rule editor for admin use. The "keyword" is also randomly chosen from a list each time the rules are opened.
Privileges:
server - Allows the rule editor and certain chat commands to be used (more on that below)
Chat Commands:
/rules - Shows you the rules. Agree/don't agree buttons will be present if you don't have interact, and a keyword field is also shown if any keywords are set. In that case, all occurrences of the string "@KEYWORD" in the rules are replaced by a randomly-chosen keyword, as long as you don't already have interact (if you do, they're replaced with "[Hidden because you already have interact]", unless you also have the "server" priv). Pressing the disagree button will allow you to play (without interact), but there will be bright red text in the HUD explaining the situation. If you have the "server" priv, an "edit" button will also be shown on this screen.
/editrules (requires "server" priv) - Opens the rule editor (same as the edit button above) where the rules can be edited. "Save"... saves, and "Cancel" cancels :P
/set_no_interact_spawn (requires "server" priv) - Sets the spawn point for players without interact to your current location.
/set_interact_spawn (requires "server" priv) - Sets the spawn point for players with interact to your current location.(1)
/addkeyword [keyword] (requires the "server" priv) - Adds the given keyword to the list.
/delkeyword [keyword] (requires the "server" priv) - Removes the given keyword from the list.
/getkeywords (requires the "server" priv)(2) - Shows the currently set keywords.
/spawn - Teleports you to the appropriate spawn point based on whether you have interact or not.
License: here
Dependencies: None
Download: ZIP or Git
(1) If you are using static_spawnpoint, this should likely be set to the same place as that.
(2) This way, players that already have interact can't see the keywords.
Description:
Shows rules to players that don't have interact, and allows them to either accept or reject them, granting interact if they agree to them. It can also be configured to require a "keyword" from the rules to be entered, and contains an in-game rule editor for admin use. The "keyword" is also randomly chosen from a list each time the rules are opened.
Privileges:
server - Allows the rule editor and certain chat commands to be used (more on that below)
Chat Commands:
/rules - Shows you the rules. Agree/don't agree buttons will be present if you don't have interact, and a keyword field is also shown if any keywords are set. In that case, all occurrences of the string "@KEYWORD" in the rules are replaced by a randomly-chosen keyword, as long as you don't already have interact (if you do, they're replaced with "[Hidden because you already have interact]", unless you also have the "server" priv). Pressing the disagree button will allow you to play (without interact), but there will be bright red text in the HUD explaining the situation. If you have the "server" priv, an "edit" button will also be shown on this screen.
/editrules (requires "server" priv) - Opens the rule editor (same as the edit button above) where the rules can be edited. "Save"... saves, and "Cancel" cancels :P
/set_no_interact_spawn (requires "server" priv) - Sets the spawn point for players without interact to your current location.
/set_interact_spawn (requires "server" priv) - Sets the spawn point for players with interact to your current location.(1)
/addkeyword [keyword] (requires the "server" priv) - Adds the given keyword to the list.
/delkeyword [keyword] (requires the "server" priv) - Removes the given keyword from the list.
/getkeywords (requires the "server" priv)(2) - Shows the currently set keywords.
/spawn - Teleports you to the appropriate spawn point based on whether you have interact or not.
License: here
Dependencies: None
Download: ZIP or Git
(1) If you are using static_spawnpoint, this should likely be set to the same place as that.
(2) This way, players that already have interact can't see the keywords.