/kill [player] command

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

/kill [player] command

by 4aiman » Sun Jan 06, 2013 00:35

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
Last edited by 4aiman on Mon Jan 07, 2013 18:52, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sun Jan 06, 2013 02:30

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
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
xyz
Member
 
Posts: 449
Joined: Thu Nov 10, 2011 14:25

by xyz » Sun Jan 06, 2013 04:39

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

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Sun Jan 06, 2013 05:55

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.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Sun Jan 06, 2013 11:03

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 ?
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 12 guests

cron