sfan5
1b68fb7683
Don't allow banning in singleplayer
...
fixes #11819
2022-05-29 14:00:19 +02:00
Wuzzy
ac5e8176b9
Add relative numbers for commands by prepending ~ ( #9588 )
...
* Add relative numbers for commands by prepending ~
* Some builtin code cleanup
* Disallow nan and inf in minetest.string_to_area
* Remove unused local variable teleportee (makes Luacheck happy)
* Clean up core.string_to_pos
* Make area parsing less permissive
* Rewrite tests as busted tests
* /time: Fix negative minutes not working
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2022-05-22 10:28:24 -04:00
SmallJoker
1c8614ac9a
Builtin: Allow to revoke unknown privileges
2022-04-24 21:08:33 +02:00
olive
062dd8dabc
Send chat error when attemping to /set a secure setting ( #12193 )
...
Attempting to /set a secure setting will now say that is disallowed.
Previously this would shut down the server.
Reading secure settings via /set is still allowed.
2022-04-16 18:50:36 +02:00
Dmitry Kostenko
cf650fcaac
Avoid negation of comparison operator (luacheck warning)
2022-04-01 09:00:39 +02:00
sfan5
a9bccb964f
Raise max mapgen limit constant to align with mapblock size
2022-01-30 13:49:26 +01:00
SmallJoker
47735c273c
Builtin: Sanity-check /time inputs ( #11993 )
...
This enforces the documented bounds for the /time command.
2022-01-27 22:23:14 +01:00
AFCMS
8cc04e0cb4
Run on_grant and on_revoke callbacks after privs change ( #11387 )
...
Callbacks were run too early. This changes the order to call after the privs are updated.
2021-06-30 20:40:45 +02:00
Wuzzy
dc165fe942
Message for empty list output in /haspriv & /mods ( #11149 )
2021-06-12 18:48:21 +02:00
DS
8f085e02a1
Add metatables to lua vectors ( #11039 )
...
Add backwards-compatible metatable functions for vectors.
2021-06-04 21:22:33 +02:00
Wuzzy
d7a4479eb3
Fix misleading /shutdown command syntax
2021-05-29 11:45:04 +02:00
Wuzzy
7ad8ca62dc
Clean up various misleading and/or confusing messages and texts related to priv changes ( #11126 )
2021-03-29 19:57:48 +02:00
HybridDog
fc1512cca6
Translate chatcommand delay message and replace minetest with core ( #11113 )
2021-03-26 20:59:05 +01:00
HybridDog
88b052cbea
Chatcommands: Show the execution time if the command takes a long time ( #10472 )
2021-03-13 11:18:25 +01:00
Wuzzy
c48bbfd067
Fix misleading chat messages of /clearobjects ( #10690 )
2021-03-08 20:27:32 +01:00
Wuzzy
cafad6ac03
Translate builtin ( #10693 )
...
This PR is the second attempt to translate builtin.
Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
2021-03-05 16:29:48 +01:00
HybridDog
92f4c68c0c
Restructure teleport command code ( #9706 )
2021-02-24 11:46:39 +01:00
Elijah Duffy
7d3641021b
Lua API: Add register_on_chatcommand to SSM and CSM ( #7862 )
...
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
...
#9440
2020-10-03 17:33:43 +01:00
Emojigit
abfea69e5f
Change last-login
command to show player name in output ( #10263 )
2020-08-06 19:30:41 +02:00
sorcerykid
15ba75e4cf
Add on_authplayer callback and 'last_login' to on_joinplayer ( #9574 )
...
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 ( #9824 )
2020-05-16 21:41:41 +02:00
Zughy
4e997e9d04
Document inf value in rollback commands ( #9789 )
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> ( #9584 )
2020-04-26 21:15:05 +02:00
Wuzzy
1441281809
Fix some chatcommands not returning a value ( #9503 )
2020-03-14 15:01:22 +01:00
ANAND
ec3224dce2
/privs: Delimit output list of privs with commas ( #9224 )
2019-12-20 19:15:40 +01:00
ANAND
4b6bff46e1
Use a safer implementation of gsub in core.chat_format_message ( #9133 )
...
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 ( #9088 )
...
* Fix ban chatcommand description
* Correct ban API documentation
2019-11-05 19:24:51 +01:00
Alistair Findlay
5f835a72b2
Builtin: Improve /clearobjects message ( #9084 )
2019-11-02 19:28:55 +01:00
DS
16865a5bf6
Allow grep-ing for on_grant and on_revoke ( #8958 )
...
Just two code comments are added.
2019-09-29 13:40:15 +02:00
Hugo Locurcio
d364b6d0a6
Rename "private messages" to "direct messages" ( #8971 )
...
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 ( #8529 )
2019-08-08 17:04:46 +01:00