Fixed error when server admin uses eanother world directory.

When another world directory is used, the plugin throws a null pointer. This patch fixes that assumption.