Skip to content

Commit fc77d38

Browse files
committed
Fix MainCommand.java
1 parent c7d9b92 commit fc77d38

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/main/java/tech/codemein/aichat/commands/MainCommand.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
2828
return true;
2929
}
3030

31+
if (args.length >= 0) {
32+
((Player) sender).performCommand("aichat help");
33+
}
34+
3135
Player player = (Player) sender;
3236
if (args.length >= 0) {
3337
switch (args[0]) {
@@ -42,11 +46,11 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
4246
player.sendMessage(ColorUtil.translate("&8[&cChatGPT&8] &b→ &r"));
4347
sender.sendMessage(ColorUtil.translate("&8[&cChatGPT&8] &b→ &aSurvival Manager For Minecraft Server\n&8[&cChatGPT&8] &b→ &r" +
4448
"\n &a&lChatGPT: \n" +
45-
" &r&2/caichat help &7Shows this message\n" +
49+
" &r&2/aichat help &7Shows this message\n" +
4650
" &b&lOthers: \n" +
47-
" &r&9/caichat reload [config] / [plugin] &7Reloads config/plugin\n" +
48-
" &r&9/caichat version &7Displays the current and latest version\n" +
49-
" &r&9/caichat [text] &7Ask ChatGPT for message\n"
51+
" &r&9/aichat reload [config] / [plugin] &7Reloads config/plugin\n" +
52+
" &r&9/aichat version &7Displays the current and latest version\n" +
53+
" &r&9/aichat [text] &7Ask ChatGPT for message\n"
5054
));
5155

5256
player.sendMessage("\n ");

0 commit comments

Comments
 (0)