Fixed message, and no longer updates without needing

This commit is contained in:
LCastr0 2017-04-27 20:32:46 -03:00
parent 95f50604c0
commit e7c270847b
1 changed files with 4 additions and 1 deletions

View File

@ -198,7 +198,7 @@ public class CastleManager extends MiniPlugin
{
King oldKing = peasant.getKing();
oldKing.removePeasant(peasant);
UtilPlayer.message(oldKing.getKing(), F.main("Kingdom", "" + F.name(clicker.getName()) + ", a member of your kingdom, was kidnapped by the evil monarch " + F.name(clicker.getName()) + "!"));
UtilPlayer.message(oldKing.getKing(), F.main("Kingdom", "" + F.name(clicked.getName()) + ", a member of your kingdom, was kidnapped by the evil monarch " + F.name(clicker.getName()) + "!"));
}
peasant.setCooldown();
@ -432,6 +432,9 @@ public class CastleManager extends MiniPlugin
if (_king != null && lobbyKing != null)
{
if (_king.amountOfPeasants() == lobbyKing.amountOfPeasants())
return;
if (!_king.equals(lobbyKing))
{
updateKing(_king, lobbyKing);