Skip to content

Commit

Permalink
Fix occasional NPE on bungeecord (if a player is not on a server)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Mar 11, 2023
1 parent 9ff4233 commit 5343a31
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -118,6 +118,7 @@ public boolean hasPermission(String permission) {

@Override
public String getServerName() {
if(handle.getServer() == null) return null;
return handle.getServer().getInfo().getName();
}

Expand Down

0 comments on commit 5343a31

Please sign in to comment.