Don't send slack alerts from testing

This commit is contained in:
AlexTheCoder 2017-08-28 21:01:57 -04:00
parent 19988a8951
commit 6aea0abc16

View File

@ -319,6 +319,7 @@ public class ClansFreezeManager extends MiniPlugin
player.setFlying(false);
player.setWalkSpeed(0);
player.addPotionEffect(new PotionEffect(PotionEffectType.JUMP, 999999, -10));
if (!UtilServer.isTestServer())
{
SlackMessage message = new SlackMessage("Clans Panic System", "crossed_swords", player.getName() + " has entered panic mode on " + UtilServer.getServerName() + "!");
SlackAPI.getInstance().sendMessage(SlackTeam.CLANS, "#urgent", message, true);
@ -352,6 +353,7 @@ public class ClansFreezeManager extends MiniPlugin
player.setWalkSpeed(walkSpeed);
player.removePotionEffect(PotionEffectType.JUMP);
}
if (!UtilServer.isTestServer())
{
SlackMessage message = new SlackMessage("Clans Panic System", "crossed_swords", player.getName() + " has exited panic mode on " + UtilServer.getServerName() + "!");
SlackAPI.getInstance().sendMessage(SlackTeam.CLANS, "#urgent", message, true);