Rename MineCon Badge Property
All checks were successful
minecraft-pi-docker/pipeline/head This commit looks good
All checks were successful
minecraft-pi-docker/pipeline/head This commit looks good
This commit is contained in:
parent
054dcba425
commit
c0b5026221
@ -27,7 +27,7 @@ static ServerProperties &get_server_properties() {
|
||||
|
||||
// Default Server Properties
|
||||
#define DEFAULT_MOTD "Minecraft Server"
|
||||
#define DEFAULT_SHOW_MINECON_ICON "false"
|
||||
#define DEFAULT_SHOW_MINECON_BADGE "false"
|
||||
#define DEFAULT_GAME_MODE "0"
|
||||
#define DEFAULT_PORT "19132"
|
||||
#define DEFAULT_SEED ""
|
||||
@ -464,8 +464,8 @@ void server_init() {
|
||||
std::ofstream properties_file_output(file);
|
||||
properties_file_output << "# Message Of The Day\n";
|
||||
properties_file_output << "motd=" DEFAULT_MOTD "\n";
|
||||
properties_file_output << "# Show The MineCon Icon Next To MOTD In Server List\n";
|
||||
properties_file_output << "show-minecon-icon=" DEFAULT_SHOW_MINECON_ICON "\n";
|
||||
properties_file_output << "# Show The MineCon Badge Next To MOTD In Server List\n";
|
||||
properties_file_output << "show-minecon-badge=" DEFAULT_SHOW_MINECON_BADGE "\n";
|
||||
properties_file_output << "# Game Mode (0 = Survival, 1 = Creative)\n";
|
||||
properties_file_output << "game-mode=" DEFAULT_GAME_MODE "\n";
|
||||
properties_file_output << "# Port\n";
|
||||
@ -528,10 +528,10 @@ void server_init() {
|
||||
// Load Player Data
|
||||
playerdata_init();
|
||||
|
||||
if (get_server_properties().get_bool("show-minecon-icon", DEFAULT_SHOW_MINECON_ICON)) {
|
||||
if (get_server_properties().get_bool("show-minecon-badge", DEFAULT_SHOW_MINECON_BADGE)) {
|
||||
// Show The MineCon Icon Next To MOTD In Server List
|
||||
unsigned char minecon_icon_patch[4] = {0x04, 0x1a, 0x9f, 0xe5};
|
||||
patch((void *) 0x737e4, minecon_icon_patch);
|
||||
unsigned char minecon_badge_patch[4] = {0x04, 0x1a, 0x9f, 0xe5};
|
||||
patch((void *) 0x737e4, minecon_badge_patch);
|
||||
}
|
||||
|
||||
// Start Reading STDIN
|
||||
|
Loading…
Reference in New Issue
Block a user