removed EULA breach in bridges private blocks
This commit is contained in:
parent
ef8e5104f1
commit
50358c0c30
@ -1,5 +1,6 @@
|
|||||||
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
|
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
|
||||||
|
|
||||||
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.itemstack.ItemBuilder;
|
import mineplex.core.itemstack.ItemBuilder;
|
||||||
import mineplex.core.itemstack.ItemStackFactory;
|
import mineplex.core.itemstack.ItemStackFactory;
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
@ -38,7 +39,7 @@ public class KitPinner extends KitHuman
|
|||||||
{
|
{
|
||||||
PlayerInventory inv = player.getInventory();
|
PlayerInventory inv = player.getInventory();
|
||||||
inv.setItem(4, new ItemBuilder(Material.BLAZE_POWDER).setTitle(ChatColor.GOLD + "Fuse").build());
|
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));
|
inv.setItem(9, new ItemStack(Material.ARROW, 1));
|
||||||
|
|
||||||
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));
|
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
|
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
|
||||||
|
|
||||||
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.itemstack.ItemBuilder;
|
import mineplex.core.itemstack.ItemBuilder;
|
||||||
import mineplex.core.itemstack.ItemStackFactory;
|
import mineplex.core.itemstack.ItemStackFactory;
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
@ -36,7 +37,7 @@ public class KitQuickshooter extends KitHuman
|
|||||||
{
|
{
|
||||||
PlayerInventory inv = player.getInventory();
|
PlayerInventory inv = player.getInventory();
|
||||||
inv.setItem(4, new ItemBuilder(Material.BLAZE_POWDER).setTitle(ChatColor.GOLD + "Fuse").build());
|
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));
|
inv.setItem(9, new ItemStack(Material.ARROW, 1));
|
||||||
|
|
||||||
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));
|
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
|
package nautilus.game.arcade.game.games.searchanddestroy.kits.bow;
|
||||||
|
|
||||||
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.itemstack.ItemBuilder;
|
import mineplex.core.itemstack.ItemBuilder;
|
||||||
import mineplex.core.itemstack.ItemStackFactory;
|
import mineplex.core.itemstack.ItemStackFactory;
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
@ -39,7 +40,7 @@ public class KitThunderstorm extends KitHuman
|
|||||||
{
|
{
|
||||||
PlayerInventory inv = player.getInventory();
|
PlayerInventory inv = player.getInventory();
|
||||||
inv.setItem(4, new ItemBuilder(Material.BLAZE_POWDER).setTitle(ChatColor.GOLD + "Fuse").build());
|
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));
|
inv.setItem(9, new ItemStack(Material.ARROW, 1));
|
||||||
|
|
||||||
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));
|
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET));
|
||||||
|
@ -411,29 +411,12 @@ public class GameFlagManager implements Listener
|
|||||||
if (game.PrivateBlockCount.get(privateKey) == 4)
|
if (game.PrivateBlockCount.get(privateKey) == 4)
|
||||||
return;
|
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.PrivateBlockMap.put(event.getBlockPlaced().getLocation(), event.getPlayer());
|
||||||
game.PrivateBlockCount.put(event.getPlayer().getName(), game.PrivateBlockCount.get(event.getPlayer().getName()) + 1);
|
game.PrivateBlockCount.put(event.getPlayer().getName(), game.PrivateBlockCount.get(event.getPlayer().getName()) + 1);
|
||||||
|
|
||||||
if (game.PrivateBlockCount.get(privateKey) == 4)
|
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!"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user