mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-26 13:25:27 +01:00
minetest. to core.
This commit is contained in:
@@ -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)."
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
local scriptpath = minetest.get_builtin_path()..DIR_DELIM
|
||||
local scriptpath = core.get_builtin_path()..DIR_DELIM
|
||||
local commonpath = scriptpath.."common"..DIR_DELIM
|
||||
local gamepath = scriptpath.."game"..DIR_DELIM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user