Removed Annoying Debug Messages

This commit is contained in:
alisolarflare 2016-10-21 22:36:31 -04:00
parent 09526c3820
commit d4e6b6ad6e
2 changed files with 1 additions and 6 deletions

View file

@ -23,12 +23,8 @@ public class gPowerMemory{
public static void PowerUpPlayer(Player player, String colour){ public static void PowerUpPlayer(Player player, String colour){
//debug("POWERRRED UP"); //debug("POWERRRED UP");
player.sendMessage("POWERRED UP!"); player.sendMessage("POWERRED UP!");
if (PlayerMap.containsKey(player.getUniqueId())){
PlayerMap.get(player.getUniqueId()).playerPowersActivated = true;
}else{
PlayerMap.put(player.getUniqueId(), new poweredPlayer(player.getUniqueId(), colour, true)); PlayerMap.put(player.getUniqueId(), new poweredPlayer(player.getUniqueId(), colour, true));
} }
}
//POWER DEACTIVATION //POWER DEACTIVATION
public static void PowerDownPlayer(Player player){ public static void PowerDownPlayer(Player player){

View file

@ -21,7 +21,6 @@ public class gPowerApplyingTask extends BukkitRunnable{
@Override @Override
public void run() { public void run() {
for (Player player : plugin.getServer().getOnlinePlayers()){ for (Player player : plugin.getServer().getOnlinePlayers()){
player.sendMessage(player.getUniqueId().toString());
player.sendMessage(gPowerMemory.PlayerMap.toString()); player.sendMessage(gPowerMemory.PlayerMap.toString());
if(gPowerMemory.PlayerMap.containsKey(player.getUniqueId())){ if(gPowerMemory.PlayerMap.containsKey(player.getUniqueId())){
activatePower(player, gPowerMemory.PlayerMap.get(player.getUniqueId()).colour); activatePower(player, gPowerMemory.PlayerMap.get(player.getUniqueId()).colour);