I forgot about that~ Thanks, works now! :)
Hello! I've got a function which purpose is to return a random online player. However, when I have 2 players online, it keeps returning the same...
Okay, doing what you say seems to work, kinda. This is my new code for damageTool() private void damageTool(ItemStack item, int...
I'll go ahead and try doing what you told me right now. And yes, I want the durability to be somewhere between 1 and ½, I should have been more...
How would I go about doing that?
Okay, I changed it to this: private void damageTool(ItemStack item, Random random){ short maxDurability = (short)...
I can't get it to work! This is my code right now: if ((random.nextInt(1000) * itemRarity) < 120){ ItemStack items = new...
I can't seem to figure out the difference. Help would be appreciated :) EDIT; Figured it out myself.
Okay, this is my code: @EventHandler public void entityDamageEvent(EntityDamageEvent event){ //Prevent zombies from burning if...
Hey! I'm splitting up my Main event listener into several classes, and I want to make it so that different listeners only listens for certain...
Makes sense. How do I check if the cause of the damage is fire?
Question 1: How do I stop the server with code? I want the server to automatically turn of after a while, but I don't know how to do it? I thought...
Okay, figured it out. I just had to pass plugin with the method and not store it since earlier in the abstract PlayerInfo class. Not sure why, but...
Doesn't work. Then it just points the nullPointerException at this line instead: "Player[] onlinePlayers = plugin.getServer().getOnlinePlayers();"...
As the title says, I get a NullPointerExcpetion while trying to loop through all the online players. This is my code: public static...
Changed it from 25 to 20 and now it seems to work :S Think I read somewhere that the number has to be even or something~
In my plugin, I have a kill counter, and I want to make it so if your kills amounts to a multiply by 25, then broadcast it. What I have so far...
Oh, well that sucks. Are you sure? Then it'd switch instantly from night to day, and vice verse.
If I for example would like to make the day shorter, and the night longer, how would I go about doing this? I've searched for a while but couldn't...
Thank you :)
Separate names with a comma.