touched up on some messages
This commit is contained in:
parent
51e5552e2d
commit
70aa5d63fd
@ -184,8 +184,9 @@ public class SiegeManager extends MiniPlugin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_clansManager.getPvpTimer().hasTimer(player)) {
|
if(_clansManager.getPvpTimer().hasTimer(player))
|
||||||
UtilPlayer.message(player, F.main("Clans", "You cannot place a cannon whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Clans", "You cannot place a Cannon whilst protected from pvp."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -224,8 +225,9 @@ public class SiegeManager extends MiniPlugin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_clansManager.getPvpTimer().hasTimer(player)) {
|
if(_clansManager.getPvpTimer().hasTimer(player))
|
||||||
UtilPlayer.message(player, F.main("Clans", "You cannot place a catapult whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Clans", "You cannot place a Catapult whilst protected from pvp."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,8 +306,9 @@ public class Outpost implements Listener
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
if(_outpostManager.getClansManager().getPvpTimer().hasTimer(event.getPlayer())) {
|
if(_outpostManager.getClansManager().getPvpTimer().hasTimer(event.getPlayer()))
|
||||||
UtilPlayer.message(event.getPlayer(), F.main("Clans", "You cannot activate an outpost whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(event.getPlayer(), F.main("Clans", "You cannot activate an Outpost whilst on protected from pvp."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,8 +334,9 @@ public class Outpost implements Listener
|
|||||||
if (event.getBlock().getLocation().equals(_core) && getState() == OutpostState.LIVE)
|
if (event.getBlock().getLocation().equals(_core) && getState() == OutpostState.LIVE)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(_outpostManager.getClansManager().getPvpTimer().hasTimer(event.getPlayer())) {
|
if(_outpostManager.getClansManager().getPvpTimer().hasTimer(event.getPlayer()))
|
||||||
UtilPlayer.message(event.getPlayer(), F.main("Clans", "You cannot destroy an outpost whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(event.getPlayer(), F.main("Clans", "You cannot destroy an Outpost whilst on protected from pvp."));
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -85,8 +85,9 @@ public class OutpostManager extends MiniPlugin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_clansManager.getPvpTimer().hasTimer(player)) {
|
if(_clansManager.getPvpTimer().hasTimer(player))
|
||||||
UtilPlayer.message(player, F.main("Clans", "You cannot create an outpost whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Clans", "You place an Outpost whilst protected from pvp."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,8 +97,6 @@ public class OutpostManager extends MiniPlugin
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ClanInfo clan = _clansManager.getClan(player);
|
ClanInfo clan = _clansManager.getClan(player);
|
||||||
|
|
||||||
if (UtilItem.isBoundless(location.clone().subtract(0, 1, 0).getBlock().getType()))
|
if (UtilItem.isBoundless(location.clone().subtract(0, 1, 0).getBlock().getType()))
|
||||||
|
@ -99,7 +99,7 @@ public class Cannon extends SiegeWeapon
|
|||||||
setRideable(new AccessRule(AccessType.RCLICK_BB, player -> {
|
setRideable(new AccessRule(AccessType.RCLICK_BB, player -> {
|
||||||
if (!_ownerClan.isMember(player))
|
if (!_ownerClan.isMember(player))
|
||||||
{
|
{
|
||||||
UtilPlayer.message(player, F.main("Clans", "This cannon is not owned by your Clan."));
|
UtilPlayer.message(player, F.main("Clans", "This Cannon is not owned by your Clan."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ public class Cannon extends SiegeWeapon
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(_clans.getPvpTimer().hasTimer(player)) {
|
if(_clans.getPvpTimer().hasTimer(player)) {
|
||||||
UtilPlayer.message(player, F.main("Clans", "You cannot sit in a cannon whilst on PvPTimer"));
|
UtilPlayer.message(player, F.main("Clans", "You cannot ride on a Cannon whilst on PvPTimer"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,12 +150,13 @@ public class Cannon extends SiegeWeapon
|
|||||||
|
|
||||||
if (!_ownerClan.isMember(player))
|
if (!_ownerClan.isMember(player))
|
||||||
{
|
{
|
||||||
UtilPlayer.message(player, F.main("Clans", "This cannon is not owned by your Clan."));
|
UtilPlayer.message(player, F.main("Clans", "This Cannon is not owned by your Clan."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_clans.getPvpTimer().hasTimer(player)) {
|
if (_clans.getPvpTimer().hasTimer(player))
|
||||||
UtilPlayer.message(player, F.main("Clans", "You cannot fire a cannon whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Clans", "You cannot fire a Cannon whilst protected from pvp."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,18 +180,19 @@ public class Cannon extends SiegeWeapon
|
|||||||
setRideable(new AccessRule(AccessType.RCLICK_BB, player -> {
|
setRideable(new AccessRule(AccessType.RCLICK_BB, player -> {
|
||||||
if (!_ownerClan.isMember(player))
|
if (!_ownerClan.isMember(player))
|
||||||
{
|
{
|
||||||
UtilPlayer.message(player, F.main("Clans", "This cannon is not owned by your Clan."));
|
UtilPlayer.message(player, F.main("Clans", "This Cannon is not owned by your Clan."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getRider() != null && !getRider().equals(player))
|
if (getRider() != null && !getRider().equals(player))
|
||||||
{
|
{
|
||||||
UtilPlayer.message(player, F.main("Clans", "Someone is already riding this cannon."));
|
UtilPlayer.message(player, F.main("Clans", "Someone is already riding this Cannon."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_clans.getPvpTimer().hasTimer(player)) {
|
if(_clans.getPvpTimer().hasTimer(player))
|
||||||
UtilPlayer.message(player, F.main("Clans", "You cannot sit in a cannon whilst on PvPTimer"));
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Clans", "You cannot ride on a Cannon whilst protected from pvp."));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user