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 :)
So since 1.14 this is possible Is there any known way to do this per command? I tried .setSwimming(true); but this doesn't do anything sadly..
I'm filtering the chat based on strings in a file. Let's say there's "no" and "nope" in the file, the message will be replaced to "**pe" if "no"...
And after that I put them back in the file where they were stored? How do I keep the values to those configurationsection-keys?
So I'm struggling to create a method which sorts the keys of a specific configuration section by their string length. It should be sorted from...
Can you tell us what's in line 130 of meteorplugin.CCE.crash, as the error log points to this line.
Separate names with a comma.