diff options
author | sfan5 <sfan5@live.de> | 2014-10-25 07:53:20 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2014-10-25 07:53:20 +0200 |
commit | fb49cc4bccef07c6ae01ad720fbc7a427e14e7d2 (patch) | |
tree | ea17e9c6e87af555427f1ec9c8ce9bce2be66c57 /worldedit_commands | |
parent | eb88bf6adee9a1a63f129040020d2730d84fb8f1 (diff) |
Revert "Use "we-" prefix for commands"
This is currently being discussed, see #62.
This reverts commit 1024eace6f342a340ef84583b2c0c97d657ad326.
Diffstat (limited to 'worldedit_commands')
-rw-r--r-- | worldedit_commands/init.lua | 90 | ||||
-rw-r--r-- | worldedit_commands/safe.lua | 6 |
2 files changed, 48 insertions, 48 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 6fce8f0..93e594a 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -72,7 +72,7 @@ worldedit.player_axis = function(name) return "z", dir.z > 0 and 1 or -1
end
-minetest.register_chatcommand("we-about", {
+minetest.register_chatcommand("/about", {
params = "",
description = "Get information about the mod",
func = function(name, param)
@@ -80,7 +80,7 @@ minetest.register_chatcommand("we-about", { end,
})
-minetest.register_chatcommand("we-inspect", {
+minetest.register_chatcommand("/inspect", {
params = "on/off/1/0/true/false/yes/no/enable/disable/<blank>",
description = "Enable or disable node inspection",
privs = {worldedit=true},
@@ -113,7 +113,7 @@ minetest.register_on_punchnode(function(pos, node, puncher) end
end)
-minetest.register_chatcommand("we-reset", {
+minetest.register_chatcommand("/reset", {
params = "",
description = "Reset the region so that it is empty",
privs = {worldedit=true},
@@ -127,7 +127,7 @@ minetest.register_chatcommand("we-reset", { end,
})
-minetest.register_chatcommand("we-mark", {
+minetest.register_chatcommand("/mark", {
params = "",
description = "Show markers at the region positions",
privs = {worldedit=true},
@@ -138,7 +138,7 @@ minetest.register_chatcommand("we-mark", { end,
})
-minetest.register_chatcommand("we-unmark", {
+minetest.register_chatcommand("/unmark", {
params = "",
description = "Hide markers if currently shown",
privs = {worldedit=true},
@@ -154,7 +154,7 @@ minetest.register_chatcommand("we-unmark", { end,
})
-minetest.register_chatcommand("we-pos1", {
+minetest.register_chatcommand("/pos1", {
params = "",
description = "Set WorldEdit region position 1 to the player's location",
privs = {worldedit=true},
@@ -167,7 +167,7 @@ minetest.register_chatcommand("we-pos1", { end,
})
-minetest.register_chatcommand("we-pos2", {
+minetest.register_chatcommand("/pos2", {
params = "",
description = "Set WorldEdit region position 2 to the player's location",
privs = {worldedit=true},
@@ -180,7 +180,7 @@ minetest.register_chatcommand("we-pos2", { end,
})
-minetest.register_chatcommand("we-p", {
+minetest.register_chatcommand("/p", {
params = "set/set1/set2/get",
description = "Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region",
privs = {worldedit=true},
@@ -211,7 +211,7 @@ minetest.register_chatcommand("we-p", { end,
})
-minetest.register_chatcommand("we-fixedpos", {
+minetest.register_chatcommand("/fixedpos", {
params = "set1/set2 x y z",
description = "Set a WorldEdit region position to the position at (<x>, <y>, <z>)",
privs = {worldedit=true},
@@ -259,7 +259,7 @@ minetest.register_on_punchnode(function(pos, node, puncher) end
end)
-minetest.register_chatcommand("we-volume", {
+minetest.register_chatcommand("/volume", {
params = "",
description = "Display the volume of the current WorldEdit region",
privs = {worldedit=true},
@@ -279,7 +279,7 @@ minetest.register_chatcommand("we-volume", { end,
})
-minetest.register_chatcommand("we-set", {
+minetest.register_chatcommand("/set", {
params = "<node>",
description = "Set the current WorldEdit region to <node>",
privs = {worldedit=true},
@@ -295,7 +295,7 @@ minetest.register_chatcommand("we-set", { end, check_region),
})
-minetest.register_chatcommand("we-mix", {
+minetest.register_chatcommand("/mix", {
params = "<node1> ...",
description = "Fill the current WorldEdit region with a random mix of <node1>, ...",
privs = {worldedit=true},
@@ -335,7 +335,7 @@ local check_replace = function(name, param) return check_region(name, param)
end
-minetest.register_chatcommand("we-replace", {
+minetest.register_chatcommand("/replace", {
params = "<search node> <replace node>",
description = "Replace all instances of <search node> with <replace node> in the current WorldEdit region",
privs = {worldedit=true},
@@ -348,7 +348,7 @@ minetest.register_chatcommand("we-replace", { end, check_replace),
})
-minetest.register_chatcommand("we-replaceinverse", {
+minetest.register_chatcommand("/replaceinverse", {
params = "<search node> <replace node>",
description = "Replace all nodes other than <search node> with <replace node> in the current WorldEdit region",
privs = {worldedit=true},
@@ -376,7 +376,7 @@ local check_sphere = function(name, param) return math.ceil((4 * math.pi * (tonumber(radius) ^ 3)) / 3) --volume of sphere
end
-minetest.register_chatcommand("we-hollowsphere", {
+minetest.register_chatcommand("/hollowsphere", {
params = "<radius> <node>",
description = "Add hollow sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>",
privs = {worldedit=true},
@@ -388,7 +388,7 @@ minetest.register_chatcommand("we-hollowsphere", { end, check_sphere),
})
-minetest.register_chatcommand("we-sphere", {
+minetest.register_chatcommand("/sphere", {
params = "<radius> <node>",
description = "Add sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>",
privs = {worldedit=true},
@@ -415,7 +415,7 @@ local check_dome = function(name, param) return math.ceil((2 * math.pi * (tonumber(radius) ^ 3)) / 3) --volume of dome
end
-minetest.register_chatcommand("we-hollowdome", {
+minetest.register_chatcommand("/hollowdome", {
params = "<radius> <node>",
description = "Add hollow dome centered at WorldEdit position 1 with radius <radius>, composed of <node>",
privs = {worldedit=true},
@@ -427,7 +427,7 @@ minetest.register_chatcommand("we-hollowdome", { end, check_dome),
})
-minetest.register_chatcommand("we-dome", {
+minetest.register_chatcommand("/dome", {
params = "<radius> <node>",
description = "Add dome centered at WorldEdit position 1 with radius <radius>, composed of <node>",
privs = {worldedit=true},
@@ -454,7 +454,7 @@ local check_cylinder = function(name, param) return math.ceil(math.pi * (tonumber(radius) ^ 2) * tonumber(length))
end
-minetest.register_chatcommand("we-hollowcylinder", {
+minetest.register_chatcommand("/hollowcylinder", {
params = "x/y/z/? <length> <radius> <node>",
description = "Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>",
privs = {worldedit=true},
@@ -471,7 +471,7 @@ minetest.register_chatcommand("we-hollowcylinder", { end, check_cylinder),
})
-minetest.register_chatcommand("we-cylinder", {
+minetest.register_chatcommand("/cylinder", {
params = "x/y/z/? <length> <radius> <node>",
description = "Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>",
privs = {worldedit=true},
@@ -488,7 +488,7 @@ minetest.register_chatcommand("we-cylinder", { end, check_cylinder),
})
-minetest.register_chatcommand("we-pyramid", {
+minetest.register_chatcommand("/pyramid", {
params = "x/y/z/? <height> <node>",
description = "Add pyramid centered at WorldEdit position 1 along the x/y/z/? axis with height <height>, composed of <node>",
privs = {worldedit=true},
@@ -520,7 +520,7 @@ minetest.register_chatcommand("we-pyramid", { end),
})
-minetest.register_chatcommand("we-spiral", {
+minetest.register_chatcommand("/spiral", {
params = "<length> <height> <space> <node>",
description = "Add spiral centered at WorldEdit position 1 with side length <length>, height <height>, space between walls <space>, composed of <node>",
privs = {worldedit=true},
@@ -546,7 +546,7 @@ minetest.register_chatcommand("we-spiral", { end),
})
-minetest.register_chatcommand("we-copy", {
+minetest.register_chatcommand("/copy", {
params = "x/y/z/? <amount>",
description = "Copy the current WorldEdit region along the x/y/z/? axis by <amount> nodes",
privs = {worldedit=true},
@@ -571,7 +571,7 @@ minetest.register_chatcommand("we-copy", { end),
})
-minetest.register_chatcommand("we-move", {
+minetest.register_chatcommand("/move", {
params = "x/y/z/? <amount>",
description = "Move the current WorldEdit region along the x/y/z/? axis by <amount> nodes",
privs = {worldedit=true},
@@ -598,7 +598,7 @@ minetest.register_chatcommand("we-move", { end, check_region),
})
-minetest.register_chatcommand("we-stack", {
+minetest.register_chatcommand("/stack", {
params = "x/y/z/? <count>",
description = "Stack the current WorldEdit region along the x/y/z/? axis <count> times",
privs = {worldedit=true},
@@ -624,7 +624,7 @@ minetest.register_chatcommand("we-stack", { end),
})
-minetest.register_chatcommand("we-stack2", {
+minetest.register_chatcommand("/stack2", {
params = "<count> <x> <y> <z>",
description = "Stack the current WorldEdit region <count> times by offset <x>, <y>, <z>",
privs = {worldedit=true},
@@ -660,7 +660,7 @@ minetest.register_chatcommand("we-stack2", { })
-minetest.register_chatcommand("we-stretch", {
+minetest.register_chatcommand("/stretch", {
params = "<stretchx> <stretchy> <stretchz>",
description = "Scale the current WorldEdit positions and region by a factor of <stretchx>, <stretchy>, <stretchz> along the X, Y, and Z axes, repectively, with position 1 as the origin",
privs = {worldedit=true},
@@ -694,7 +694,7 @@ minetest.register_chatcommand("we-stretch", { end),
})
-minetest.register_chatcommand("we-transpose", {
+minetest.register_chatcommand("/transpose", {
params = "x/y/z/? x/y/z/?",
description = "Transpose the current WorldEdit region along the x/y/z/? and x/y/z/? axes",
privs = {worldedit=true},
@@ -727,7 +727,7 @@ minetest.register_chatcommand("we-transpose", { end),
})
-minetest.register_chatcommand("we-flip", {
+minetest.register_chatcommand("/flip", {
params = "x/y/z/?",
description = "Flip the current WorldEdit region along the x/y/z/? axis",
privs = {worldedit=true},
@@ -745,7 +745,7 @@ minetest.register_chatcommand("we-flip", { end),
})
-minetest.register_chatcommand("we-rotate", {
+minetest.register_chatcommand("/rotate", {
params = "<axis> <angle>",
description = "Rotate the current WorldEdit region around the axis <axis> by angle <angle> (90 degree increment)",
privs = {worldedit=true},
@@ -777,7 +777,7 @@ minetest.register_chatcommand("we-rotate", { end),
})
-minetest.register_chatcommand("we-orient", {
+minetest.register_chatcommand("/orient", {
params = "<angle>",
description = "Rotate oriented nodes in the current WorldEdit region around the Y axis by angle <angle> (90 degree increment)",
privs = {worldedit=true},
@@ -800,7 +800,7 @@ minetest.register_chatcommand("we-orient", { end),
})
-minetest.register_chatcommand("we-fixlight", {
+minetest.register_chatcommand("/fixlight", {
params = "",
description = "Fix the lighting in the current WorldEdit region",
privs = {worldedit=true},
@@ -810,7 +810,7 @@ minetest.register_chatcommand("we-fixlight", { end),
})
-minetest.register_chatcommand("we-hide", {
+minetest.register_chatcommand("/hide", {
params = "",
description = "Hide all nodes in the current WorldEdit region non-destructively",
privs = {worldedit=true},
@@ -820,7 +820,7 @@ minetest.register_chatcommand("we-hide", { end),
})
-minetest.register_chatcommand("we-suppress", {
+minetest.register_chatcommand("/suppress", {
params = "<node>",
description = "Suppress all <node> in the current WorldEdit region non-destructively",
privs = {worldedit=true},
@@ -831,7 +831,7 @@ minetest.register_chatcommand("we-suppress", { end, check_set),
})
-minetest.register_chatcommand("we-highlight", {
+minetest.register_chatcommand("/highlight", {
params = "<node>",
description = "Highlight <node> in the current WorldEdit region by hiding everything else non-destructively",
privs = {worldedit=true},
@@ -842,7 +842,7 @@ minetest.register_chatcommand("we-highlight", { end, check_set),
})
-minetest.register_chatcommand("we-restore", {
+minetest.register_chatcommand("/restore", {
params = "",
description = "Restores nodes hidden with WorldEdit in the current WorldEdit region",
privs = {worldedit=true},
@@ -852,7 +852,7 @@ minetest.register_chatcommand("we-restore", { end),
})
-minetest.register_chatcommand("we-save", {
+minetest.register_chatcommand("/save", {
params = "<file>",
description = "Save the current WorldEdit region to \"(world folder)/schems/<file>.we\"",
privs = {worldedit=true},
@@ -885,7 +885,7 @@ minetest.register_chatcommand("we-save", { end),
})
-minetest.register_chatcommand("we-allocate", {
+minetest.register_chatcommand("/allocate", {
params = "<file>",
description = "Set the region defined by nodes from \"(world folder)/schems/<file>.we\" as the current WorldEdit region",
privs = {worldedit=true},
@@ -929,7 +929,7 @@ minetest.register_chatcommand("we-allocate", { end,
})
-minetest.register_chatcommand("we-load", {
+minetest.register_chatcommand("/load", {
params = "<file>",
description = "Load nodes from \"(world folder)/schems/<file>[.we[m]]\" with position 1 of the current WorldEdit region as the origin",
privs = {worldedit=true},
@@ -981,7 +981,7 @@ minetest.register_chatcommand("we-load", { end,
})
-minetest.register_chatcommand("we-lua", {
+minetest.register_chatcommand("/lua", {
params = "<code>",
description = "Executes <code> as a Lua chunk in the global namespace",
privs = {worldedit=true, server=true},
@@ -1000,7 +1000,7 @@ minetest.register_chatcommand("we-lua", { end,
})
-minetest.register_chatcommand("we-luatransform", {
+minetest.register_chatcommand("/luatransform", {
params = "<code>",
description = "Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region",
privs = {worldedit=true, server=true},
@@ -1020,7 +1020,7 @@ minetest.register_chatcommand("we-luatransform", { end),
})
-minetest.register_chatcommand("we-mtschemcreate", {
+minetest.register_chatcommand("/mtschemcreate", {
params = "<file>",
description = "Save the current WorldEdit region using the Minetest Schematic format to \"(world folder)/schems/<filename>.mts\"",
privs = {worldedit=true},
@@ -1045,7 +1045,7 @@ minetest.register_chatcommand("we-mtschemcreate", { end),
})
-minetest.register_chatcommand("we-mtschemplace", {
+minetest.register_chatcommand("/mtschemplace", {
params = "<file>",
description = "Load nodes from \"(world folder)/schems/<file>.mts\" with position 1 of the current WorldEdit region as the origin",
privs = {worldedit=true},
@@ -1068,7 +1068,7 @@ minetest.register_chatcommand("we-mtschemplace", { end,
})
-minetest.register_chatcommand("we-mtschemprob", {
+minetest.register_chatcommand("/mtschemprob", {
params = "start/finish/get",
description = "Begins node probability entry for Minetest schematics, gets the nodes that have probabilities set, or ends node probability entry",
privs = {worldedit=true},
@@ -1109,7 +1109,7 @@ minetest.register_on_player_receive_fields( end
)
-minetest.register_chatcommand("we-clearobjects", {
+minetest.register_chatcommand("/clearobjects", {
params = "",
description = "Clears all objects within the WorldEdit region",
privs = {worldedit=true},
diff --git a/worldedit_commands/safe.lua b/worldedit_commands/safe.lua index 10652c7..c6751c1 100644 --- a/worldedit_commands/safe.lua +++ b/worldedit_commands/safe.lua @@ -26,11 +26,11 @@ safe_region = function(callback, nodes_needed) --save callback to call later
safe_region_callback[name], safe_region_param[name] = callback, param
- worldedit.player_notify(name, "WARNING: this operation could affect up to " .. count .. " nodes; type /we-y to continue or /we-n to cancel")
+ worldedit.player_notify(name, "WARNING: this operation could affect up to " .. count .. " nodes; type //y to continue or //n to cancel")
end
end
-minetest.register_chatcommand("we-y", {
+minetest.register_chatcommand("/y", {
params = "",
description = "Confirm a pending operation",
func = function(name)
@@ -52,7 +52,7 @@ minetest.register_chatcommand("we-y", { end,
})
-minetest.register_chatcommand("we-n", {
+minetest.register_chatcommand("/n", {
params = "",
description = "Confirm a pending operation",
func = function(name)
|