some commands renamed

master
Fernando Zapata 2012-09-25 19:00:18 -06:00
parent 61d1f3829c
commit 46b62b79b3
2 changed files with 5 additions and 6 deletions

1
commands/depends.txt Normal file
View File

@ -0,0 +1 @@
default

View File

@ -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' )
--------------------------------------------------------------------------------