Fix message prefix

This commit is contained in:
LCastr0 2017-04-26 11:17:03 -03:00
parent fb03e9adec
commit 25487ad0b1

View File

@ -142,7 +142,7 @@ public class ParticleKing extends ParticleGadget
// Checks if the clicked player isn't cooling down // Checks if the clicked player isn't cooling down
if (isPlayerCoolingDown(clicked)) if (isPlayerCoolingDown(clicked))
{ {
UtilPlayer.message(clicker, F.main("King", "You can't tag " + F.name(clicked.getName()) + " yet! That player is cooling down!")); UtilPlayer.message(clicker, F.main("Kingdom", "You can't tag " + F.name(clicked.getName()) + " yet! That player is cooling down!"));
return; return;
} }
@ -152,13 +152,13 @@ public class ParticleKing extends ParticleGadget
if (king.hasPeasant(clicked)) if (king.hasPeasant(clicked))
{ {
king.removePeasant(clicked); king.removePeasant(clicked);
UtilPlayer.message(king.getKing(), F.main("King", "" + F.name(clicker.getName()) + " stole one of your peasants! You now have " + F.count(king.amountOfPeasants()) + " peasants!")); UtilPlayer.message(king.getKing(), F.main("Kingdom", "" + F.name(clicker.getName()) + " stole one of your peasants! You now have " + F.count(king.amountOfPeasants()) + " peasants!"));
} }
// Finally, adds the player to the king that clicked the player // Finally, adds the player to the king that clicked the player
else if (king.getKing().equals(clicker)) else if (king.getKing().equals(clicker))
{ {
king.addPeasant(clicked); king.addPeasant(clicked);
UtilPlayer.message(clicker, F.main("King", "You tagged " + F.name(clicked.getName()) + " as a peasant! You now have " + F.count(king.amountOfPeasants()) + " peasants!")); UtilPlayer.message(clicker, F.main("Kingdom", "You tagged " + F.name(clicked.getName()) + " as a peasant! You now have " + F.count(king.amountOfPeasants()) + " peasants!"));
} }
} }
updateKing(); updateKing();
@ -189,7 +189,7 @@ public class ParticleKing extends ParticleGadget
if (king.hasPeasant(event.getPlayer())) if (king.hasPeasant(event.getPlayer()))
{ {
king.removePeasant(event.getPlayer()); king.removePeasant(event.getPlayer());
UtilPlayer.message(king.getKing(), F.main("King", "The peasant " + F.name(event.getPlayer().getName()) + " left your kingdom! You now have " + F.count(king.amountOfPeasants()) + " peasants!")); UtilPlayer.message(king.getKing(), F.main("Kingdom", "The peasant " + F.name(event.getPlayer().getName()) + " left your kingdom! You now have " + F.count(king.amountOfPeasants()) + " peasants!"));
} }
} }
_kings.removeIf(king -> king.getKing().equals(event.getPlayer())); _kings.removeIf(king -> king.getKing().equals(event.getPlayer()));