summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/util/PermissionValidator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/util/PermissionValidator.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/util/PermissionValidator.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/util/PermissionValidator.java b/src/main/java/com/keuin/kbackupfabric/util/PermissionValidator.java
new file mode 100644
index 0000000..9d37901
--- /dev/null
+++ b/src/main/java/com/keuin/kbackupfabric/util/PermissionValidator.java
@@ -0,0 +1,9 @@
+package com.keuin.kbackupfabric.util;
+
+import net.minecraft.server.command.ServerCommandSource;
+
+public class PermissionValidator {
+ public static boolean op(ServerCommandSource commandSource) {
+ return commandSource.hasPermissionLevel(4);
+ }
+}