Commit Graph

16 Commits

Author SHA1 Message Date
Elijah Duffy
7d3641021b
Lua API: Add register_on_chatcommand to SSM and CSM ()
Allows catching a chatcommand call just after the command and the
parameters are parsed but before its existence is checked and before the
corresponding function is run. Returning `true` from a callback function
will prevent default handling of the command leaving mods to handle the
command manually.
2020-10-03 17:38:08 +01:00
HybridDog
4b423ee9b1
Chatcommand: Show help message if func returns false without message
2020-10-03 17:33:43 +01:00
Emojigit
abfea69e5f
Change last-login command to show player name in output () 2020-08-06 19:30:41 +02:00
sorcerykid
15ba75e4cf Add on_authplayer callback and 'last_login' to on_joinplayer ()
Replace on_auth_fail callback with more versatile on_authplayer
    Better clarify account login process in Lua API documentation
    Change initial timestamp for newly registered accounts to -1
2020-05-23 13:25:29 +02:00
Wuzzy
ab745685c7
Error msg if trying to teleport attached player () 2020-05-16 21:41:41 +02:00
Zughy
4e997e9d04
Document inf value in rollback commands () 2020-05-13 13:56:26 +02:00
sfan5
d3f50f216f builtin: Correctly indicate failure in /spawnentity 2020-04-27 06:58:34 +02:00
David Leal
2fe4641c1e
Add new command /revokeme <priv> () 2020-04-26 21:15:05 +02:00
Wuzzy
1441281809
Fix some chatcommands not returning a value () 2020-03-14 15:01:22 +01:00
ANAND
ec3224dce2 /privs: Delimit output list of privs with commas () 2019-12-20 19:15:40 +01:00
ANAND
4b6bff46e1 Use a safer implementation of gsub in core.chat_format_message ()
This search-and-replace implementation does not use Lua pattern-matching
2019-11-25 20:03:34 +01:00
sfan5
15a030ec9f
Improve documentation around banning ()
* Fix ban chatcommand description
* Correct ban API documentation
2019-11-05 19:24:51 +01:00
Alistair Findlay
5f835a72b2 Builtin: Improve /clearobjects message () 2019-11-02 19:28:55 +01:00
DS
16865a5bf6 Allow grep-ing for on_grant and on_revoke ()
Just two code comments are added.
2019-09-29 13:40:15 +02:00
Hugo Locurcio
d364b6d0a6 Rename "private messages" to "direct messages" ()
These messages can be read by server administrators, which makes them
not actually private.
2019-09-22 21:48:36 +01:00
ANAND
d1c27c7e80 Allow customizing chat message format () 2019-08-08 17:04:46 +01:00