File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
src/main/java/tc/oc/occ/cheaty/commands Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
import co .aikar .commands .annotation .CommandPermission ;
6
6
import co .aikar .commands .annotation .Dependency ;
7
7
import co .aikar .commands .annotation .Description ;
8
+ import co .aikar .commands .annotation .Subcommand ;
8
9
import org .bukkit .ChatColor ;
9
10
import org .bukkit .command .CommandSender ;
10
11
import tc .oc .occ .cheaty .Cheaty ;
11
12
13
+ @ CommandAlias ("cheaty" )
12
14
public class AdminCommands extends BaseCommand {
13
15
14
16
@ Dependency private Cheaty plugin ;
15
17
16
- @ CommandAlias ( "cheaty " )
18
+ @ Subcommand ( "reload " )
17
19
@ Description ("Reload cheaty config" )
18
20
@ CommandPermission ("cheaty.admin" )
19
21
public void reload (CommandSender sender ) {
Original file line number Diff line number Diff line change 4
4
import co .aikar .commands .annotation .CommandAlias ;
5
5
import co .aikar .commands .annotation .CommandPermission ;
6
6
import co .aikar .commands .annotation .Dependency ;
7
+ import co .aikar .commands .annotation .Subcommand ;
7
8
import co .aikar .commands .annotation .Syntax ;
8
9
import org .bukkit .command .CommandSender ;
9
10
import tc .oc .occ .cheaty .DiscordBot ;
10
11
import tc .oc .occ .cheaty .DiscordBot .RelayType ;
11
12
13
+ @ CommandAlias ("cheaty" )
12
14
public class BotCommands extends BaseCommand {
13
15
14
16
@ Dependency private DiscordBot bot ;
15
17
16
- @ CommandAlias ("relay" )
18
+ @ Subcommand ("relay" )
17
19
@ Syntax ("[message] - Message to relay to discord" )
18
20
@ CommandPermission ("cheaty.bot" )
19
21
public void relay (CommandSender sender , String message ) {
Original file line number Diff line number Diff line change 7
7
import co .aikar .commands .annotation .CommandAlias ;
8
8
import co .aikar .commands .annotation .CommandPermission ;
9
9
import co .aikar .commands .annotation .Dependency ;
10
+ import co .aikar .commands .annotation .Subcommand ;
10
11
import co .aikar .commands .annotation .Syntax ;
11
12
import net .kyori .adventure .text .Component ;
12
13
import net .kyori .adventure .text .TextComponent ;
26
27
import tc .oc .pgm .util .named .NameStyle ;
27
28
import tc .oc .pgm .util .text .TextTranslations ;
28
29
30
+ @ CommandAlias ("cheaty" )
29
31
public class CheatNotifyCommand extends BaseCommand {
30
32
31
33
@ Dependency private BotConfig config ;
32
34
@ Dependency private DiscordBot bot ;
33
35
34
- @ CommandAlias ( "cheaty notify" )
36
+ @ Subcommand ( " notify" )
35
37
@ Syntax ("[player] [message]" )
36
38
@ CommandPermission ("cheaty.notify" )
37
39
public void notify (CommandSender sender , String target , String message ) {
You can’t perform that action at this time.
0 commit comments