Thanks for the reply Fixed by changing the line to Method addSlot = acont.getClass().getDeclaredMethod("addSlotListener",...
Hey, I'm trying to access 'cplayer.getHandle().activeContainer.addSlotListener(cplayer.getHandle())' via reflection, however I always run into an...
desht Do you mind if I use this? :)
I decided to use the id in the end ^^, but that would work. After translating that message back into English; Well, you are quick to jump...
I am listening to the PotionSplashEvent (Using CB 1.7.2-R0.2), when I try to compare the type, this is what occurs; The following code;...
Instead of using commandLabel, use cmd.getName().equals("")
player.getLocation().getWorld()
Cancel a certain % of the events, or if that doesn't suit you; you would have to monitor the attempts and only allow that location to be flooded...
Not tested, but this should work; if (args.length == 2) { String playername = args[0]; if (Bukkit.getPlayer(playername) != null) { int exp...
xorinzor Take a look at this http://forums.bukkit.org/threads/create-a-turret.179597/ should help you ^^
@EventHandler public void onPlayerLevelChange(PlayerLevelChangeEvent event) { }
I'm not entirely sure what you want, but if you just want to increase the players jump height, give them the potion effect jump?
if (player.isOnGround())
np :P, I was just as confused as you when I ran across this error ^^
I have had the same error when opening an inventory on player join, try opening it after a delay of a few ticks.
Player f is null then? ^^ Means they are not online (or you didn't add to the hashmap correctly) Use an != null before broadcasting
Don't sleep the thread, instead use the delayed tasks. http://wiki.bukkit.org/Scheduler_Programming
Use the first link to see how to get the details of the players faction, (e.g. players power, factions name, power, land, type etc...) Then use...
Why don't you just play the explosion instead? Then damage the player as you see fit?
Okay :( Thanks ^^
Separate names with a comma.