I keep on getting this error on PlayerLogin: [10:12:57 WARN]: java.lang.NullPointerException [10:12:57 WARN]: at...
The two cases for this exception are: A. There are more than one class in your .jar file, which extends the JavaPlugin class. B. You have two...
I haven't really tried anything, just been researching it. I've looked up a few possibilities, nothing solid. Didn't know where to start.
How would I go around doing this? Sorry for the writing, snagged this off of images. [IMG]
@Zombie_Striker Just tried it, glitch is still happening.
@N00BHUN73R Hmm, I'll look into it. Thanks for your help so far.
@N00BHUN73R That ruins the point of the CombatLog plugin. The entire point is that when a player logs off, it kills them if they are in combat....
Basically, I have on my PlayerQuitEvent; if (cp.getCombatTime() > 0) { player.setHealth(0.0);...
@N00BHUN73R @flash110 The players are objects called CombatPlayer, it is stored in the object and saved/loaded on enable and disable.
if (cp == null) { return; } if (cp.getCombatTime() > 0) { player.setHealth(0.0);...
So remove this? if (event.isCancelled()) return; Thanks :)
@I Al Istannen The code in the PlayerInteract is for a LEFT_CLICK_AIR action. Thus, if I !LEFT_CLICK_AIR and return, only the LEFT_CLICK_AIR will...
@I Al Istannen If the action isn't LEFT_CLICK_AIR it is cancelled every time. Why would I want to listen to cancelled events if I return it anyway?
I'm coding a macro checker at the moment and for some reason the event just isn't catching. The event is registered. The code outside of the if is...
I created a WorldLoader to load and restore maps. Solved.
Separate names with a comma.