fix reload command not restricted to admins
This commit is contained in:
parent
230c65fd5c
commit
85c899f7ef
@ -1,3 +1,7 @@
|
||||
Flan 1.1.2
|
||||
======================
|
||||
- Fix reload command being not restricted to admins
|
||||
|
||||
Flan 1.1.1
|
||||
======================
|
||||
- Fix a wrong check regarding block entitys that affected modded container blocks to not be protected
|
||||
|
@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx2G
|
||||
loader_version=0.9.1+build.205
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.1.1
|
||||
mod_version = 1.1.2
|
||||
maven_group = com.flemmli97.flan
|
||||
archives_base_name = flan
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class CommandClaim {
|
||||
|
||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher, boolean dedicated) {
|
||||
dispatcher.register(CommandManager.literal("flan")
|
||||
.then(CommandManager.literal("reload").executes(CommandClaim::reloadConfig))
|
||||
.then(CommandManager.literal("reload").requires(src -> src.hasPermissionLevel(ConfigHandler.config.permissionLevel)).executes(CommandClaim::reloadConfig))
|
||||
.then(CommandManager.literal("addClaim").then(CommandManager.argument("from", BlockPosArgumentType.blockPos()).then(CommandManager.argument("to", BlockPosArgumentType.blockPos()).executes(CommandClaim::addClaim))))
|
||||
.then(CommandManager.literal("menu").executes(CommandClaim::openMenu))
|
||||
.then(CommandManager.literal("claimInfo").executes(CommandClaim::claimInfo))
|
||||
|
Loading…
x
Reference in New Issue
Block a user