Adding more Words, Removing some Minion types and changing Items in Hotbar.

This commit is contained in:
Sarah 2015-09-13 10:00:18 +02:00
parent 216c8783a9
commit 353c553589
4 changed files with 164 additions and 12 deletions

View File

@ -30,7 +30,126 @@ import org.bukkit.inventory.ItemStack;
public class Minion implements Listener public class Minion implements Listener
{ {
private static String[] NAMES = new String[]{"Fishing", "Cookie", "Sleeping", "Diamond", "Banana", "Tree House", "Christmas Holidays", "Tree", "Egg", "Cat"}; private static String[] NAMES = new String[]{"Fishing", "Cookie", "Sleeping", "Diamond", "Banana", "Tree House", "Christmas Holidays", "Tree", "Egg", "Cat",
"Quadrilateral", "Rollercoaster", "Hallucinating", "Advertisement", "Entertainment", "Administrator", "Intergalactic", "International", "Understanding", "Investigation",
"Veterinarian", "Photographer", "Cheeseburger", "Civilization", "Tranquilizer", "Conversation", "EnderDragon", "Engineering", "Philippines", "Countryside",
"Electricity", "Caterpillar", "Keyboarding", "Agriculture", "Mathematics", "Millimeters", "Centimeters", "Screwdriver", "Achievement", "Necromancer",
"Grasshopper", "Quadrillion", "Horseradish", "Aboveground", "Belowground", "Mississippi", "Computerize", "Hibernation", "Radioactive", "Unfortunate",
"Demonstrate", "Gymnastics", "Toothpaste", "Paraphrase", "Stone Hoe", "Limitless", "Breakfast", "Graveyard", "Philippines", "Countryside",
"Competition", "Management", "Peppermint", "Pyromaniac", "Sandstone", "Vengeance", "Passwords", "Chew", "Philippines", "Countryside",
"Competitive", "Accounting", "Generation", "Mechanized", "Minecraft", "Sprinting", "Beautiful", "Container", "Mayonaise", "Generator",
"Bombardment", "Laboratory", "BlackBerry", "Calculator", "Mushrooms", "Heartbeat", "Authority", "Apartment", "Deception", "Recommend",
"Highlighter", "Incomplete", "Javascript", "Compressor", "Dentistry", "Rectangle", "Exhausted", "Slimeball", "Commander", "Associate",
"Complicated", "Government", "Ceptillion", "Deflection", "Cosmetics", "Trapezoid", "Hamburger", "Raspberry", "Developer", "Accompany",
"Basketball", "Milkshakes", "Antibiotic", "Vocabulary", "Australia", "Dodecagon", "Miniature", "Blueberry", "Historian", "Machinery",
"Volleyball", "Earthquake", "Girlfriend", "Definition", "Christmas", "Hot Sauce", "Cardboard", "Dimension", "Overreact", "Character",
"Television", "Motorcycle", "Despicable", "Contradict", "Chocolate", "Screaming", "Microsoft", "Barbarian", "Backspace", "Knowledge",
"Microphone", "Buccaneers", "Affordable", "Attendance", "Halloween", "Demanding", "Wrestling", "Lightbulb", "Wisconsin", "Secondary",
"Rhinoceros", "Applesauce", "Disconnect", "Protection", "Vacations", "Hopscotch", "Moderator", "Invisible", "Tennessee", "Adjective",
"Chestpiece", "Headphones", "Watermelon", "Reasonless", "Traveling", "Spectator", "Paintball", "Carnivore", "Awareness", "Direction",
"Complicated", "Controller", "Chimpanzee", "Deportment", "Saxophone", "Quadruple", "Champions", "Herbivore", "Unexcused", "Different",
"Antarctica", "Paintbrush", "Newsletter", "Appearance", "Hurricane", "Autopilot", "Architect", "Automatic", "Diplomacy", "Construct",
"Snowflakes", "Typewriter", "Sunglasses", "Occupation", "Piercings", "Principle", "Sharpness", "Performer", "Valentine", "Alternate",
"Strawberry", "Smartwatch", "Horrendous", "Antarctica", "Necklaces", "September", "Trademark", "Miniscule", "Copyright", "Opposable",
"Blackholes", "Minestrike", "California", "Wristwatch", "Evolution", "Microwave", "Dangerous", "Humongous", "Practical", "Imaginary",
"Rocketship", "Deathmatch", "Transplant", "Confusion", "Spaceship", "Eyeshadow", "Afternoon", "Judgement", "Imperfect", "Bonemeal",
"Aquamarine", "Playground", "Inevitable", "Surprised", "Lightning", "Butterfly", "Beekeeper", "Gladiator", "Excessive", "Courages",
"Levitation", "Resistance", "Inflatable", "Newspaper", "Sketching", "Centipede", "Parachute", "Treachery", "Crocodile", "Baseball",
"Vegetables", "Lighthouse", "Relentless", "Dinosaurs", "Teenagers", "Cartwheel", "Barricade", "Blowtorch", "Alligator", "Presents",
"Whispering", "Helicopter", "Mistakable", "Tarantula", "Grassland", "Hard Rock", "President", "Raincloud", "Incentive", "Balloons",
"Announcing", "Mechanical", "Expectance", "Stone Axe", "Mountains", "Pop Music", "Fingertip", "Millenium", "Structure", "Keyboard",
"Meditation", "Toothbrush", "Tumbleweed", "Sandstone", "Dumplings", "Scientist", "Pineapple", "Boyfriend", "Spotlight", "Computer",
"Clothing", "Elephant", "Reptiles", "Scorpion", "Redstone", "Diamonds", "Porkchop", "Endermen", "Obsidian", "Planting",
"Potatoes", "Vampires", "Bracelet", "Coloring", "Thousand", "Hologram", "Lipstick", "Cruising", "Delivery", "Dreaming",
"Minecart", "Werewolf", "Highways", "Painting", "Infinity", "Ancestor", "Eyeliner", "Complete", "Packages", "Thinking",
"Unicorns", "Pumpkins", "Internet", "Toddlers", "Swimming", "Wreckage", "Siblings", "Branches", "Criminal", "Engineer",
"Military", "Costumes", "Earrings", "Children", "Triangle", "Defender", "Baguette", "Politics", "Handsome", "Reindeer",
"Portland", "Chipotle", "Dolphins", "Pre-teen", "Pentagon", "Homework", "Princess", "Citizens", "Gorgeous", "Necklace",
"Penguins", "Sapphire", "Galaxies", "Campfire", "Heptagon", "February", "Alphabet", "Username", "Panthers", "Mineplex",
"Barbecue", "Amethyst", "Cartoons", "Tropical", "Lollipop", "November", "Scissors", "Medicine", "Warriors", "Pallette",
"Mermaids", "Clarinet", "Basement", "Broccoli", "Shouting", "December", "Eternity", "Behavior", "Chatting", "Dominate",
"Assassin", "Elevator", "Weakness", "Blizzard", "Entrance", "Universe", "Teleport", "Director", "Stuffing", "Eruption",
"Godzilla", "Electron", "Strength", "Powerful", "Dynamite", "Backyard", "Gradient", "Producer", "Festival", "Mattress",
"Empoleon", "Building", "Dinosaur", "Illusion", "Mustache", "Ceremony", "Shipment", "Cosmetic", "Applause", "Research",
"Chimchar", "Aquarium", "Sidewalk", "Calendar", "Treasure", "Airplane", "Envelope", "Kangaroo", "Goldfish", "Starfish",
"Nickname", "Slowness", "Official", "Accident", "Cinnamon", "Collapse", "Geometry", "Barnacle", "Football", "Creative",
"Hypnotic", "Antidode", "Emulator", "Foothold", "Friction", "Tungsten", "Tablets", "Torches", "Fairies", "Windows",
"Conquest", "Province", "Overflow", "Graceful", "Negative", "Doctrine", "Charger", "Carrots", "Spirits", "Robbers",
"Karambit", "Solution", "Sandiwch", "Catapult", "Positive", "Firework", "Ukulele", "Dragons", "Cobwebs", "Drawing",
"Internal", "Japanese", "Atronomy", "Villager", "Tranquil", "Compress", "Glasses", "Nursing", "College", "Magenta",
"Trillion", "Standard", "Atrology", "Infringe", "Fortress", "Prisoner", "Daisies", "Soldier", "Courses", "Serpent",
"Carnival", "Parasite", "Porridge", "Variable", "Charcoal", "Decision", "Hazards", "Jupiter", "Buttons", "Camping",
"Concrete", "Carriage", "Pressure", "Practice", "Commerce", "Windmill", "Cheetah", "Mercury", "Octopus", "Canyons",
"Pavement", "Auxilary", "Demolish", "Maintain", "Barbeque", "Parmesan", "Vulture", "America", "Printer", "Seventy",
"Joystick", "Marshall", "Franklin", "Umbrella", "Contract", "Warthog", "Turtles", "Ireland", "Titanic", "Hundred",
"Sppeaker", "Suitcase", "Michigan", "Darkness", "Separate", "Puzzled", "Ocelots", "Germany", "Vanilla", "Million",
"Figurine", "Mandarin", "Arkansas", "Ethernet", "Eligible", "Shocked", "Creeper", "Chillie", "Tornado", "Billion",
"Boundary", "Anteater", "Colorado", "Everyday", "Fraction", "Figures", "Zombies", "Jamaica", "Seaweed", "Twitter",
"Birthday", "Sunshine", "Virginia", "Surprise", "Compound", "Pillows", "Leather", "Bermuda", "Craters", "Waiting",
"Hogwarts", "Particle", "American", "Together", "Precious", "Erasers", "Chicken", "Bahamas", "Meteors", "Passion",
"Walking", "Decagon", "Spatula", "Science", "Bicycle", "Animate", "Cereal", "Graphic", "Message", "Episode",
"Running", "Talking", "Cooking", "Biology", "Sweater", "Cabinet", "Pokemon", "Kingdom", "Funeral", "Destroy",
"Jogging", "Yelling", "Fashion", "Pajamas", "Lettuce", "Furnace", "Chariot", "Package", "Grinder", "Defrost",
"Breathe", "Ladybug", "Brother", "Reflect", "Cheddar", "Bridges", "Spawner", "Exhibit", "Nuclear", "Avocado",
"Muscles", "Envader", "Grandpa", "Confirm", "Speaker", "Wizards", "Stacker", "Feather", "Channel", "Thunder",
"Marbles", "Contest", "Grandma", "History", "Minigun", "Skywars", "Turtwig", "Morning", "Explode", "Factory",
"Polygon", "Teacher", "Royalty", "Balcony", "Android", "Monster", "Emerald", "Primate", "Village", "Company",
"Degrees", "Glacier", "Cricket", "Partner", "Mideval", "Gravity", "Surgeon", "Volcano", "Forward", "Console",
"Hexagon", "Cyclops", "Kung-fu", "Bonjour", "Painter", "Snowman", "Caramel", "Lullaby", "Sparrow", "Blowgun",
"Octagon", "January", "Century", "Bowling", "Plumber", "Explore", "Healing", "Circuit", "Vampire", "Distort",
"Nonagon", "October", "Lockers", "Justice", "England", "Pancake", "Whisper", "Voltage", "Ceramic", "Avenger",
"Bazooka", "Actress", "Highway", "Fighter", "Notepad", "Knuckle", "YouTube", "Fishing", "Florida", "Capsule",
"Missile", "Haircut", "Apricot", "Deathly", "Cracker", "Western", "Colonel", "Balance", "Georgia", "Boolean",
"Pyramid", "Stomach", "Dracula", "Fractal", "Network", "Eastern", "Creator", "Monitor", "Glowing", "Integer",
"Mailbox", "Phantom", "Harpoon", "Endless", "Ketchup", "English", "Sunrise", "Examine", "Blowing", "Perfect",
"Algebra", "Pattern", "Cottage", "Crystal", "Mustard", "Spanish", "Unlucky", "Tragedy", "Deviate", "Builder",
"Penguin", "Emperor", "Amplify", "Hamster", "Paprika", "Chinese", "Shackle", "Kitchen", "Liberty", "Cupcake",
"Robotic", "Fortune", "Gazelle", "Scratch", "Revenge", "Honesty", "Hideout", "Compass", "Italian", "Demoman",
"Machine", "Gymnast", "Balloon", "Country", "Poision", "Brendan", "Connect", "Fireman", "Mexican", "Neptune",
"Aquatic", "Hostage", "Program", "Witness", "Villain", "Virtual", "Supreme", "Platter", "Ukraine", "Profile",
"Hatchet", "Hangers", "Bayonet", "Gamepad", "Bandage", "Blister", "Archive", "Implode", "Hilbert", "Offline",
"Shelter", "Primary", "Organic", "Healthy", "Makeup", "Blazes", "Brazil", "Horror", "Subway", "Babies",
"Capture", "Various", "Gradual", "Rapture", "Pollen", "String", "Warren", "Moving", "Shorts", "Elders",
"Elegant", "Violate", "Heroic", "Violent", "Leaves", "Soccer", "Europe", "School", "Scarfs", "Orange",
"Dentist", "Neglect", "Strong", "Solvent", "Monkey", "Closet", "Africa", "Hotels", "Sharks", "Yellow",
"Combine", "Fulfill", "Barbie", "Engrave", "Rabbit", "Carpet", "Winter", "Zipper", "Whales", "Purple",
"Surface", "Sailing", "Pencil", "Passage", "Kitten", "Satern", "Spring", "Acorns", "Comets", "Graffe",
"Gelatin", "Klarin", "Phones", "Quality", "Ingots", "Uranus", "Summer", "Pariot", "Comedy", "Poison",
"Similar", "Flutter", "Shield", "Psychic", "Spider", "Mexico", "Autumn", "Cruise", "Sports", "Forest",
"Oxidize", "Disease", "Guitar", "Opossum", "Ghasts", "France", "Ghosts", "Lucius", "Cement", "Desert",
"Purpose", "Symptom", "Sticks", "Measure", "Slimes", "Greece", "Spooky", "Coffee", "Aliens", "Cities",
"Bikini", "Mortal", "Serena", "Future", "Bottle", "Helmet", "Crunch", "Afraid", "Threat", "Static",
"Happy", "Knife", "Scary", "Lapis", "Skirt", "Waves", "Calem", "Clock", "Taste", "Lucas",
"Anger", "Spork", "Maike", "Candy", "Shirt", "Tides", "Ocean", "Crawl", "Smell", "React",
"Dolls", "Roses", "Trips", "Flute", "Pants", "Brick", "Three", "Ethan", "Uncle", "Lunch",
"Legos", "Tulip", "Beach", "Wipes", "Heels", "Straw", "Seven", "Hands", "Queen", "Books",
"Couch", "Grass", "Clans", "Frame", "Nails", "Cream", "Eight", "Belly", "Crown", "Polls",
"Vases", "Tiger", "Wagon", "Sleet", "Rings", "Attic", "Forty", "Chest", "Staff", "Hello",
"Sword", "Panda", "Sleep", "Roads", "Money", "Green", "Fifty", "Brush", "Tools", "Howdy",
"Banjo", "Sloth", "X-ray", "Truck", "Coral", "Speed", "Sixty", "Peace", "Music", "Court",
"Drums", "Snake", "Socks", "Plane", "Reefs", "Hilda", "Brown", "Heart", "Lucia", "Raven",
"Spoon", "Boots", "Pearl", "Train", "Horse", "Woods", "Silly", "Lotta", "Month", "Games",
"Love", "Cats", "Lava", "Ship", "Moon", "Five", "Head", "July", "Mask", "Hola",
"Rosa", "Wolf", "Soda", "Ruby", "News", "Nine", "Hair", "Feel", "Jazz", "Soft",
"Toys", "Duck", "Mars", "Mint", "Ufos", "Grey", "Ears", "Hear", "Hour", "Hard",
"Soap", "Ores", "Cuba", "Snow", "Cops", "Derp", "Eyes", "Oven", "Week", "Clay",
"Wigs", "Gold", "Asia", "Rain", "Lime", "Time", "Star", "King", "Year", "Gold",
"Fork", "Iron", "Elfs", "Suit", "Blue", "Tony", "Salt", "Ants", "Nate", "Mind",
"Weed", "Pigs", "Brix", "Blue", "Pink", "Hide", "Kris", "File", "Yard", "Comb",
"Wood", "Lyra", "Frog", "Hats", "Heal", "Feet", "Yoga", "Edit", "Mile", "Paws",
"Bird", "Wool", "Fish", "Eels", "Jump", "Arms", "Boom", "View", "Girl", "Tree",
"Lion", "Dirt", "Yarn", "Dawn", "Four", "Neck", "June", "Help", "Mail", "Lamp",
"Sad", "Sun", "Pan", "Yes", "Dad", "Bat", "Wig", "KFC", "War", "Fan",
"Red", "Jam", "Ivy", "Map", "Fur", "Yen", "Hum", "May", "Dog",
"One", "Day", "Sky", "Add", "Orb", "Hip", "Sew", "Act", "Ice",
"Two", "Gum", "Cow", "Moo", "Bee", "Ape", "Zoo", "Pit", "Hat",
"Six", "Gym", "Rat", "Mow", "Pot", "Dot", "Paw", "Hen", "Bed",
"Ten", "Art", "Bag", "Mob", "End", "Egg", "Saw", "Law", "Fog",
"Fly", "Boy", "Rag", "New", "Jet", "Pet", "Tin", "Pen", "Car",
"Old", "Age", "TNT", "Leg", "Axe", "UFO", "Rap", "Wet", "Tie",
"May", "Gas", "Hue", "Wax", "Toy", "Lay", "Pop", "Dry", "Sea",
"See", "Ash", "Mom", "Box", "Key", "Fat", "Spy",
"why +3?"};
private ArcadeManager _manager; private ArcadeManager _manager;

View File

@ -17,15 +17,15 @@ import org.bukkit.entity.EntityType;
public enum MinionType public enum MinionType
{ {
ZOMBIE(DisguiseZombie.class ,EntityType.ZOMBIE, 9, 12, (float) 1.5, 2, 3, 4, Material.ROTTEN_FLESH), //ZOMBIE(DisguiseZombie.class ,EntityType.ZOMBIE, 9, 12, (float) 1.5, 2, 3, 4, Material.ROTTEN_FLESH),
SKELETON(DisguiseSkeleton.class ,EntityType.SKELETON, 9, 12, (float) 1.5, 2, 3, 4, Material.BONE), SKELETON(DisguiseSkeleton.class ,EntityType.SKELETON, 7, 10, (float) 1.5, 2, 3, 4, Material.BONE),
CREEPER(DisguiseCreeper.class ,EntityType.CREEPER, 9, 12, (float) 1.5, 2, 3, 4, Material.SULPHUR), //CREEPER(DisguiseCreeper.class ,EntityType.CREEPER, 9, 12, (float) 1.5, 2, 3, 4, Material.SULPHUR),
WOLF(DisguiseWolf.class ,EntityType.WOLF, 3, 8, 2, 1, 2, 3, Material.COOKED_BEEF), WOLF(DisguiseWolf.class ,EntityType.WOLF, 3, 6, 2, 1, 2, 3, Material.COOKED_BEEF),
SLIME(DisguiseSlime.class ,EntityType.SLIME, 3, 8, 2, 1, 2, 3, Material.SLIME_BALL), //SLIME(DisguiseSlime.class ,EntityType.SLIME, 3, 8, 2, 1, 2, 3, Material.SLIME_BALL),
CUBE(DisguiseMagmaCube.class ,EntityType.MAGMA_CUBE, 3, 8, 2, 1, 2, 3, Material.MAGMA_CREAM), //CUBE(DisguiseMagmaCube.class ,EntityType.MAGMA_CUBE, 3, 8, 2, 1, 2, 3, Material.MAGMA_CREAM),
IRON_GOLEM(DisguiseIronGolem.class ,EntityType.IRON_GOLEM, 13, 18, 1, 4, 6, 8, Material.IRON_INGOT), IRON_GOLEM(DisguiseIronGolem.class ,EntityType.IRON_GOLEM, 10, 18, 1, 4, 6, 8, Material.IRON_INGOT);
HORSE(DisguiseHorse.class ,EntityType.HORSE, 13, 18, 1, 4, 6, 8, Material.APPLE), //HORSE(DisguiseHorse.class ,EntityType.HORSE, 13, 18, 1, 4, 6, 8, Material.APPLE),
ENDERMAN(DisguiseEnderman.class ,EntityType.ENDERMAN, 13, 18, 1, 4, 6, 8, Material.ENDER_STONE); //ENDERMAN(DisguiseEnderman.class ,EntityType.ENDERMAN, 13, 18, 1, 4, 6, 8, Material.ENDER_STONE);
private Class<? extends DisguiseBase> _disguiseClass; private Class<? extends DisguiseBase> _disguiseClass;

View File

@ -12,7 +12,9 @@ import mineplex.core.common.util.UtilEnt;
import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilMath;
import mineplex.core.common.util.UtilPlayer; import mineplex.core.common.util.UtilPlayer;
import mineplex.core.common.util.UtilTextBottom; import mineplex.core.common.util.UtilTextBottom;
import mineplex.core.common.util.UtilTextMiddle;
import mineplex.core.common.util.UtilTime; import mineplex.core.common.util.UtilTime;
import mineplex.core.itemstack.ItemStackFactory;
import mineplex.core.updater.UpdateType; import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent; import mineplex.core.updater.event.UpdateEvent;
import nautilus.game.arcade.ArcadeManager; import nautilus.game.arcade.ArcadeManager;
@ -32,6 +34,8 @@ import org.bukkit.event.EventHandler;
import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.event.player.PlayerInteractEvent;
import com.sun.xml.internal.ws.resources.UtilMessages;
public class TypeWars extends TeamGame public class TypeWars extends TeamGame
{ {
@ -72,6 +76,7 @@ public class TypeWars extends TeamGame
this.DamageEvP = false; this.DamageEvP = false;
this.DamagePvE = false; this.DamagePvE = false;
this.DamagePvP = false; this.DamagePvP = false;
this.TeamArmorHotbar = true;
_activeMinions = new ArrayList<>(); _activeMinions = new ArrayList<>();
_deadMinions = new ArrayList<>(); _deadMinions = new ArrayList<>();
@ -262,6 +267,7 @@ public class TypeWars extends TeamGame
_activeMinions.remove(minion); _activeMinions.remove(minion);
_deadMinions.add(minion); _deadMinions.add(minion);
UtilPlayer.message(event.getPlayer(), F.main("Game", "You killed the "+ "Minion " + C.cYellow + "\"" + minion.getName() + "\"" + C.cGray + " and got " + minion.getMoney() + "$")); UtilPlayer.message(event.getPlayer(), F.main("Game", "You killed the "+ "Minion " + C.cYellow + "\"" + minion.getName() + "\"" + C.cGray + " and got " + minion.getMoney() + "$"));
UtilTextMiddle.display("", C.cGreen + "+" + minion.getMoney() + "$");
_moneyMap.put(event.getPlayer(), _moneyMap.get(event.getPlayer()) + minion.getMoney()); _moneyMap.put(event.getPlayer(), _moneyMap.get(event.getPlayer()) + minion.getMoney());
return; return;
} }
@ -340,6 +346,33 @@ public class TypeWars extends TeamGame
SetState(GameState.End); SetState(GameState.End);
} }
@EventHandler
public void updateHotbarItems(UpdateEvent event)
{
if(!IsLive())
return;
if (event.getType() != UpdateType.FASTEST)
return;
for(Player player : GetPlayers(true))
{
int i = 4;
for(MinionType type : MinionType.values())
{
if(_moneyMap.get(player) >= type.getCost())
{
player.getInventory().setItem(i, ItemStackFactory.Instance.CreateStack(type.getDisplayItem(), (byte) 0, Math.round(_moneyMap.get(player)/type.getCost()), C.cGreen + "Spawn " + type.getType().getName() + " Cost: " + type.getCost()));
}
else
{
player.getInventory().setItem(i, ItemStackFactory.Instance.CreateStack(type.getDisplayItem(), (byte) 0, 0, C.cRed + "Spawn " + type.getType().getName() + " Cost: " + type.getCost()));
}
i++;
}
}
}
@Override @Override
@EventHandler @EventHandler
public void ScoreboardUpdate(UpdateEvent event) public void ScoreboardUpdate(UpdateEvent event)

View File

@ -31,10 +31,10 @@ public class KitTyper extends Kit
@Override @Override
public void GiveItems(Player player) public void GiveItems(Player player)
{ {
int i = 0; int i = 4;
for(MinionType type : MinionType.values()) for(MinionType type : MinionType.values())
{ {
player.getInventory().setItem(i, ItemStackFactory.Instance.CreateStack(type.getDisplayItem(), (byte) 0, 1, C.cYellow + "Spawn " + type.getType().getName(), new String[]{C.cGreen + "Cost: " + type.getCost()})); player.getInventory().setItem(i, ItemStackFactory.Instance.CreateStack(type.getDisplayItem(), (byte) 0, 1, C.cYellow + "Spawn " + type.getType().getName() + " Cost: " + type.getCost()));
i++; i++;
} }
} }