Didn't work :/ hmm i need it :p.
i know Thanks! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Right now it can already place blocks and remove them, but when placing it will create on all sides of the block a block, and i only want to add a...
if(args.length== 1){ player.performCommand("tp " + player.getName() + args[0]); } else if(agrs.length == 2){ player.performCommand("tp " + args[0]...
Maybe replace "cmd.getName().equalsIgnoreCase("NGheal");" to "commandLabel.equalsIgnoreCase("NGheal");
I think your targetplayer isnt good, try using: Player tplayer = getServer().getPlayer(args[0]; And your "You've been healed" is wrong use:...
Try using, Player player = getServer().getPlayer(getName()); getConfig().get("1").equals(player.getName());
I'm just saying, what was told me.
I'm making a FarReach plugin, right know it can destroy blocks from far away, but not yet place blocks on the good sides :/
It works but, right now they will be placed everywhere, i think the BlockFace is wrong any suggestions for that?
Multiple onCommands will make the plugin go less faster then just 1 onCommand
1st question is how to get the face of the block, and add x, y, z to it so when u look at the side it will place an block on that side and not on...
Will this be a private plugin
Youre using way too much lines for commands, while its possible to make them very small.
I dont really understand what youre trying to do but, if its insta-eat try using: if(player.getItemInHand()== Material.APPLE){...
Separate names with a comma.