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:53:46 +01:00 committed by GitHub
parent ded8368882
commit 26e5b5c538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class ExploreCommand extends IoMCommand {
final Player sender = playerSender();
if (arguments.size() == 1) {
if (!Permissions.LISTOTHER.grantedTo(sender)) {
info(sender, I.t("You can't use this command"));
throwNotAuthorized();
return;
}
playerName = arguments.get(0);