mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Fix /invis smite bug where it spammed the smite message each player.
This commit is contained in:
parent
b3b182e753
commit
478244773b
@ -22,6 +22,7 @@ public class Command_invis extends TFM_Command
|
|||||||
{
|
{
|
||||||
if (args[0].equalsIgnoreCase("smite"))
|
if (args[0].equalsIgnoreCase("smite"))
|
||||||
{
|
{
|
||||||
|
TFM_Util.adminAction(sender.getName(), "Smiting all invisible players", true);
|
||||||
smite = true;
|
smite = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -40,7 +41,6 @@ public class Command_invis extends TFM_Command
|
|||||||
players.add(player.getName());
|
players.add(player.getName());
|
||||||
if (smite && !TFM_SuperadminList.isUserSuperadmin(player))
|
if (smite && !TFM_SuperadminList.isUserSuperadmin(player))
|
||||||
{
|
{
|
||||||
TFM_Util.adminAction(sender.getName(), "Smiting all invisible players", true);
|
|
||||||
player.setHealth(0.0);
|
player.setHealth(0.0);
|
||||||
smites++;
|
smites++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user