mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
fix no permission level for clear command targets
This commit is contained in:
@@ -59,7 +59,7 @@ public class SkinCommand {
|
||||
.executes(context ->
|
||||
skinAction(context.getSource(),
|
||||
() -> DEFAULT_SKIN))
|
||||
.then(argument("targets", GameProfileArgumentType.gameProfile()).executes(context ->
|
||||
.then(argument("targets", GameProfileArgumentType.gameProfile()).requires(source -> source.hasPermissionLevel(3)).executes(context ->
|
||||
skinAction(context.getSource(), GameProfileArgumentType.getProfileArgument(context, "targets"), true,
|
||||
() -> DEFAULT_SKIN))))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user