diff --git a/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMDisableAll.java b/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMDisableAll.java index 22b87e3..5914dbd 100644 --- a/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMDisableAll.java +++ b/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMDisableAll.java @@ -49,11 +49,12 @@ public class CommandTBMDisableAll extends CommandBase if(senderPlayer != null) { TurnBasedMinecraftMod.logger.info(senderPlayer.getName() + " disabled turn-based-combat for everyone"); - TurnBasedMinecraftMod.NWINSTANCE.sendTo(new PacketGeneralMessage("You disabled turn-based-combat for everyone"), senderPlayer); + TurnBasedMinecraftMod.NWINSTANCE.sendToAll(new PacketGeneralMessage(senderPlayer.getName() + " disabled turn-based-battle for everyone")); } else { TurnBasedMinecraftMod.logger.info("An admin disabled turn-based-combat for everyone"); + TurnBasedMinecraftMod.NWINSTANCE.sendToAll(new PacketGeneralMessage("An admin disabled turn-based-battle for everyone")); } } diff --git a/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMEnableAll.java b/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMEnableAll.java index aa2960c..77d2f0a 100644 --- a/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMEnableAll.java +++ b/src/main/java/com/seodisparate/TurnBasedMinecraft/common/CommandTBMEnableAll.java @@ -46,11 +46,12 @@ public class CommandTBMEnableAll extends CommandBase if(senderPlayer != null) { TurnBasedMinecraftMod.logger.info(senderPlayer.getName() + " enabled turn-based-combat for everyone"); - TurnBasedMinecraftMod.NWINSTANCE.sendTo(new PacketGeneralMessage("You enabled turn-based-combat for everyone"), senderPlayer); + TurnBasedMinecraftMod.NWINSTANCE.sendToAll(new PacketGeneralMessage(senderPlayer.getName() + " enabled turn-based-combat for everyone")); } else { TurnBasedMinecraftMod.logger.info("An admin enabled turn-based-combat for everyone"); + TurnBasedMinecraftMod.NWINSTANCE.sendToAll(new PacketGeneralMessage("An admin enabled turn-based-combat for everyone")); } }