Discord Bot Rewrite, Upgrades & Plugin Migration

- Replace deprecated Core Javacord implementation with a modern JDA 5.x Kotlin plugin
- Introduce event-driven architecture via ServerConfigEvent, ServerStartupEvent, ServerShutdownEvent, and CommandEvent
- Implemented global event posting functionality in Player class.
- Refactored PluginService to handle potential ClassNotFoundException more gracefully.
- Improved CustomPrintStream to better identify the caller context in log messages.
- Refactor server configuration into modular groups ("core" and "discord") with backward compatibility for legacy flat keys
This commit is contained in:
Dark98 committed 2026-11-12 23:56:07 +00:00
1 parent 87fece4854
commit fbc3595da1
49 files changed
+1151 -665

No files matched your search

@@ -13,20 +13,30 @@ public final class CommandEvent implements Event {
* The name for this command.
*/
private final String name;
/**
* The input for this command.
*/
private final String input;
/**
* The arguments for this command.
*/
private final String[] arguments;
/**
* Creates the command.
*/
public CommandEvent(String name, String input) {
this(name, input, new String[0]);
}
public CommandEvent(String name, String input, String[] arguments) {
this.name = name;
this.input = input;
}
this.arguments = arguments != null ? arguments : new String[0];
}
/**
* Gets the name of this command.
*/
@@ -40,4 +50,11 @@ public final class CommandEvent implements Event {
public String getInput() {
return input;
}
/**
* Gets the arguments for this command.
*/
public String[] getArguments() {
return arguments;
}
}