File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
src/main/java/me/TechsCode/TechDiscordBot/module/cmds Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ package me .TechsCode .TechDiscordBot .module .cmds ;
2
+
3
+ import me .TechsCode .TechDiscordBot .TechDiscordBot ;
4
+ import me .TechsCode .TechDiscordBot .module .CommandModule ;
5
+ import net .dv8tion .jda .api .entities .Member ;
6
+ import net .dv8tion .jda .api .entities .TextChannel ;
7
+ import net .dv8tion .jda .api .events .interaction .SlashCommandEvent ;
8
+ import net .dv8tion .jda .api .interactions .commands .build .OptionData ;
9
+ import net .dv8tion .jda .api .interactions .commands .privileges .CommandPrivilege ;
10
+
11
+ public class MCMarketCommand extends CommandModule {
12
+
13
+ public MCMarketCommand (TechDiscordBot bot ) {
14
+ super (bot );
15
+ }
16
+
17
+ @ Override
18
+ public String getName () {
19
+ return "mc-market" ;
20
+ }
21
+
22
+ @ Override
23
+ public String getDescription () {
24
+ return "Returns MC-Market's website." ;
25
+ }
26
+
27
+ @ Override
28
+ public CommandPrivilege [] getCommandPrivileges () {
29
+ return new CommandPrivilege [0 ];
30
+ }
31
+
32
+ @ Override
33
+ public OptionData [] getOptions () {
34
+ return new OptionData [0 ];
35
+ }
36
+
37
+ @ Override
38
+ public int getCooldown () {
39
+ return 10 ;
40
+ }
41
+
42
+ @ Override
43
+ public void onCommand (TextChannel channel , Member m , SlashCommandEvent e ) {
44
+ e .reply ("https://mc-market.org/" ).queue ();
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments