From 46b62b79b3f25fe63828622f4202240a0bba5a2a Mon Sep 17 00:00:00 2001 From: Fernando Zapata Date: Tue, 25 Sep 2012 19:00:18 -0600 Subject: [PATCH] some commands renamed --- commands/depends.txt | 1 + commands/init.lua | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 commands/depends.txt diff --git a/commands/depends.txt b/commands/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/commands/depends.txt @@ -0,0 +1 @@ +default diff --git a/commands/init.lua b/commands/init.lua index 8ef431d..2e8fb0b 100644 --- a/commands/init.lua +++ b/commands/init.lua @@ -2,8 +2,8 @@ -- Custom Commands -------------------------------------------------------------------------------- -- Many custom commands, currently includes: --- /killme Suicide --- /playerlist List players +-- /kill Suicide +-- /list List players -- -- (c)2012 Fernando Zapata -- Code licensed under GNU GPLv2 @@ -13,7 +13,7 @@ -------------------------------------------------------------------------------- ---- Suicide command ---- -minetest.register_chatcommand( 'killme', { +minetest.register_chatcommand( 'kill', { description = 'kill yourself', func = function( name, param ) local player = minetest.env:get_player_by_name(name) @@ -22,7 +22,7 @@ minetest.register_chatcommand( 'killme', { }) ---- List connected players ---- -minetest.register_chatcommand( 'playerlist', { +minetest.register_chatcommand( 'list', { descrpition = 'list connected players', func = function( name, param ) local players = minetest.get_connected_players() @@ -34,6 +34,4 @@ minetest.register_chatcommand( 'playerlist', { end }) -print( ' ++ loaded : Custom Commands, by ZLovesPancakes' ) - --------------------------------------------------------------------------------