Fix params
This commit is contained in:
parent
a367944605
commit
7eeb5a0a56
22
init.lua
22
init.lua
@ -27,7 +27,7 @@ local function hobble(user, target)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("hobble", {
|
minetest.register_chatcommand("hobble", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Prevent player jumping.",
|
description = "Prevent player jumping.",
|
||||||
func = function(name, target)
|
func = function(name, target)
|
||||||
@ -58,7 +58,7 @@ local function slowmo(name, target)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("slowmo", {
|
minetest.register_chatcommand("slowmo", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Reduce player movement speed.",
|
description = "Reduce player movement speed.",
|
||||||
func = function(name, target)
|
func = function(name, target)
|
||||||
@ -89,7 +89,7 @@ local function noglitch(name, target)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("noglitch", {
|
minetest.register_chatcommand("noglitch", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Disable sneak glitch for a player.",
|
description = "Disable sneak glitch for a player.",
|
||||||
func = function(name, target)
|
func = function(name, target)
|
||||||
@ -120,7 +120,7 @@ local function freeze(name, target)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("freeze", {
|
minetest.register_chatcommand("freeze", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Prevent player movement.",
|
description = "Prevent player movement.",
|
||||||
func = function(name, target)
|
func = function(name, target)
|
||||||
@ -151,7 +151,7 @@ local function getlost(name,target)
|
|||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("getlost", {
|
minetest.register_chatcommand("getlost", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Prevent player from using the minimap.",
|
description = "Prevent player from using the minimap.",
|
||||||
func = function(name, target)
|
func = function(name, target)
|
||||||
@ -189,7 +189,7 @@ end)
|
|||||||
|
|
||||||
-- reset player physics
|
-- reset player physics
|
||||||
minetest.register_chatcommand("setfree",{
|
minetest.register_chatcommand("setfree",{
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Reset player movement.",
|
description = "Reset player movement.",
|
||||||
func = function(name, target)
|
func = function(name, target)
|
||||||
@ -253,7 +253,7 @@ end)
|
|||||||
|
|
||||||
-- put a player in the cage
|
-- put a player in the cage
|
||||||
minetest.register_chatcommand("cage", {
|
minetest.register_chatcommand("cage", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Put a player in the cage.",
|
description = "Put a player in the cage.",
|
||||||
func = function(warden_name, target_name)
|
func = function(warden_name, target_name)
|
||||||
@ -293,7 +293,7 @@ minetest.register_chatcommand("cage", {
|
|||||||
|
|
||||||
-- free a player from the cage
|
-- free a player from the cage
|
||||||
minetest.register_chatcommand("uncage", {
|
minetest.register_chatcommand("uncage", {
|
||||||
targets = "<person>",
|
params = "<person>",
|
||||||
privs = {secret=true},
|
privs = {secret=true},
|
||||||
description = "Free a player from the cage.",
|
description = "Free a player from the cage.",
|
||||||
func = function(warden_name, target_name)
|
func = function(warden_name, target_name)
|
||||||
@ -329,7 +329,7 @@ minetest.register_chatcommand("uncage", {
|
|||||||
|
|
||||||
-- list caged players
|
-- list caged players
|
||||||
minetest.register_chatcommand("list_caged", {
|
minetest.register_chatcommand("list_caged", {
|
||||||
targets = "",
|
params = "",
|
||||||
description = "List all caged players.",
|
description = "List all caged players.",
|
||||||
privs = {server = true},
|
privs = {server = true},
|
||||||
func = function (_, _)
|
func = function (_, _)
|
||||||
@ -349,7 +349,7 @@ minetest.register_chatcommand("list_caged", {
|
|||||||
vanished_players = {}
|
vanished_players = {}
|
||||||
|
|
||||||
minetest.register_chatcommand("vanish", {
|
minetest.register_chatcommand("vanish", {
|
||||||
targets = "",
|
params = "",
|
||||||
description = "Make user invisible",
|
description = "Make user invisible",
|
||||||
privs = {hidden_one = true},
|
privs = {hidden_one = true},
|
||||||
func = function(user)
|
func = function(user)
|
||||||
@ -372,7 +372,7 @@ minetest.register_chatcommand("vanish", {
|
|||||||
|
|
||||||
-- announcements
|
-- announcements
|
||||||
minetest.register_chatcommand("proclaim", {
|
minetest.register_chatcommand("proclaim", {
|
||||||
targets = "<text>",
|
params = "<text>",
|
||||||
description = "Sends text to all players",
|
description = "Sends text to all players",
|
||||||
privs = {server = true},
|
privs = {server = true},
|
||||||
func = function (user, text)
|
func = function (user, text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user