mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-11-01 00:29:24 +00:00
Merge pull request #148 from Wilee999/patch-5
Fix /invis smite bug where it spammed the smite message each player.
This commit is contained in:
commit
92d7c58957
|
@ -22,6 +22,7 @@ public class Command_invis extends TFM_Command
|
|||
{
|
||||
if (args[0].equalsIgnoreCase("smite"))
|
||||
{
|
||||
TFM_Util.adminAction(sender.getName(), "Smiting all invisible players", true);
|
||||
smite = true;
|
||||
}
|
||||
else
|
||||
|
@ -40,7 +41,6 @@ public class Command_invis extends TFM_Command
|
|||
players.add(player.getName());
|
||||
if (smite && !TFM_SuperadminList.isUserSuperadmin(player))
|
||||
{
|
||||
TFM_Util.adminAction(sender.getName(), "Smiting all invisible players", true);
|
||||
player.setHealth(0.0);
|
||||
smites++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue