Refactored PlayerCommands, added commands and more

Added player "Help" command, added server "sendmsg" command, changed getAcccountByPlayerID to public in DatabaseHelper, and allowed player commands to be submitted with "/" and "!"
This commit is contained in:
Benjamin Elsdon
2022-04-18 23:47:26 +08:00
parent eaba8bc1b5
commit ea2b2f9502
4 changed files with 75 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
package emu.grasscutter.game.managers;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.commands.PlayerCommands;
import emu.grasscutter.game.GenshinPlayer;
import emu.grasscutter.net.packet.GenshinPacket;
@@ -25,7 +26,7 @@ public class ChatManager {
}
// Check if command
if (message.charAt(0) == '!') {
if (message.charAt(0) == '!' || message.charAt(0) == '/') {
PlayerCommands.handle(player, message);
return;
}