Thank you! After looking it up and reading the Wikipedia page I see it's a normal Java method. Stupid that I did not know about that.
Hello, I have now spend at least a few hours at this piece of code, and even after a good night rest I am still not understanding why it would...
Maybe this will come in handy. [spoiler] You can use it like so: [spoiler] (Not writen in an IDE, so there could be some errors in it....
How about generating a random number from 0-2. If the number is 0, put the player in team one, and if the number is 1 or 2, put the player in team...
Oh okay, sorry then.
I'm not sure what you're trying to do with that. Converting a Long to Integer and rounding it down?
You need to make an onEnable method and add that into it. That might work. Also, if you want to check if the events (like PlayerInteractEvent,...
Maybe you need to register the event(s). (I'm not sure because I normally put my events in different classes). You can put this in OnEnable and...
Ah thanks, it worked. For some reason I also had to change 'net.minecraft.server.v1_4_5' to 'net.minecraft.server.v1_4_6'.
Sorry if this is a newby question, but I've never done things with NBT tags. I can't seem to get the imports to work. Things like...
(Sorry if this is too big of a bump). I can't help you with that, I've never figured it out myself either. But I guess you could try to change...
I'm glad it helped. Have fun with your plugin :) .
Could you please post the whole Main (where 'onEnable' is) class and the class where you're trying to use this?
You probably checked this already, I'm just posting this for the tiny bit of change that you haven't (I've seen it happen before): Most of the...
I'm probably wrong, but try replacing this: public void handleLogin(PlayerJoinEvent event) { Player player = event.getPlayer(); for...
Sorry, I forgot the getConfig() :P .
Try this: World world = getServer().getWorld(p + ".world");
Good thinking! Updated version that can check for Y value: public boolean inArea(Location targetLocation, Location inAreaLocation1, Location...
I thought about that too, but the original poster wants to use it for checking if a player is in a town or city. Most protection plugins, for...
No problem, it should also work with coordinates that are less than zero. Good luck with your plugin!
Separate names with a comma.