mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 03:11:02 +01:00
Ensure that the world players are going to is not null
This commit is contained in:
parent
1a6e93f0df
commit
f0ae8cbb8e
@ -173,6 +173,9 @@ public class MVPlayerListener extends PlayerListener {
|
||||
}
|
||||
}
|
||||
if (fromWorld != null) {
|
||||
if (toWorld == null) {
|
||||
return true;
|
||||
}
|
||||
if (fromWorld.getWorldBlacklist().contains(toWorld.getName())) {
|
||||
player.sendMessage("You don't have access to go to " + toWorld.getColoredWorldString() + " from " + fromWorld.getColoredWorldString());
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user