From 62a9d31703ad39037a0ed97261177a75fa4a788a Mon Sep 17 00:00:00 2001 From: Klagarge Date: Thu, 16 May 2024 10:29:41 +0200 Subject: [PATCH] fix whitelist --- docker-compose.yml | 2 +- mc/mc2discord.toml | 4 ++-- mc/whitelist.json | 27 ++++++++++++++++++++++++++- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 94bfa2d..0a88af2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -64,7 +64,7 @@ services: - ./mc/mods:/mods:ro - ./mc/icon.png:/icon.png - ./mc/whitelist.json:/whitelist.json - - ./mc/mc2discord.toml:/data/config/mc2discord.toml + #- ./mc/mc2discord.toml:/data/config/mc2discord.toml depends_on: - lazytainer network_mode: service:lazytainer diff --git a/mc/mc2discord.toml b/mc/mc2discord.toml index 6c60627..a6d2de8 100644 --- a/mc/mc2discord.toml +++ b/mc/mc2discord.toml @@ -95,7 +95,7 @@ lang = "en_us" # Format to rename Discord members in ("player", "member" and "global" variables are available) discord_pseudo_format = "${member_name} (IG: ${player_name})" # If true, players will be asked to link their account before joining the server (whitelist) - force_link = true + force_link = false # Content of messages related to account linking # "global" variables may be used in any field @@ -152,7 +152,7 @@ lang = "en_us" # Presence configuration [Style.Presence] # Message to display under the bot in the member list on Discord ("global" variables are available) - message = "${online_players} / ${max_players} players" + message = "${online_players} players are online" # The type of presence (PLAYING, STREAMING, LISTENING, WATCHING, COMPETING or CUSTOM) type = "PLAYING" # Delay between to update of the channel (in seconds, any value below 610 may cause issues) diff --git a/mc/whitelist.json b/mc/whitelist.json index 0637a08..2ebeef1 100644 --- a/mc/whitelist.json +++ b/mc/whitelist.json @@ -1 +1,26 @@ -[] \ No newline at end of file +[ + { + "uuid": "c8491b89-6bd9-48b9-9fcc-8c78d8025984", + "name": "Klagarge" + }, + { + "uuid": "d4945f1b-90de-4296-8f83-c4c7088d654a", + "name": "Robibobo1" + }, + { + "uuid": "a62e3fc2-24bb-456d-a733-21c2415f4ceb", + "name": "Terrazed" + }, + { + "uuid": "57b19806-04dc-4faf-8e0f-547ef953df0d", + "name": "LordBaryhobal" + }, + { + "uuid": "76281784-b877-4969-8eca-a35e428e8cea", + "name": "Ranium21" + }, + { + "uuid": "3e828bde-20b5-4956-84d4-6b87c1132298", + "name": "Ranium" + } +] \ No newline at end of file