mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-21 18:11:11 +00:00
minetest. to core.
This commit is contained in:
parent
b6dfae0221
commit
482c4d69b0
3 changed files with 3 additions and 3 deletions
|
@ -710,7 +710,7 @@ core.register_chatcommand("time", {
|
|||
local hour = (current_time - minutes) / 60
|
||||
return true, ("Current time is %d:%02d"):format(hour, minutes)
|
||||
end
|
||||
local player_privs = minetest.get_player_privs(name)
|
||||
local player_privs = core.get_player_privs(name)
|
||||
if not player_privs.settime then
|
||||
return false, "You don't have permission to run this command " ..
|
||||
"(missing privilege: settime)."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue