Shoebill / shoebill-api

Shoebill-api is one main part of the shoebill project.
http://shoebill.github.io/apidoc
Apache License 2.0
18 stars 10 forks source link

Update Shoebill.java #7

Closed cactysman closed 9 years ago

cactysman commented 9 years ago

Additional check in get() to, on one hand, prevent a NullPointerException on (new) line 40 which would be caused when using the API in a program (the gamemode) without having a server running (testing in IDE for example) and also for easy checking for if the code runs inside the server plugin or not (instead of having to catch the NPE from get()).