If you do want to check if the item in hand is named - make checks for 'hasItemMeta()' & 'getItemMeta().hasCustomName()' before checking the name....
Try this: Villager v = (Villager) e; Change it to: Villager v = (Villager) e.getRightClicked();
Try this :) : @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if...
when you type '/mute list' It shows the List<String> muted as a string. The actual muting doesnt work :(
:/ 2013-07-12 14:29:08 [INFO] Roughbread issued server command: /mute list 2013-07-12 14:29:08 [INFO] [] 2013-07-12 14:29:10 [INFO] Roughbread...
This is what I got. 2013-07-12 14:01:02 [INFO] Roughbread issued server command: /mute list 2013-07-12 14:01:02 [INFO] [] 2013-07-12 14:01:23...
At what point in my code though? When the command is issued and after yeah?
I'm sorry, I don't understand what you mean. Could you give an example of using that 'debug' message? :)
Change: Player player = Bukkit.getServer().getPlayer(getDisplayName()); To: Player player = event.getPlayer(); String playerName =...
They are stored in List<String> muted. Mutedplayers is just for the list command. This is what is happening. [IMG] The "That player isn't...
Hey guys/girls. Would someone please tell me why my code isn't working. I get no errors at all, just run into a false statement in a...
I'm trying to save a hashmap after server stop and then load it after server start up again. Saving the hashmap: public void onDisable(){...
And then how about saving and loading them? Which is my main problem; saving and loading the data after server stops or restarts. EDIT by...
'//add each value to config' How so?
I am trying to code a simple economy plugin for my server where people have their own cash variables. I have it working in game so that everyone...
What I want it to be doing is saving all of the values of disable and reloading them on enable. Didn't work D: EDIT by Moderator: merged...
Still isn't saving correctly. It also isnt loading correctly. :/
As the title says, my config won't save it's stored data and retrieve it again on shutdown and start up. Code: public class rMod extends...
As the title says, I'm trying to load already saved HashMap values from shutdown back to onEnable. My code isn't currently working: public...
So just like this yeah? public class rMod extends JavaPlugin { public int autosave; public int combattag; public int autoadvert;...
Separate names with a comma.