endercrest / VoidSpawn

A Spigot & Bukkit plugin that teleports players upon entering the void.
https://www.spigotmc.org/resources/voidspawn.19350/
GNU Lesser General Public License v2.1
5 stars 10 forks source link

Don't check vs.override if not in void #1

Closed mr2013 closed 9 years ago

mr2013 commented 9 years ago

In onMoveEvent() in MoveEvent.java, "vs.override" is checked for every player movement, even if the player is not moving to/from/in the void. I am not familiar enough with the code to know if this will work, so I don't feel comfortable creating a pull request, but my first glance suggestion is just swapping that line with the one below it (if pos < 0 etc).

endercrest commented 9 years ago

This is extremely old code I have not uploaded an update recently. The plugin has been rewritten. I will upload the new code.

endercrest commented 9 years ago

Ok new code has been uploaded.

mr2013 commented 9 years ago

Thank you