AcmeProject / WildernessTp

My WildernessTP plugin from spigot
GNU General Public License v3.0
13 stars 16 forks source link

Fix NullPointerException caused when fired by a non-op user #71

Closed Legoman99573 closed 4 years ago

Legoman99573 commented 4 years ago

Resolves NullPointerException fired when people who are not OP fire /wild

RoboMWM commented 4 years ago

Hmm. So, some server admins have it setup so players can only /wild in a particular world, hence why this permission isn't given by default. I do agree that /wildtp should be given by default to ops though (and maybe /wild as well).

Neither should be causing an NPE though...?

Legoman99573 commented 4 years ago

When OP, NullPointerException doesnt occur, but when a non-op fires it, it would show up for some reason in game showing as "An internal error has occured". Adding default to both commands wound up resolving the issue for me after re-compiling the code.

RoboMWM commented 4 years ago

Um, the "default" value is false by default.

Can you please paste the stacktrace with this NPE?

Legoman99573 commented 4 years ago

https://paste.md-5.net/wezimehupi.cs probably will be more helpful than the temp workaround i found.

jyhsu2000 commented 4 years ago

https://paste.md-5.net/wezimehupi.cs probably will be more helpful than the temp workaround i found.

Wrong project. The plugin you're using is the following one. https://github.com/Qballl/WildernessTp

Legoman99573 commented 4 years ago

oops, im dum

RoboMWM commented 4 years ago

Yea, this one's better, his has copied code from here.