Update src/main/java/fr/moribus/imageonmap/commands/maptool/ExploreCommand.java

Co-authored-by: Amaury Carrade <amaury@carrade.eu>
This commit is contained in:
Vlammar 2021-02-05 16:39:47 +01:00 committed by GitHub
parent 8e33588a14
commit 9bac0bfa5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,9 @@ public class ExploreCommand extends IoMCommand {
return;
}
OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(uuid);
Gui.open(sender, new MapListGui(offlinePlayer,playerName));
if (sender.isOnline()) {
Gui.open(sender, new MapListGui(offlinePlayer,playerName));
}
});