Skip to content
Permalink
Browse files
Fix getting offline players by name in offline mode
  • Loading branch information
PseudoKnight committed May 31, 2020
1 parent e680b56 commit 9e938ad7c70af0710030f31ac787acf20b52cc1e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -319,7 +319,7 @@ public MCCommandMap getCommandMap() {
@Override
public MCOfflinePlayer getOfflinePlayer(String player) {
OfflinePlayer ofp = s.getOfflinePlayer(player);
if(ofp.getUniqueId().version() != 4) {
if(s.getOnlineMode() && ofp.getUniqueId().version() != 4) {
// Not an actual MC profile UUID.
// This can happen if the server generates a new UUID when it can't find an account by that name.
return null;

0 comments on commit 9e938ad

Please sign in to comment.