Fixed... Apparantly you cant use a ':' in the config.. This is what I used before: 'icon: 322:1' and now im using 'icon: 322 1'.... I just want to...
@Shmobi I wont save it, so the users that are using the plugin can set their own kits, and I might try enum.valueOf(); And yes, I get an error....
@tommyhoogstra Hmm.. I dont think thats the problem. It only sets the damage to 0 when it can't find ":" in the format. EDIT: Tried it.. Still...
Hi there, I've beed trying to fix this for about 4 hours now, and I cant get it to work. My method: @SuppressWarnings("deprecation")...
@mine-care I found a way to loop through the x and z of a WorldEdit selection, but I dont know how to pick a random x and z :/ This is what I have...
Dear, I've been working on a survival games plugin, and I've been started to implementing supply drops, but I don't have a clew how I can get a...
use e.getEntity().getLocation.getBlock()
maybe the WorldEdit API has a method for it.. You can damage the near entities with for(Entity en : player.getNearbyEntities(range, range, range)...
if(hand.getType() == Material.POTION && hand.getDurability() == (short) 8201) // 8201 is the durability of the potion Strength....
Dear, I got an ConcurrentModificationException error in my loadChests() method, and I can't get it fixed. Here is my exact error: [14:47:52...
Well, if you use that, each tick (there are 20 ticks in a second) will the player get 2,5 hearts damage, so then just change new...
Thanks! The villagers now load when a player joins, ima also let it run when a chunk has been loaded. It works now!
I'm trying to add inventories to villagers, and when you right click they will open, if you give them a sword they will act like a body guard for...
(Sorry for my bad English) Hi there! I have a problem, I made a new class for a Villager that contains a inventory, but all the villagers just...
save them the results, and then just calculate the avarage
You need to save it in a file when they disconnect. Something like this: @EventHandler public void playerQuitEvent(PlayerQuitEvent e) {...
Just a quick tip: This will cause memory leaks, replace Player owner with String owner, to set it use p.getName(); and to get it use...
I tried it using a for loop, but no one gets the message that way.. weird.. but anyways, thanks EDIT: I just came up with this idea.. Should it...
Sign s = (Sign) block.getState(); Then just use s.setLine(0,"Im a line!"); Import org.bukkit.block.Sign EDIT: Use the event SignChangeEvent...
Check if its null or if its air: boolean hasItemInHand = false; ItemStack inHand = p.getItemInHand(); if(inHand==null ||...
Separate names with a comma.