I intialized it, but when I do /spawn, It teleports me on the corner of 4 blocks, I want the player to spawn on the block itself, how?
How can I intialize it?
My only question is why I get a NullPointException on the line getConfig().set and getConfig().getDouble, and how I can fix it. SetSpawn: public...
I found the problem, it was the simple thing that I was using plugin.getDescription().getName() to get the datafolder instead of...
The file will exist, because it is generated when a player joins with !file.exist. It will return member in the default case ( sorry if im...
Plugins folder > Datafolder > users > <uuid>.yml
When using the following code, it still gives this error: http://pastebin.com/QtUxbFSt It gives an error on line 25: File file = new File(etc)...
Hello everyone, I succesfully made a method that creates a playerfile whenever a player joins (And the file doesn't already exist), but my...
So I'm making a plugin that gives you a chest, and when you place it the location is saved to the config. With my current code the location gets...
That was the case, fixed it by now but thanks anyways ;)
When using a <UUID, String> HashMap, getConfigurationSection gives this error: Type mismatch: cannot convert from element type String to UUID....
I use this class to set a player's rank stored in a HashMap<UUID, String>. public class RankCommand implements CommandExecutor{ Main...
/setrank is still returning the usage in the plugin.yml
The case is that I save the rank of a player in a hashmap, so it will be player UUID with a value of player or user bound to it. My question was...
I have this code: public class RankCommand implements CommandExecutor{ Main plugin; public RankCommand(Main instance){...
I get it now, was a little sleepy when I tried to use it ;D
Doesn't work, it says: Type safety: Unchecked cast from Object to HashMap<UUID,String>. Add @SupressWarnings?
I know that UUID is not the same as OfflinePlayer, but I don't know how to fix the problem.
How can I add the UUID and the String(rank) to the config this way?
How can I make an item fixed, I know how to cancel the drop, but I don't know how how to let it stay in the slot even when you want to place it in...
Separate names with a comma.