--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java 2011/05/18 19:00:26 1469 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/PowerMiner.java 2011/05/23 16:02:15 1477 @@ -25,10 +25,16 @@ @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - if (!sender.isOp()) + if (!sender.isOp()) { + sender.sendMessage("Only ops can use powerminer"); return false; - if (! (sender instanceof Player) ) + } + + if (! (sender instanceof Player) ) { + sender.sendMessage("Only in-game players can use powerminer"); return false; + } + Player p = (Player) sender; if (miners.contains(p.getName())) { @@ -67,10 +73,17 @@ case 27: case 28: return null; //instabreak drops powered and detector rails + case 54: + return null; //instabreak drops chests case 56: //diamond ore drops diamond return new ItemStack(264,1); + case 58: + return null; //instabreak drops craft tables + case 64: //instabreak drops wooden doors case 66: return null; //instabreak drops rails + case 71: //instabreak drops iron doors + return null; case 73: case 74: return new ItemStack(331,4); //redstone ore (both glowing and non-glowing) drops 4 redstone