Commit Graph

7 Commits

Author SHA1 Message Date
luk3yx bdd68b0e32 Add luacheck and /shadow. 2021-02-06 13:35:28 +13:00
luk3yx 548c65d26f Add cloaked chat
• Allow cloaked players to chat to other players with the "cloaking" privilege.
 • Add "/cloak_chat" and "/cloak-chat" to allow players to send chat messages into cloaked chat without being cloaked.
 • Allow "/teleport" to teleport cloaked players (provided the player running the command has the "cloaking" privilege).
 • Replace 'cloaking.fn_name = function(...)' with 'function cloaking.fn_name(...)'.
 • Update copyrights.
 • Add Star Trek reference to README.md.
2019-02-10 13:49:56 +13:00
luk3yx fdb1006fac Add a 'cloaking' privilege.
Allows players to cloak and uncloak without the 'privs' privilege. You will need to '/grantme cloaking' if you already have the 'privs' privilege to continue using cloaking.
2018-10-09 11:45:22 +13:00
luk3yx 56628b35ee Remove trailing spaces 2018-09-14 16:30:17 +12:00
luk3yx 271e978d98 Bugfixes
• Make sure sent chat messages aren't chatcommands (fixes #2)
• Add checks to cloaking.cloak() and cloaking.uncloak().
2018-07-26 07:29:19 +12:00
luk3yx b91825abd1 Prevent chatcommands being executed while cloaked
Prevents chatcommands being executed while cloaked. Currently the best way of doing it is iterating over every command and modifying it. Mods may prevent this from happening by setting allow_while_cloaked in the chatcommand definition.
2018-04-02 08:01:04 +12:00
luk3yx e52a34b98a Change file structure
Split the main code and the chatcommands out into separate files.
2018-04-01 18:31:55 +12:00