I finally figure out what was missing, for anyone else having problems with this... block.setData((byte)0x1); BlockState state =...
Debels did you get this figured out? It seems the idea would only check that it was an enchanted book, but not tell you what enchant it was for....
Digi Ok, So I get the Skull information, what do I do after that? I have tried that before(just setting it) and just filling it all out does...
chasechocolate That is for an Itemstack, but how to I do that for a Block? Block Head = HL.getBlock();...
Can anyone help with this, I have not done Block Data like this before.
Any examples of how to do that? I have not messed with blocks like this before, other then to change the type.
Hi I'm trying to create a Skull Block in the world from a Plugin. I have the following code and it half works. It creates a Skull Block of...
Sorry, got really busy over the weekend. if (args[0].equalsIgnoreCase("Vote")) { if (args.length != 2) {...
Ok, it looks like you have two HashMaps now, but you should only need one. On a Player Join Event you would call PlayerJoined with the Player....
Do you use YML config files for loading configurations?
http://jd.bukkit.org/doxygen/d3/d70/classorg_1_1bukkit_1_1potion_1_1PotionEffectType.html PotionEffectType.DAMAGE_RESISTANCE...
It seems valid, but I don't have the ability to do any testing till I get home.
Well just keep it in the back of your mind as you learn more. I would put up an example if I was home, and If I remember I will tonight (thou I...
You can still store the information to a hashmap, and update the data in the hashmap as each new player signs in or quits, and then save the...
I don't think I can help you then... Sorry
Assuming the data is mostly constant and not changing A lot, then load the table in to hash maps or save a result set of all players so then...
Sounds like you would have to loop through all the online players (Bukkit.getServer.getOnlinePlayers() [Or something close to that]) and then for...
I don't really know what you are after, but I would have your webserver talk to a SQL database, and then have the plug-in read from that database.
You don't need to get a player instance just to be able to add a string-name to the hashmap. I would make it so that OnPlayerJoin event adds...
Use a hashmap that has the player name as the key, and the number of votes as the 2nd item. HashMap<String, Integer> POTW = new HashMap<String,...
Separate names with a comma.