So to do a 1 out of 5 chance it would be if(Chance >= 1 && Chance <= 5){ //Do my code here } ?
I have the random But how do 1 out 5 chance to win something?
I would like to make vote chances for my voting plugin, can anyone help me? the chances I want Lucky Vote 1/5 $1000 1/10 64 Obsidian 1/20 $5000...
Ultimate_n00b how would i store the npc in a hashmap? can i get some code?
fullwall i'm making a Sleepers plugin. When a player logs out it will create an NPC (Sleeper). If the sleeper get's killed it will drop the player...
I figured out how to handle damage "npc.setProtected(false);". But i need to figure out how to remove the NPC when the player logs in package...
I was able to spawn the NPC :). So glad that Bukkit is full of helpful people like @Stealth2800, @Gater12! Another thing I need to do is...
@Stealth2800 yes that's what I ment. I still cannot figure it out :| i have looked into citizens but no luck. Can you pint me into the right...
How do you create an NPC? can someone help me?
I would like to create an NPC (Sleeper) when the player logs out. When someone walks up the that Sleeper and kills it I will drop the inventory of...
I wonder if JPG2000 could help me :?
I need a plugin so a player can only set a home in their factions claim. When they get over-claimed or unclaimed I want the home to unset. can...
@mrkirby153 it did not work, When i set the boolean to true with the command then i chat the event says the boolan is still set to false?? i dont...
but this is not working for me Main package me.marshall; import org.bukkit.Bukkit; import org.bukkit.event.Listener; import...
Tryplayer.playEffect(player.getLocation(), Effect.RECORD_PLAY, null); Orplayer.playEffect(player.getLocation(), Effect.RECORD_PLAY, false); EDIT...
Separate names with a comma.