@@ -0,0 +1,1612 @@
+package com.gabrielsimmer;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.Material;%0Aimport org.bukkit.command.Command;%0Aimport org.bukkit.command.CommandExecutor;%0Aimport org.bukkit.command.CommandSender;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.inventory.ItemStack;%0Aimport org.bukkit.inventory.meta.ItemMeta;%0A%0Apublic class VipWand implements CommandExecutor %7B%0A%09%09List%3CString%3E wandLore = Arrays.asList(%22Show off a bit!%22, %22Right click me%22);%0A%09%09VipFun plugin;%0A%09%09ChatColor gC = ChatColor.GOLD; //Basically shortens ChatColor.GOLD to gC for easier access.%0A%09%09%0A%09%09public VipWand(VipFun passedPlugin)%7B%0A%09%09%09this.plugin = passedPlugin;%0A%09%09%7D%0A%09%09%0A%09%09@Override%0A%09%09public boolean onCommand(CommandSender sender, Command cmd, String label, String%5B%5D args)%7B%0A%09%09%09Player player = (Player) sender;%0A%09%09%09%0A%09%09%09if(!player.hasPermission(%22vipfun.vip%22))%7B%0A%09%09%09%09player.sendMessage(ChatColor.RED + %22Sorry, you're not VIP! Use /buy to buy it!%22);%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09else if (player.hasPermission(%22vipfun.wand%22))%7B%0A%09%09%09%0A%09%09%09player.sendMessage(gC + %22Enjoy the magical VIP wand!%22);%0A%09%09%09ItemStack vipWandItem = new ItemStack(Material.CARROT_STICK); //Custom resource pack needs to make this kickass%0A%09%09%09ItemMeta vipWandMeta = vipWandItem.getItemMeta(); //GET THE META%0A%09%09%09vipWandMeta.setDisplayName(gC + %22VIP Magic Wand%22); //Item name%0A%09%09%09vipWandMeta.setLore(wandLore);%0A%09%09%09vipWandItem.setItemMeta(vipWandMeta); //SET THE META! %0A%09%09%09%0A%09%09%09/*%0A%09%09%09 * GET THE META%0A%09%09%09 * SET THE META%0A%09%09%09 * etc. Testing%0A%09%09%09 */%0A%09%09%09%0A%09%09%09player.getInventory().addItem(vipWandItem); //Give player the item%0A%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09return false;%0A%09%09%7D%0A%09%09%0A%7D%0A

Create VipWand.java