Fix for ServerNpc page beta join.
Work on Dom 2.0 Added sheep quest map.
This commit is contained in:
parent
a09a2aaa30
commit
d05c2f906c
BIN
Maps/Sheep Quest/Sheep_BiomeSplit.zip
Normal file
BIN
Maps/Sheep Quest/Sheep_BiomeSplit.zip
Normal file
Binary file not shown.
Binary file not shown.
@ -203,7 +203,7 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
|
|||||||
{
|
{
|
||||||
int slots = Plugin.GetRequiredSlots(player, serverInfo.ServerType);
|
int slots = Plugin.GetRequiredSlots(player, serverInfo.ServerType);
|
||||||
|
|
||||||
if ((serverInfo.Name.contains("BETA") && ! Client.GetRank().Has(Rank.HERO)) || (serverInfo.MaxPlayers - serverInfo.CurrentPlayers < slots && !(DonationManager.Get(Player.getName()).OwnsUnknownPackage(serverInfo.ServerType + " ULTRA") || Client.GetRank().Has(Rank.ULTRA))))
|
if ((serverInfo.Name.contains("BETA") && !Client.GetRank().Has(Rank.ULTRA)) || (serverInfo.MaxPlayers - serverInfo.CurrentPlayers < slots && !(DonationManager.Get(Player.getName()).OwnsUnknownPackage(serverInfo.ServerType + " ULTRA") || Client.GetRank().Has(Rank.ULTRA))))
|
||||||
{
|
{
|
||||||
PlayDenySound(player);
|
PlayDenySound(player);
|
||||||
return;
|
return;
|
||||||
|
@ -11,20 +11,21 @@ import org.bukkit.event.entity.ItemDespawnEvent;
|
|||||||
import org.bukkit.event.player.PlayerPickupItemEvent;
|
import org.bukkit.event.player.PlayerPickupItemEvent;
|
||||||
|
|
||||||
import mineplex.core.common.util.C;
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.common.util.F;
|
|
||||||
import mineplex.core.common.util.UtilPlayer;
|
import mineplex.core.common.util.UtilPlayer;
|
||||||
import mineplex.core.updater.UpdateType;
|
import mineplex.core.updater.UpdateType;
|
||||||
import mineplex.core.updater.event.UpdateEvent;
|
import mineplex.core.updater.event.UpdateEvent;
|
||||||
import mineplex.minecraft.game.classcombat.shop.ClassCombatCustomBuildShop;
|
import mineplex.minecraft.game.classcombat.shop.ClassCombatCustomBuildShop;
|
||||||
import mineplex.minecraft.game.core.combat.CombatComponent;
|
|
||||||
import mineplex.minecraft.game.core.combat.event.CombatDeathEvent;
|
import mineplex.minecraft.game.core.combat.event.CombatDeathEvent;
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
import nautilus.game.arcade.GameType;
|
import nautilus.game.arcade.GameType;
|
||||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||||
import nautilus.game.arcade.game.Game;
|
|
||||||
import nautilus.game.arcade.game.GameTeam;
|
import nautilus.game.arcade.game.GameTeam;
|
||||||
import nautilus.game.arcade.game.TeamGame;
|
import nautilus.game.arcade.game.TeamGame;
|
||||||
|
import nautilus.game.arcade.game.games.champions.kits.KitAssassin;
|
||||||
|
import nautilus.game.arcade.game.games.champions.kits.KitBrute;
|
||||||
import nautilus.game.arcade.game.games.champions.kits.KitKnight;
|
import nautilus.game.arcade.game.games.champions.kits.KitKnight;
|
||||||
|
import nautilus.game.arcade.game.games.champions.kits.KitMage;
|
||||||
|
import nautilus.game.arcade.game.games.champions.kits.KitRanger;
|
||||||
import nautilus.game.arcade.game.games.champions.map.*;
|
import nautilus.game.arcade.game.games.champions.map.*;
|
||||||
import nautilus.game.arcade.game.games.smash.kits.*;
|
import nautilus.game.arcade.game.games.smash.kits.*;
|
||||||
import nautilus.game.arcade.kit.Kit;
|
import nautilus.game.arcade.kit.Kit;
|
||||||
@ -96,22 +97,20 @@ public class Champions extends TeamGame
|
|||||||
_emerald.add(new Emerald(this, loc));
|
_emerald.add(new Emerald(this, loc));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
for (Location loc : WorldData.GetDataLocs("GRAY")) //Knight
|
for (Location loc : WorldData.GetDataLocs("GRAY")) //Knight
|
||||||
SpawnNPC(Knight, loc);
|
new KitKnight(Manager).SpawnEntity(loc);
|
||||||
|
|
||||||
for (Location loc : WorldData.GetDataLocs("GREEN")) //Ranger
|
for (Location loc : WorldData.GetDataLocs("GREEN")) //Ranger
|
||||||
SpawnNPC(Ranger, loc);
|
new KitRanger(Manager).SpawnEntity(loc);
|
||||||
|
|
||||||
for (Location loc : WorldData.GetDataLocs("BLUE")) //Brute
|
for (Location loc : WorldData.GetDataLocs("BLUE")) //Brute
|
||||||
SpawnNPC(Brute, loc);
|
new KitBrute(Manager).SpawnEntity(loc);
|
||||||
|
|
||||||
for (Location loc : WorldData.GetDataLocs("BLACK")) //Assassin
|
for (Location loc : WorldData.GetDataLocs("BLACK")) //Assassin
|
||||||
SpawnNPC(Assasin, loc);
|
new KitAssassin(Manager).SpawnEntity(loc);
|
||||||
|
|
||||||
for (Location loc : WorldData.GetDataLocs("ORANGE")) //Mage
|
for (Location loc : WorldData.GetDataLocs("ORANGE")) //Mage
|
||||||
SpawnNPC(Mage, loc);
|
new KitMage(Manager).SpawnEntity(loc);
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
@ -8,12 +8,8 @@ import org.bukkit.entity.LivingEntity;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import me.chiss.Core.ClientData.IClientClass;
|
|
||||||
import mineplex.core.common.util.F;
|
|
||||||
import mineplex.core.itemstack.ItemStackFactory;
|
|
||||||
import mineplex.minecraft.game.classcombat.Class.ClientClass;
|
import mineplex.minecraft.game.classcombat.Class.ClientClass;
|
||||||
import mineplex.minecraft.game.classcombat.Class.IPvpClass;
|
import mineplex.minecraft.game.classcombat.Class.IPvpClass;
|
||||||
import mineplex.minecraft.game.classcombat.shop.page.CustomBuildPage;
|
|
||||||
import nautilus.game.arcade.ArcadeManager;
|
import nautilus.game.arcade.ArcadeManager;
|
||||||
import nautilus.game.arcade.kit.Kit;
|
import nautilus.game.arcade.kit.Kit;
|
||||||
import nautilus.game.arcade.kit.KitAvailability;
|
import nautilus.game.arcade.kit.KitAvailability;
|
||||||
@ -64,21 +60,6 @@ public class KitKnight extends Kit
|
|||||||
@Override
|
@Override
|
||||||
public void GiveItems(Player player)
|
public void GiveItems(Player player)
|
||||||
{
|
{
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.IRON_SWORD));
|
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.BOW));
|
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.ARROW, 64));
|
|
||||||
|
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.FENCE, (byte)0, 2, F.item("Castle Barricade")));
|
|
||||||
|
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.MUSHROOM_SOUP));
|
|
||||||
player.getInventory().addItem(ItemStackFactory.Instance.CreateStack(Material.MUSHROOM_SOUP));
|
|
||||||
|
|
||||||
|
|
||||||
player.getInventory().setHelmet(ItemStackFactory.Instance.CreateStack(Material.IRON_HELMET));
|
|
||||||
player.getInventory().setChestplate(ItemStackFactory.Instance.CreateStack(Material.IRON_CHESTPLATE));
|
|
||||||
player.getInventory().setLeggings(ItemStackFactory.Instance.CreateStack(Material.IRON_LEGGINGS));
|
|
||||||
player.getInventory().setBoots(ItemStackFactory.Instance.CreateStack(Material.IRON_BOOTS));
|
|
||||||
|
|
||||||
_class.get(player).ResetToDefaults(true, true);
|
_class.get(player).ResetToDefaults(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user