stealer kit for SG

This commit is contained in:
Cheese 2015-03-20 16:20:55 +11:00
parent 6c257c1e7d
commit 746fa9e11b
2 changed files with 48 additions and 1 deletions

View File

@ -898,6 +898,8 @@ public class SurvivalGames extends SoloGame
ex.printStackTrace(); ex.printStackTrace();
} }
//Store Kit
if (GetKit(player) != null && !(GetKit(player) instanceof KitStealer))
_deadBodyLocations.put(player.getLocation(), GetKit(player)); _deadBodyLocations.put(player.getLocation(), GetKit(player));
GameProfile newProfile = new GameProfile(UUID.randomUUID(), name); GameProfile newProfile = new GameProfile(UUID.randomUUID(), name);

View File

@ -0,0 +1,45 @@
package nautilus.game.arcade.game.games.survivalgames.kit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import mineplex.core.common.util.C;
import mineplex.core.itemstack.ItemStackFactory;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.KitAvailability;
import nautilus.game.arcade.kit.Perk;
import nautilus.game.arcade.kit.perks.*;
public class KitStealer extends Kit
{
public KitStealer(ArcadeManager manager)
{
super(manager, "Necromancer", KitAvailability.Gem, 5000,
new String[]
{
"Steal kits from dead bodies"
},
new Perk[]
{
new PerkSkeletons(true)
},
EntityType.ZOMBIE,
new ItemStack(Material.SKULL_ITEM));
}
@Override
public void GiveItems(Player player)
{
player.getInventory().setItem(7, ItemStackFactory.Instance.CreateStack(Material.INK_SACK, (byte)1, 1,
C.cGreen + "Click" +
C.cWhite + C.Bold + " - " +
C.cYellow + "Absorb Kit"));
}
}