diff --git a/src/i/hesh/greet/commands.java b/src/i/hesh/greet/commands.java index 6eb5ef3..9c0cb6f 100644 --- a/src/i/hesh/greet/commands.java +++ b/src/i/hesh/greet/commands.java @@ -59,19 +59,12 @@ public class commands extends JavaPlugin { } - if(cmd.getName().equalsIgnoreCase("kit1")) { - ItemStack kit1p = new ItemStack(Material.STONE_PICKAXE); - ItemStack kit1s = new ItemStack(Material.STONE_SWORD); - ItemStack kit1a = new ItemStack(Material.STONE_AXE); - ItemStack kit1t = new ItemStack(Material.TORCH,5); - - p.sendMessage( greetprefix + ChatColor.AQUA + "Survival Kit"); - - p.getInventory().addItem(kit1p); - p.getInventory().addItem(kit1s); - p.getInventory().addItem(kit1a); - p.getInventory().addItem(kit1t); - + if(cmd.getName().equalsIgnoreCase("kit1") && p.isOp()) { + + p.getInventory().addItem(new ItemStack(Material.STONE_PICKAXE)); + p.getInventory().addItem(new ItemStack(Material.STONE_SWORD)); + p.getInventory().addItem(new ItemStack(Material.STONE_SWORD)); + p.getInventory().addItem(new ItemStack(Material.STONE_SWORD)); } /*if(cmd.getName().equalsIgnoreCase("setspwan")) { // TODO: give option of new arg to set cords & p.setBedSpawnLocation(p.getLocation()); @@ -82,12 +75,4 @@ public class commands extends JavaPlugin { } - public String hesh() { - String Players; - Players = Bukkit.getServer().getOnlinePlayers().toString(); - - - return Players; - } - }