fixed outpost being built instantly on output block place.

cleaned up a bit
This commit is contained in:
NewGarbo 2016-01-07 14:03:15 +00:00
parent 5c810a46c9
commit d4fdda8ef2
3 changed files with 6 additions and 4 deletions

View File

@ -132,6 +132,11 @@ public class Outpost implements Listener
return;
}
if (getLifetime() <= 2000)
{
return;
}
if (!_clan.equals(_clan.Clans.getClanUtility().getClanByPlayer(event.getPlayer())))
{
UtilPlayer.message(event.getPlayer(), F.main("Clans", "This is not yours to activate!"));

View File

@ -51,6 +51,7 @@ public class OutpostManager extends MiniPlugin
if (!Recharge.Instance.use(event.getPlayer(), "Place Outpost", 10000, true, false))
{
event.setCancelled(true);
return;
}
if (Spawn(event.getPlayer(), event.getBlock().getLocation(), OutpostType.ORIGINAL_CLANS))

View File

@ -7,10 +7,6 @@ import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilServer;
import mineplex.core.common.util.UtilTextMiddle;
import mineplex.game.clans.items.CustomItem;
import mineplex.game.clans.items.generation.ValueDistribution;
import mineplex.minecraft.game.core.damage.CustomDamageEvent;