mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Add command help syntaxes
This commit is contained in:
1 parent
a9eb255e5d
commit
4b9d1eb8d2
12 files changed
+24
-18
No files matched your search
+2
@@ -1,5 +1,6 @@
|
||||
package net.draycia.carbonmoderation.commands;
|
||||
|
||||
import net.draycia.carbon.libs.co.aikar.commands.annotation.Syntax;
|
||||
import net.draycia.carbon.libs.co.aikar.commands.BaseCommand;
|
||||
import net.draycia.carbon.libs.co.aikar.commands.annotation.CommandAlias;
|
||||
import net.draycia.carbon.libs.co.aikar.commands.annotation.CommandCompletion;
|
||||
@@ -25,6 +26,7 @@ public class MuteCommand extends BaseCommand {
|
||||
|
||||
@Default
|
||||
@CommandCompletion("@players")
|
||||
@Syntax("<player>")
|
||||
public void baseCommand(CommandSender sender, ChatUser targetUser) {
|
||||
Audience audience = moderation.getCarbonChat().getAdventureManager().getAudiences().audience(sender);
|
||||
|
||||
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
package net.draycia.carbonmoderation.commands;
|
||||
|
||||
import net.draycia.carbon.libs.co.aikar.commands.annotation.Syntax;
|
||||
import net.draycia.carbon.libs.co.aikar.commands.BaseCommand;
|
||||
import net.draycia.carbon.libs.co.aikar.commands.annotation.CommandAlias;
|
||||
import net.draycia.carbon.libs.co.aikar.commands.annotation.CommandCompletion;
|
||||
@@ -25,6 +26,7 @@ public class ShadowMuteCommand extends BaseCommand {
|
||||
|
||||
@Default
|
||||
@CommandCompletion("@players")
|
||||
@Syntax("<player>")
|
||||
public void baseCommand(CommandSender sender, ChatUser targetUser) {
|
||||
Audience audience = moderation.getCarbonChat().getAdventureManager().getAudiences().audience(sender);
|
||||
|
||||
|
||||
Reference in new issue
Block a user