Fix message prefix
This commit is contained in:
parent
fb03e9adec
commit
25487ad0b1
@ -142,7 +142,7 @@ public class ParticleKing extends ParticleGadget
|
||||
// Checks if the clicked player isn't cooling down
|
||||
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;
|
||||
}
|
||||
|
||||
@ -152,13 +152,13 @@ public class ParticleKing extends ParticleGadget
|
||||
if (king.hasPeasant(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
|
||||
else if (king.getKing().equals(clicker))
|
||||
{
|
||||
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();
|
||||
@ -189,7 +189,7 @@ public class ParticleKing extends ParticleGadget
|
||||
if (king.hasPeasant(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()));
|
||||
|
Loading…
Reference in New Issue
Block a user