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:
1 parent
87fece4854
commit
fbc3595da1
49 files changed
+1151
-665
No files matched your search
@@ -1,29 +1,37 @@
|
||||
{
|
||||
"server_name": "2006Scape",
|
||||
"server_test_version": 2.3,
|
||||
"gui_enabled": false,
|
||||
"website_link": "https://2006Scape.org",
|
||||
"server_debug": false,
|
||||
"file_server": true,
|
||||
"http_port": 8080,
|
||||
"jaggrab_port": 43595,
|
||||
"world_id": 1,
|
||||
"xp_rate": 1.0,
|
||||
"variable_xp_rate": false,
|
||||
"variable_xp_rates": [1, 2, 5, 10],
|
||||
"members_only": false,
|
||||
"tutorial_island_enabled": false,
|
||||
"party_room_enabled": true,
|
||||
"clues_enabled": true,
|
||||
"admin_can_trade": false,
|
||||
"admin_can_sell": false,
|
||||
"respawn_x": 3222,
|
||||
"respawn_y": 3218,
|
||||
"save_timer": 120,
|
||||
"timeout": 60,
|
||||
"item_requirements": true,
|
||||
"max_players": 200,
|
||||
"website_integration": false,
|
||||
"cycle_logging": true,
|
||||
"cycle_logging_tick": 10
|
||||
}
|
||||
"core": {
|
||||
"server_name": "2006Scape",
|
||||
"server_test_version": 2.3,
|
||||
"gui_enabled": false,
|
||||
"website_link": "https://2006Scape.org",
|
||||
"server_debug": false,
|
||||
"file_server": true,
|
||||
"http_port": 8080,
|
||||
"jaggrab_port": 43595,
|
||||
"world_id": 1,
|
||||
"xp_rate": 1.0,
|
||||
"variable_xp_rate": false,
|
||||
"variable_xp_rates": [1, 2, 5, 10],
|
||||
"members_only": false,
|
||||
"tutorial_island_enabled": false,
|
||||
"party_room_enabled": true,
|
||||
"clues_enabled": true,
|
||||
"admin_can_trade": false,
|
||||
"admin_can_sell": false,
|
||||
"respawn_x": 3222,
|
||||
"respawn_y": 3218,
|
||||
"save_timer": 120,
|
||||
"timeout": 60,
|
||||
"item_requirements": true,
|
||||
"max_players": 200,
|
||||
"website_integration": false,
|
||||
"cycle_logging": true,
|
||||
"cycle_logging_tick": 10
|
||||
},
|
||||
"discord": {
|
||||
"token": "",
|
||||
"welcome_channel_id": "655143683083206667",
|
||||
"log_channel_id": "1083146780507656294",
|
||||
"player_count": false
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user