You have to change your concept, it's exploitable and you can't really do anything. Just add a series of checks that can help, but not prevent...
you need to copy event.getDrops() to a new container before you clear it if you want to use the contents afterwards. It's hard to see the full...
I beleive it's event.getDrops().clear(); but I can't be certain. It's early....
text file, buffered reader, listarray. OnEnable, read text file using buffered reader to list array. OnPlayerjoin, if listarray contains = new +...
I want a to return a boolean based on whether or not a player can see another player. I have currently tried using a BlockIterator from the...
OK I have a unique situation. Server specs i7 920 Quad 4 x 2.67 Ghz (HT) 24gb ram ram disk for all worlds I currently run some unique plugins...
Manager.addKill(source, (Player) event.getEntity()); you never check that event.getEntity() is instanceof Player
not the answer I was looking for, but a great answer nether the less. Luckily I just thought of a simple fix for my own personal situation. Not...
I do beleive you need to use the ENTITY_DAMAGE event to use getDamager() for pvp or am I wrong? In one of my plugins, each time a Player Entity...
I need to differentiate between an arrow item that has been dropped from a player or mob kill drop to an arrow that has been shot by a player. I...
Hi, I'm struggling to work out how to set colored name tags. Not only do I want to color them, but I want it to be visible without using the...
I have a suggestion. I'm hoping people may agree. When a player has been kicked / banned, make it so they can rejoin but only if they use spout...
How to determine if the item picked up by the player is an arrow shot by a player, usually sticking out of the floor or wall etc.
I previously used server.createWorld(world, World.Environment.NORMAL); now I'm being told this is deprecated and to use...
End goal: stop item entities despawning after a period of time. Is there a entity_despawn event I can look at or some manipulation of...
As the title suggests, I'm trying to get an item from a slot but how do I check if it is empty first. I'm currently using:...
has anyone used this on a server with factions? anyway to stop players losing power while fighting in the arena?
Getting a funny error :( 15:37:17 [SEVERE] null loading Graveyard v0.3 (Is it up to date?) java.lang.NullPointerException at...
can we have it so doors,levers and buttons cannot be used?
I get the same thing happening, I'm 100% certain the server is stopped, I edit the json in notepad++ and then start the server again. Still on 10...
Separate names with a comma.