Page 1 of 1

/kill [player] command

PostPosted: Sun Jan 06, 2013 00:35
by 4aiman
This mod is released under WTFPL. It adds ability to manipulate with other player's HP.
Here's the download link: https://github.com/4aiman/minetest_kill_mod/archive/master.zip
Here's GitHub: https://github.com/4aiman/minetest_kill_mod

UPDATE! No more cycling through all connected players. (Tnx to xyz)
UPDATE! Added /hp command. Usage: /hp <playername> <value>

/kill requires "kill" privilege
/hp requires "set_hp" privilege

PostPosted: Sun Jan 06, 2013 02:30
by jojoa1997
4aiman wrote:This mod is released under WTFPL. It adds ability to kill other players by using /kill command which requires "kill" privilege.
Here's the download link: https://github.com/4aiman/minetest_kill_mod/archive/master.zip

This mod is the answer to an issue by Calinou: https://github.com/celeron55/minetest/issues/396

can you post a github link

PostPosted: Sun Jan 06, 2013 04:39
by xyz
Why don't you use minetest.env:get_player_by_name(name) instead of cycling through all connected players?

PostPosted: Sun Jan 06, 2013 05:55
by 0gb.us
4aiman, nice. I was joking with someone (I think about a month ago) about adding a /kill command.

Jojoa1997, Github link: https://github.com/4aiman/minetest_kill_mod/

Xyz, I didn't look at the code, but you're right, that would be more efficient.

PostPosted: Sun Jan 06, 2013 11:03
by 4aiman
Updated!

xyz wrote:Why don't you use minetest.env:get_player_by_name(name) instead of cycling through all connected players?

Thanks, but could you rather post smth here: http://minetest.net/forum/viewtopic.php?id=1434&p=4 ?