Muqsit / Wilderness

A PocketMine-MP plugin that teleports players into the wilderness!
https://poggit.pmmp.io/p/Wilderness
GNU General Public License v3.0
9 stars 5 forks source link

Crash issue fixed when executing from console #1

Closed iZeaoGamer closed 5 years ago

iZeaoGamer commented 5 years ago

So this PR is just a small fix for when you execute /wild command from console, it'll crash the server. I know some people would be foolish to use it from console, but hey! it's a fix so you don't have any server crashes via console or anything as such. This plugin is decently nice, I like how the code system works. I'll test more soon, and maybe do another PR if found more bugs. Anyways, you might want to merge this in any case, foolish or not. Just in case if people abuse this issue, and would be great to know that this would be fixed. This hasn't been fully tested, but I'm sure this is the fix for the issue stated above. Please test before merging. Thank you!

Muqsit commented 5 years ago

Done in https://github.com/Muqsit/Wilderness/commit/e17dcc87ebab1fcf65e3f2618f5a2f5b85ea5197#diff-a296bc0f80938861dff0dcc5fa1550aaR89