removed EULA breach in bridges private blocks

This commit is contained in:
Chiss 2014-12-08 18:23:47 +11:00
parent ef8e5104f1
commit 50358c0c30
4 changed files with 7 additions and 21 deletions

View File

@ -1,5 +1,6 @@
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
import mineplex.core.common.util.C;
import mineplex.core.itemstack.ItemBuilder;
import mineplex.core.itemstack.ItemStackFactory;
import nautilus.game.arcade.ArcadeManager;
@ -38,7 +39,7 @@ public class KitPinner extends KitHuman
{
PlayerInventory inv = player.getInventory();
inv.setItem(4, new ItemBuilder(Material.BLAZE_POWDER).setTitle(ChatColor.GOLD + "Fuse").build());
inv.addItem(new ItemBuilder(Material.BOW).setUnbreakable(true).addEnchantment(Enchantment.ARROW_INFINITE, 1).build());
inv.addItem(new ItemBuilder(Material.BOW).setTitle(C.cGreen + "Left-Click" + C.cWhite + " - " + C.cYellow + "Quickshot").setUnbreakable(true).addEnchantment(Enchantment.ARROW_INFINITE, 1).build());
inv.setItem(9, new ItemStack(Material.ARROW, 1));
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));

View File

@ -1,5 +1,6 @@
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
import mineplex.core.common.util.C;
import mineplex.core.itemstack.ItemBuilder;
import mineplex.core.itemstack.ItemStackFactory;
import nautilus.game.arcade.ArcadeManager;
@ -36,7 +37,7 @@ public class KitQuickshooter extends KitHuman
{
PlayerInventory inv = player.getInventory();
inv.setItem(4, new ItemBuilder(Material.BLAZE_POWDER).setTitle(ChatColor.GOLD + "Fuse").build());
inv.addItem(new ItemBuilder(Material.BOW).setUnbreakable(true).addEnchantment(Enchantment.ARROW_INFINITE, 1).build());
inv.addItem(new ItemBuilder(Material.BOW).setTitle(C.cGreen + "Left-Click" + C.cWhite + " - " + C.cYellow + "Quickshot").setUnbreakable(true).addEnchantment(Enchantment.ARROW_INFINITE, 1).build());
inv.setItem(9, new ItemStack(Material.ARROW, 1));
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));

View File

@ -1,5 +1,6 @@
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
import mineplex.core.common.util.C;
import mineplex.core.itemstack.ItemBuilder;
import mineplex.core.itemstack.ItemStackFactory;
import nautilus.game.arcade.ArcadeManager;
@ -39,7 +40,7 @@ public class KitThunderstorm extends KitHuman
{
PlayerInventory inv = player.getInventory();
inv.setItem(4, new ItemBuilder(Material.BLAZE_POWDER).setTitle(ChatColor.GOLD + "Fuse").build());
inv.addItem(new ItemBuilder(Material.BOW).setUnbreakable(true).addEnchantment(Enchantment.ARROW_INFINITE, 1).build());
inv.addItem(new ItemBuilder(Material.BOW).setTitle(C.cGreen + "Left-Click" + C.cWhite + " - " + C.cYellow + "Quickshot").setUnbreakable(true).addEnchantment(Enchantment.ARROW_INFINITE, 1).build());
inv.setItem(9, new ItemStack(Material.ARROW, 1));
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));

View File

@ -411,30 +411,13 @@ public class GameFlagManager implements Listener
if (game.PrivateBlockCount.get(privateKey) == 4)
return;
if (game.PrivateBlockCount.get(privateKey) > 1)
{
if (!Manager.GetDonation().Get(privateKey).OwnsUnknownPackage(
Manager.GetServerConfig().ServerType + " ULTRA") &&
!Manager.GetClients().Get(privateKey).GetRank().Has(Rank.ULTRA))
return;
}
game.PrivateBlockMap.put(event.getBlockPlaced().getLocation(), event.getPlayer());
game.PrivateBlockCount.put(event.getPlayer().getName(), game.PrivateBlockCount.get(event.getPlayer().getName()) + 1);
if (game.PrivateBlockCount.get(privateKey) == 4)
{
event.getPlayer().sendMessage(F.main(game.GetName(), "Protected block limit reached. Stay classy Ultra ranker ;)"));
event.getPlayer().sendMessage(F.main(game.GetName(), "Protected block limit reached."));
}
else if (game.PrivateBlockCount.get(privateKey) == 2)
{
if (!Manager.GetDonation().Get(privateKey).OwnsUnknownPackage(
Manager.GetServerConfig().ServerType + " ULTRA") &&
!Manager.GetClients().Get(privateKey).GetRank().Has(Rank.ULTRA))
{
event.getPlayer().sendMessage(F.main(game.GetName(), "Protected block limit reached. Thieves are scary, get Ultra for 2 extra protected blocks!"));
}
}
}
@EventHandler(priority = EventPriority.LOW)