summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/modules/motd
diff options
context:
space:
mode:
authorMinenash <minenash@protonmail.com>2018-12-12 20:56:08 -0500
committerMinenash <minenash@protonmail.com>2018-12-12 20:56:08 -0500
commit097b4f8135a327c1f398086cb71d814859becb59 (patch)
tree93b138b6cbf70dc6b48e6fad67e460d38d7e2d74 /src/main/java/com/redstoner/modules/motd
parent8a20c8042155c8926ed13a8f418fc56858123c1e (diff)
Updated command structure
Diffstat (limited to 'src/main/java/com/redstoner/modules/motd')
-rw-r--r--src/main/java/com/redstoner/modules/motd/Motd.cmd11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main/java/com/redstoner/modules/motd/Motd.cmd b/src/main/java/com/redstoner/modules/motd/Motd.cmd
index 7f82950..52107ef 100644
--- a/src/main/java/com/redstoner/modules/motd/Motd.cmd
+++ b/src/main/java/com/redstoner/modules/motd/Motd.cmd
@@ -1,11 +1,14 @@
-command setmotd {
- [string:motd...] {
+command motd {
+ get {
+ help Returns the motd;
+ run getmotd;
+ perm utils.motd.get;
+ }
+ set [string:motd...] {
help Sets the motd. Use --reset to reset to default;
run setmotd motd;
perm utils.motd.set;
}
-}
-command getmotd {
[empty] {
help Returns the motd;
run getmotd;