dimteleport command now requires permission level 4
This commit is contained in:
parent
87701fd8f8
commit
9e9fb32924
1 changed files with 1 additions and 0 deletions
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in a new issue