调整指令的权限等级
This commit is contained in:
parent
5029d3ca8c
commit
f896b904cf
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ import net.minecraftforge.fml.common.Mod;
|
|||
public class MediumExpCommand {
|
||||
@SubscribeEvent
|
||||
public static void registerCommand(RegisterCommandsEvent event) {
|
||||
event.getDispatcher().register(Commands.literal("target:mediumexp")
|
||||
event.getDispatcher().register(Commands.literal("target:mediumexp").requires(s -> s.hasPermission(4))
|
||||
.executes(arguments -> {
|
||||
Level world = arguments.getSource().getUnsidedLevel();
|
||||
double x = arguments.getSource().getPosition().x();
|
||||
|
|
Loading…
Add table
Reference in a new issue