Fix NPE when a world was not known by MV Thanks Rockstar04!

This commit is contained in:
Eric Stokes 2011-08-10 19:23:22 -06:00
parent 7ef564799e
commit 11ce604938
1 changed files with 4 additions and 0 deletions

View File

@ -118,6 +118,10 @@ public class MVPlayerListener extends PlayerListener {
return;
}
}
if(toWorld == null) {
// The toworld is not handled by MV, we don't care about payments
return;
}
// Only check payments if it's a different world:
if (!event.getTo().getWorld().equals(event.getFrom().getWorld())) {
// If the player does not have to pay, return now.