Initial commit

This commit is contained in:
Kevin Mok 2019-07-26 22:18:46 -04:00
commit eac314c1b7
Signed by: Kevin-Mok
GPG Key ID: AEA75288DC135CF5
1 changed files with 20 additions and 0 deletions

20
init.lua Normal file
View File

@ -0,0 +1,20 @@
-- https://github.com/Uberi/Minetest-WorldEdit/blob/master/worldedit_shortcommands/init.lua
function alias(short, orig)
if not minetest.chatcommands[orig] then
minetest.log("error", "custom_aliases: original command " .. orig .. " does not exist")
return true
end
if minetest.chatcommands[short] then
minetest.log("error", "custom_aliases: alias " .. short .. " already exists")
return true
end
minetest.register_chatcommand(short, minetest.chatcommands[orig])
return false
end
alias("gim", "giveme")
alias("grm", "grantme")
-- needs to be in minetest game?
-- alias("h", "home")
alias("sd", "shutdown")
alias("t", "teleport")