@VerdentCz I think the best way to do this would be as followed: - Cancel the PickupEvent. - Get the item from the event, get the ItemStack from...
@Letscrime You're now getting one location randomly and storing it in the rand variable. If you want all of them to be random use something like...
@Letscrime I can't see why your code doesn't work. What is the error you're getting?
Lazertx is right, opening the chat is handled client side and there's no way to open it using a plugin.
Missing the @Override annotation won't stop the plugin from working. It's still better to have it though.
mattibijnens You'd better make the house first and then make something to load every block and its data to a file. You can then use that file to...
Sean0402 Use Bukkit instead of CraftBukkit.
NIKO2014 Please give us the error you got in the console, and paste it inside so it's better readable for us.
There's no method which uses minimum, but you can do it yourself. If you want a minimum of 3, just add 3 to the integer and make the max 3 less....
bwfcwalshy You can create a random integer using: Random rand = new Random(); int i = rand.nextInt(max); 'max' will be the max value of the...
belven000 I'm glad you've fixed it:). Please put your thread on solved if it is.
belven000 I think this thread explains everything you want to know:...
belven000 If the block changes, the block object changes as well. Storing the location in combination with the BlockState in a HashMap looks like...
It looks like you're setting the block to AIR before getting the drops. Just move the line all the way to the bottom of the event.
Monkey_Swag Do you put the players on 0 kills/deaths/points when they join or something like that? The code looks fine to me.
stormneo7 Good explanation. However use the player's UUID instead of the player's name ;)
Techno Are you 100% sure the player doesn't have the permission through a permission plugin?
It's ALWAYS better to save the UUID instead of the Player object. Why creating a possible memory leak if you can easily avoid it?
http://jd.bukkit.org/dev/doxygen/d5/d74/interfaceorg_1_1bukkit_1_1entity_1_1Player.html#abfa9066c769290ddddb94d6bd72acd95 Just make sure it's...
Paradrakor You can perfectly use HashMaps for this, store the player's UUID as key and the killstreak (integer) as value.
Separate names with a comma.