Add custom motd

This commit is contained in:
thiloho
2023-12-04 00:10:45 +01:00
parent 8154882b31
commit 4c49824e41
2 changed files with 22 additions and 5 deletions

6
flake.lock generated
View File

@@ -71,11 +71,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1695497123, "lastModified": 1701549107,
"narHash": "sha256-i9pQ86ZFgLBVukuR76Nz5LyoVe2j4xOzjhv9B4B/3Ew=", "narHash": "sha256-5BHE+lsX3KdjRzXoOj6hadZktZSolFSFHvd2Nh1+/o0=",
"owner": "thiloho", "owner": "thiloho",
"repo": "discord-bot", "repo": "discord-bot",
"rev": "f4f6e5c9180fff6cd41715cd6c2192f4228ea91d", "rev": "aa78e420757075cc1a8c3d2241d81913dadb0b5a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -40,19 +40,25 @@
thilo = { thilo = {
enable = true; enable = true;
autoStart = true; autoStart = true;
package = pkgs.paperServers.paper; package = pkgs.paperServers.paper-1_20_1;
enableReload = true;
openFirewall = true; openFirewall = true;
whitelist = { whitelist = {
thilo_ho = "4e4d744d-7748-46bc-add8-b3e8ca3b4cf5"; thilo_ho = "4e4d744d-7748-46bc-add8-b3e8ca3b4cf5";
PegasusIsHere = "24155f74-eb04-4f45-a743-f2b7eb71c6a2"; PegasusIsHere = "24155f74-eb04-4f45-a743-f2b7eb71c6a2";
BakaZaps = "1888532c-6df7-4514-b96a-99ed4e7684f2"; BakaZaps = "1888532c-6df7-4514-b96a-99ed4e7684f2";
Liaxswan = "ccbf3468-a6b4-4d7b-9837-5a2451deca79"; Liaxswan = "ccbf3468-a6b4-4d7b-9837-5a2451deca79";
rayboo120 = "c65f9422-b972-4583-82b5-2e5a12e789fd";
AmValo = "a5f4a7d9-daf2-4ec9-b1c9-e39efdfb331e";
TubiCFW = "fbbd217b-cf9f-404a-a0b4-671155d43222";
TheRacccooon = "f3a639f2-b82c-49c2-80e5-ccd5cbdc9541";
_Zyronx = "865f911f-66ae-479f-a65a-8140da82b96e";
}; };
serverProperties = { serverProperties = {
difficulty = 3; difficulty = 3;
max-players = 20; max-players = 20;
motd = "§aThilo's survival server"; motd = "§aThilo's survival server";
white-list = true; white-list = false;
}; };
files = { files = {
"ops.json".value = [ "ops.json".value = [
@@ -117,6 +123,7 @@
"plugins/LuckPerms/config.yml".value = { "plugins/LuckPerms/config.yml".value = {
storage-method = "yaml"; storage-method = "yaml";
}; };
/*
"plugins/LuckPerms/yaml-storage/users/4e4d744d-7748-46bc-add8-b3e8ca3b4cf5.yml".value = { "plugins/LuckPerms/yaml-storage/users/4e4d744d-7748-46bc-add8-b3e8ca3b4cf5.yml".value = {
uuid = "4e4d744d-7748-46bc-add8-b3e8ca3b4cf5"; uuid = "4e4d744d-7748-46bc-add8-b3e8ca3b4cf5";
name = "thilo_ho"; name = "thilo_ho";
@@ -125,6 +132,7 @@
"admin" "admin"
]; ];
}; };
*/
"plugins/LuckPerms/yaml-storage/groups/admin.yml".value = { "plugins/LuckPerms/yaml-storage/groups/admin.yml".value = {
name = "admin"; name = "admin";
permissions = [ permissions = [
@@ -270,6 +278,15 @@
}; };
}; };
}; };
"plugins/Essentials/motd.txt" = pkgs.writeText "motd.txt" ''
&m
&6Welcome, {PLAYER}&6!
&6Type &c/help&6 for a list of commands.
&6Type &c/list&6 to see who else is online.
&6Players online:&c {ONLINE} &6- World time:&c {WORLDTIME12}
&6Discord server: &chttps://discord.gg/SX7fXrDtth
&m
'';
}; };
symlinks = { symlinks = {
"server-icon.png" = pkgs.fetchurl { "server-icon.png" = pkgs.fetchurl {