aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 6ced16f..c19d38b 100644
--- a/init.lua
+++ b/init.lua
@@ -481,6 +481,16 @@ minetest.register_chatcommand('wp_show', {
func = show_pos,
}
)
+
+
+minetest.register_chatcommand('tp', {
+ params = '<position/player>',
+ description = 'shortcut for /teleport',
+ func = safe(function(param)
+ safe(minetest.run_server_chatcommand('teleport',param ))
+ end),
+ }
+ )
-- wp_grep written by erstazi (player at Linux-Forks.de )