diff --git a/pom.xml b/pom.xml
index 2a29b2b..50cb78c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
me.fivevl
troll
- 1
+ 1.0
jar
Troll
diff --git a/src/main/java/me/fivevl/troll/commands/TrollCommand.kt b/src/main/java/me/fivevl/troll/commands/TrollCommand.kt
index 4e6a0f8..9522110 100644
--- a/src/main/java/me/fivevl/troll/commands/TrollCommand.kt
+++ b/src/main/java/me/fivevl/troll/commands/TrollCommand.kt
@@ -15,6 +15,10 @@ class TrollCommand : CommandExecutor {
return true
}
val p = sender.player!!
+ if (!p.hasPermission("troll.use")) {
+ p.sendMessage(Utils.color("You don't have permission to use this command!"))
+ return true
+ }
if (args == null || args.size != 1) {
p.sendMessage(Utils.color("Usage: /troll "))
return true