1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-20 05:21:21 +02:00

fix burn matching all players

This commit is contained in:
Iaccidentally
2012-09-01 16:40:49 -04:00
parent c02966258c
commit ad8f7bca3e

View File

@@ -21,6 +21,12 @@ public class Commandburn extends EssentialsCommand
throw new NotEnoughArgumentsException(); throw new NotEnoughArgumentsException();
} }
//TODO: TL this
if (args[0].trim().length() < 2)
{
throw new NotEnoughArgumentsException("You need to specify a player to kill.");
}
for (Player p : server.matchPlayer(args[0])) for (Player p : server.matchPlayer(args[0]))
{ {
p.setFireTicks(Integer.parseInt(args[1]) * 20); p.setFireTicks(Integer.parseInt(args[1]) * 20);