It does work, but all usernames are case sensitive. IE: setOwner("Timr"); //works setOwner("timr"); //fails
input = ""; input = contents.toString(); If you try and split that, you'll get a String[] with no KVPs. That's why you get an exception. I...
if(!(str == names.get(names.size() - 1))) {}
Please please please use .equals() or .equalsIgnoreCase() to compare Strings.
Are you constructing your MySQL class properly? It seems that the NFE is coming from something above this class
ItemStack is an immuatble object, meaning that you cannot change it using static methods. here's some pseudo-code to redefine a String (which also...
Very nice, excellent work.
Check that the action is interacting with a block before you try and get the block, or you'll get errors like the ones you're experiencing.
public void setBlockFast(int x, int y, int z, String world, int typeID, byte data) { Chunk c = Bukkit.getWorld(world).getChunkAt(x, z);...
Can you show us the code you tried to use?
Heh, HashMap<String, List<List<String>>>;
HashMap<String, List<String>>, The first parameter is the player's name, the second is their string list. Use .get(Player.getName()) to get...
String a = "Hey, my name is Timr!"; a = a.substring(0, a.length() - 2); System.out.println(a); The above will print "Hey, my name is Tim"
String a = "&cHey! &3I like colours, &4do you?!"; //"a" contains a string with colour codes a = ChatColor.translateAlternateColorCodes('&', a);...
Are there two or more players online when you try to use the function? It should work.
Wrap your code in [ syntax=java][/syntax ] block tags. Is there something you're not showing us? I threw the code into NP++ and line 36 is the...
int x =0; m = 10 * x; 0 * 10 = 0 You're trying to give them 0?
This is what I used for a private project of mine, fairly simple class:...
Looks nice, good use of the tray icon for alerts. Apart from all the pony stuff, I would give this a solid 9/10 from what I've seen.
ItemStack i = PlayerDropItemEvent.getItemDrop().getItemStack(); int amountDropped = i.getAmount(); You should have looked at the JavaDocs, you...
Separate names with a comma.