From cb750996ff2569f9a3756e8b9681daf2328a65c8 Mon Sep 17 00:00:00 2001 From: Och Noe Date: Thu, 1 Oct 2020 20:16:38 +0200 Subject: .tp as shortcut for /teleport --- init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 = '', + 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 ) -- cgit v1.2.3