give player arrow back after failed territory siege declaration arrow thingy fire thingy ehh grammar is not needed at night :}
This commit is contained in:
parent
e74cefeee8
commit
43cf4d38ef
@ -68,17 +68,20 @@ public class SiegeManager extends MiniPlugin
|
||||
|
||||
if (territory != null && ClansBlacklist.isValidClanName(territory.Owner) && !territory.Owner.equals(clan.getName()))
|
||||
{
|
||||
if (clan.getOnlinePlayerCount() < 2)
|
||||
if (clan.getOnlinePlayerCount() < 1)
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Clans", "A Clan must have at least 2 online players for you to declared siege on them. Grab another arrow from the Outpost and try again elsewhere."));
|
||||
return;
|
||||
player.getInventory().addItem(Outpost.SIEGE_DECLARATION_ARROW);
|
||||
}
|
||||
else
|
||||
{
|
||||
_outpostManager.Get(clan).declareOn(player, _clans.getClanUtility().getClanByClanName(territory.Owner));
|
||||
}
|
||||
|
||||
_outpostManager.Get(clan).declareOn(player, _clans.getClanUtility().getClanByClanName(territory.Owner));
|
||||
}
|
||||
else
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Clans", "You did not fire the Siege Declaration arrow into a valid rival Clan's territory. Grab another arrow from the Outpost and try again."));
|
||||
player.getInventory().addItem(Outpost.SIEGE_DECLARATION_ARROW);
|
||||
}
|
||||
|
||||
_outpostManager.Get(clan).setDeclarationArrow(null);
|
||||
|
Loading…
Reference in New Issue
Block a user