This was the answer to his question: I'm not aware of any difference that this would make, it's working perfectly for me.
File yourfile = new File(getDataFolder() + "/YourFile.yml"); FileConfiguration yourfilecfg = YamlConfiguration.loadConfiguration(yourfile); also...
Stacktrace: [SPOILER] Code: if(e.getEntity() instanceof Arrow) { Arrow a = (Arrow) e.getEntity();...
I removed the code as I decided not to use it, but it was a NullPointerException at the line where I check if the entity is a player
for(int x ...) { for(int y ...) { for(int z ...) { //your code } } }
It's in the console, not my debug message but the standart stacktrace
It's just a "null" error message. I'll give it a try
Iterate over the X, Y & Z values at the same time and check if the player is inside that box. If yes cancel the event
I debugged those and it's nothing wrong with them. I start thinking that .getEntity() in the event returns null no matter what
In that close, I always use this method to check if the entity is a player before I cast, in other events it works just fine
returning null at e.getEntity() instanceof Player
I'm checking if an entity which creates a portal is a player, but this always returns null, I'm going crazy @EventHandler public void...
I'd add a default in the switch which just sets his lvl to the countdown, gets you rid of like 10 switch statements where you do nothing but set...
That's what I thought too, but even in the water nothing seems to happen
I'll give it a try tomorrow and get back here then. Thanks :)
Separate names with a comma.