mirror of
https://github.com/5vl/Troll.git
synced 2025-10-30 14:53:31 +00:00
Updated version to 1.0 and added command permission
This commit is contained in:
@@ -15,6 +15,10 @@ class TrollCommand : CommandExecutor {
|
||||
return true
|
||||
}
|
||||
val p = sender.player!!
|
||||
if (!p.hasPermission("troll.use")) {
|
||||
p.sendMessage(Utils.color("<red>You don't have permission to use this command!</red>"))
|
||||
return true
|
||||
}
|
||||
if (args == null || args.size != 1) {
|
||||
p.sendMessage(Utils.color("<red>Usage: /troll <player></red>"))
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user