mirror of
https://github.com/5vl/Troll.git
synced 2025-05-24 06:16:56 +00:00
Updated version to 1.0 and added command permission
This commit is contained in:
parent
4851d25071
commit
848dc59a85
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>me.fivevl</groupId>
|
<groupId>me.fivevl</groupId>
|
||||||
<artifactId>troll</artifactId>
|
<artifactId>troll</artifactId>
|
||||||
<version>1</version>
|
<version>1.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>Troll</name>
|
<name>Troll</name>
|
||||||
|
@ -15,6 +15,10 @@ class TrollCommand : CommandExecutor {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
val p = sender.player!!
|
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) {
|
if (args == null || args.size != 1) {
|
||||||
p.sendMessage(Utils.color("<red>Usage: /troll <player></red>"))
|
p.sendMessage(Utils.color("<red>Usage: /troll <player></red>"))
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user