Various bugfixes on orgs and minetest chatcommands
This commit is contained in:
@ -2,9 +2,10 @@
|
||||
-- Minetest commands
|
||||
-- ===================================================================
|
||||
|
||||
command_list = {} -- user-facing table of commands
|
||||
|
||||
local chat_table -- MT chat command definitions table
|
||||
local regchat -- Chat-command registration function
|
||||
local command_list = {} -- user-facing list of commands
|
||||
|
||||
regchat = minetest.register_chatcommand
|
||||
|
||||
@ -25,6 +26,21 @@ regchat(
|
||||
end,
|
||||
})
|
||||
|
||||
-- ===================================================================
|
||||
-- /reset
|
||||
-- For testing only
|
||||
-- Clears the system and recreates instance with all players
|
||||
regchat(
|
||||
"reset", {
|
||||
privs = {},
|
||||
func = function(user)
|
||||
modpol.reset_orgs();
|
||||
return true, "Reset orgs"
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
||||
-- ===================================================================
|
||||
-- /addorg /add_org
|
||||
-- This code defines a chat command which creates a new
|
||||
|
Reference in New Issue
Block a user