mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-12 19:31:05 +01:00
fix burn matching all players
This commit is contained in:
parent
b1cfc8a8ed
commit
0fb5fc6bcc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user