2024-10-09 03:36:08 -04:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
2024-10-15 17:46:44 -04:00
|
|
|
common = import ../../common { inherit pkgs; };
|
2024-08-31 09:18:43 -04:00
|
|
|
uberBukkitZip = pkgs.fetchzip {
|
|
|
|
url = "https://github.com/Moresteck/Project-Poseidon-Uberbukkit/releases/download/2.0.0/uberbukkit-2.0.0-java17.zip";
|
|
|
|
sha256 = "m4hgcqXJ43SnBGn6qNBGeEcXFv5Q8f/VFYJmx3aJ9PE=";
|
|
|
|
stripRoot = false;
|
|
|
|
};
|
2024-08-30 14:15:38 -04:00
|
|
|
uberBukkit = pkgs.vanillaServers.vanilla.overrideAttrs (oldAttrs: {
|
2024-08-31 09:18:43 -04:00
|
|
|
src = "${uberBukkitZip}/uberbukkit-2.0.0.jar";
|
2024-08-30 14:15:38 -04:00
|
|
|
});
|
|
|
|
in {
|
|
|
|
services.minecraft-servers.servers.uberbeta = {
|
|
|
|
enable = true;
|
|
|
|
package = uberBukkit;
|
|
|
|
jvmOpts = "-Xmx512M";
|
|
|
|
serverProperties = common.serverProperties // {
|
|
|
|
difficulty = 3;
|
|
|
|
server-port = 30005;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|