dimteleport command now requires permission level 4

This commit is contained in:
CreepyCre 2021-10-28 00:40:29 +02:00
parent 87701fd8f8
commit 9e9fb32924

View file

@ -22,6 +22,7 @@ import org.dimdev.dimdoors.world.level.registry.DimensionalRegistry;
public class DimTeleportCommand {
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
dispatcher.register(CommandManager.literal("dimteleport")
.requires(source -> source.hasPermissionLevel(4))
.then(CommandManager
.argument("dimension", DimensionArgumentType.dimension())
.executes(ctx -> {