Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class AMS implements CommandExecutor{
- Inventory inv;
- @Override
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
- Player p = (Player)sender;
- if(args.length == 0){
- ItemStack item1 = new ItemStack(Material.MOB_SPAWNER);
- ItemMeta itemMeta1 = item1.getItemMeta();
- itemMeta1.setDisplayName("§8Spawner Anzahl");
- item1.setItemMeta(itemMeta1);
- inv.setItem(5, item1);
- inv = Bukkit.getServer().createInventory(null, 9, p.getName() + "§c AMS");
- p.openInventory(inv);
- }else
- p.sendMessage(Main.ServerPrefix + "§7Falscher Command versuche es mal mit §c/ams");
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement