Unfortunately learning Java isn't an instantaneous process (or even close to it). Watching Youtube videos on making plugins is great, but most of...
Get a copy of whatever information you want to persist and store it locally. After your setWorld() and setY() methods fire, just call more methods...
DrTURTLE2 Gonna assume you are being sarcastic. Here's a tip: Google exactly what he posted and learn for yourself how the Random class works.
Depends on how you are checking the sign interaction and retrieving the player. To me it seems like it might just be a minor bug; post code?
I haven't used Multiverse in a while but I believe that the worlds may be stored differently (not being in the main folder)? Regardless, MV has an...
mactown21 ArrayIndexOutOfBoundsException You're assuming that args[1] is not null when you declare it to a variable. String name = args[1];...
Memory leaks shouldn't really be a problem because of garbage collection. The main purpose of having that method is to store persistent data that...
You can just use a long string to store information. I remember a library a while ago that was cleverly coded using reflection and recursion which...
Player has methods for getting the saturation level and setting it. You'd have to listen for all events which drain the saturation level and then...
He'd basically be writing the entire class for you if he had to give any example code. You have 2 (reasonable) options in my opinion: Make a...
if (p.hasPermission("ServerTP.sethub")) { plugin.getConfig().set("hub_tp_location.world", p.getLocation().getWorld().getName());...
When you get the player's pitch and yaw using aforementioned methods, you need to cast them to doubles first before saving using a configuration's...
Post updated code please.
Are you confirming what I said or what? java.lang.NumberFormatException: For input string: "" That's exactly what I said would happen. If you...
Integer.parseInt() will throw a NumberFormatException if it isn't passed an int. Just surround your code with a try-catch block and if it catches,...
Separate names with a comma.