Code:java package me.taismoove.lists; import java.util.ArrayList;import java.util.List;import java.util.logging.Logger; import me.taismoove.main.Main; import org.bukkit.ChatColor;import org.bukkit.GameMode;import org.bukkit.Location;import org.bukkit.Material;import org.bukkit.command.Command;import org.bukkit.command.CommandExecutor;import org.bukkit.command.CommandSender;import org.bukkit.entity.Player;import org.bukkit.inventory.ItemStack;import org.bukkit.inventory.PlayerInventory;import org.bukkit.plugin.PluginDescriptionFile; public class CodeCommandExecutor implements CommandExecutor { public static Main plugin; Logger l = Logger.getLogger("CodeCraft_Plugin"); public final String cPrefix = ChatColor.RED + "[" + ChatColor.BLUE + "CodeCraft" + ChatColor.RED + "]"; public final String noPerms = cPrefix + " " + ChatColor.BLUE + "Insufficient permissions!"; public int GM = 0; public int ID = 0; public int Amount = 0; public boolean isEnabled = false; List<Player> enabledUsers = new ArrayList<Player>(); public CodeCommandExecutor(Main main) { main = plugin; } public boolean onCommand(CommandSender se, Command cmd, String cmdl, String[] args) { Player pl = (Player) se; if (cmd.getName().equalsIgnoreCase("gme")) { if (se.hasPermission(new Permissions().gme)) { if (se instanceof Player) { if (args.length == 0) { se.sendMessage(cPrefix + " " + ChatColor.BLUE + "[0 (Survival):1 (Creative):2 (Adventure)]"); } else if (args.length == 1) { GM = Integer.parseInt(args[0]); pl.setGameMode(GameMode.getByValue(GM)); pl.sendMessage(cPrefix + " " + ChatColor.BLUE + "You are now: " + ChatColor.RED + GM); } else if (args.length == 2) { Player target = pl.getServer().getPlayer(args[0]); target.setGameMode(GameMode.getByValue(GM)); target.sendMessage(cPrefix + " " + ChatColor.BLUE + "You are now: " + ChatColor.RED + GM); } else if (args.length > 2) { se.sendMessage(cPrefix + " " + ChatColor.BLUE + "Usage: /gme [0:1:2] <Player>"); } } else { PluginDescriptionFile p = plugin.getDescription(); l.info("[" + p.getName() + "]" + " " + "You must be a player to perform that command!"); } } else { se.sendMessage(noPerms); } } if (cmd.getName().equalsIgnoreCase("fme")) { if (se.hasPermission(new Permissions().fme)) { if (se instanceof Player) { if (args.length == 0) { if (!isEnabled) { isEnabled = true; enabledUsers.add(pl); pl.setAllowFlight(true); pl.sendMessage(cPrefix + " " + ChatColor.BLUE + "Flight has been enabled!"); } else { isEnabled = false; enabledUsers.remove(pl); pl.setAllowFlight(false); pl.sendMessage(cPrefix + " " + ChatColor.BLUE + "Flight has been disabled!"); } } else if (args.length == 1) { Player target = pl.getServer().getPlayer(args[0]); if (!isEnabled) { isEnabled = true; enabledUsers.add(target); target.setAllowFlight(true); target.sendMessage(cPrefix + " " + ChatColor.BLUE + "Flight has been enabled!"); } else { isEnabled = false; enabledUsers.remove(target); target.setAllowFlight(false); target.sendMessage(cPrefix + " " + ChatColor.BLUE + "Flight has been disabled!"); } } } else { PluginDescriptionFile pdf = plugin.getDescription(); l.info("[" + pdf.getName() + "]" + " " + "You must bea player to perform that command!"); } } else { se.sendMessage(noPerms); } } if (cmd.getName().equalsIgnoreCase("t") || cmd.getName().equalsIgnoreCase("tele")) { if (se.hasPermission(new Permissions().tele)) { if (se instanceof Player) { if (args.length == 0) { se.sendMessage(cPrefix + " " + ChatColor.BLUE + "Usage: /t <Player> or /t <Player> <Player>"); } else if (args.length == 1) { Player target = pl.getServer().getPlayer(args[0]); Location targetLocation = target.getLocation(); pl.teleport(targetLocation); se.sendMessage(cPrefix + " " + ChatColor.BLUE + "Whoosh!"); } else if (args.length == 2) { Player target1 = pl.getServer().getPlayer(args[1]); Player target2 = pl.getServer().getPlayer(args[1]); Location target2Location = target2.getLocation(); target1.teleport(target2Location); target1.sendMessage(cPrefix + " " + ChatColor.BLUE + "Whoosh!"); } } else { PluginDescriptionFile p = plugin.getDescription(); l.info("[" + p.getName() + "]" + " " + "You must be a player to perfrom this command!"); } } else { se.sendMessage(noPerms); } } if (cmd.getName().equalsIgnoreCase("c") || cmd.getName().equalsIgnoreCase("cookie")) { if (se.hasPermission(new Permissions().cookie)) { if (se instanceof Player) { if (args.length == 0) { se.sendMessage(cPrefix + " " + ChatColor.BLUE + "Usage: /c <Amount> or /c <Amount> <Player>"); } else if (args.length == 1) { Amount = Integer.parseInt(args[0]); ItemStack cookie = new ItemStack(Material.COOKIE, Amount); ItemStack milk = new ItemStack(Material.MILK_BUCKET, 1); PlayerInventory pi = pl.getInventory(); pi.addItem(cookie); pi.addItem(milk); pl.sendMessage(cPrefix + " " + ChatColor.BLUE + "Here is your Milk and Cookie(s)!"); } else if (args.length == 2) { ItemStack cookie = new ItemStack(Material.COOKIE, Amount); ItemStack milk = new ItemStack(Material.MILK_BUCKET, 1); Player target = pl.getServer().getPlayer(args[1]); PlayerInventory ti = target.getInventory(); ti.addItem(cookie); ti.addItem(milk); target.sendMessage(cPrefix + " " + ChatColor.BLUE + "Here is Milk and Cookie(s)!"); } } else { PluginDescriptionFile p = plugin.getDescription(); l.info("[" + p.getName() + "]" + " " + "You must be a player to perform this command!"); } } else { se.sendMessage(noPerms); } } if (cmd.getName().equalsIgnoreCase("co") || cmd.getName().equalsIgnoreCase("coords")) { if (se.hasPermission(new Permissions().coords)) { if (se instanceof Player) { if (args.length == 0) { int x = pl.getLocation().getBlockX(); int y = pl.getLocation().getBlockY(); int z = pl.getLocation().getBlockZ(); pl.sendMessage(cPrefix + " " + ChatColor.BLUE + "You coords are: " + ChatColor.RED + "[" + ChatColor.YELLOW + "X: " + ChatColor.BLUE + x + ChatColor.RED + ": " + ChatColor.YELLOW + "Y: " + ChatColor.BLUE + y + ChatColor.RED + ": " + ChatColor.YELLOW + "Z: " + ChatColor.BLUE + z); } else if (args.length == 1) { Player target = pl.getServer().getPlayer(args[0]); int xt = target.getLocation().getBlockX(); int yt = target.getLocation().getBlockY(); int zt = target.getLocation().getBlockZ(); pl.sendMessage(cPrefix + " " + ChatColor.BLUE + target.getName() + "'s coords are: " + ChatColor.RED + "[" + ChatColor.YELLOW + "X: " + ChatColor.BLUE + xt + ChatColor.RED + ": " + ChatColor.YELLOW + "Y: " + ChatColor.BLUE + yt + ChatColor.RED + ": " + ChatColor.YELLOW + "Z: " + ChatColor.BLUE + zt); } } else { PluginDescriptionFile p = plugin.getDescription(); l.info("[" + p.getName() + "]" + " " + "You must be a player to perform this command!"); } } else { se.sendMessage(noPerms); } } return false; }} Just wondering : )