diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 2e6d548..764b036 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -37,4 +37,9 @@ jobs: run: | docker build blubb -t ${{env.REGISTRY}}/krassegorganisation/blubb:latest docker push ${{env.REGISTRY}}/krassegorganisation/blubb:latest - \ No newline at end of file + + - name: Build and push Paper image + run: | + docker build paper -t ${{env.REGISTRY}}/krassegorganisation/paper:latest + docker push ${{env.REGISTRY}}/krassegorganisation/paper:latest + \ No newline at end of file diff --git a/paper/Dockerfile b/paper/Dockerfile new file mode 100644 index 0000000..943179c --- /dev/null +++ b/paper/Dockerfile @@ -0,0 +1,5 @@ +FROM marctv/minecraft-papermc-server:latest + +COPY server.properties . +RUN mkdir config +COPY paper-global.yml config/ \ No newline at end of file diff --git a/paper/paper-global.yml b/paper/paper-global.yml new file mode 100644 index 0000000..9ce5ae1 --- /dev/null +++ b/paper/paper-global.yml @@ -0,0 +1,143 @@ +# This is the global configuration file for Paper. +# As you can see, there's a lot to configure. Some options may impact gameplay, so use +# with caution, and make sure you know what each option does before configuring. +# +# If you need help with the configuration or have any questions related to Paper, +# join us in our Discord or check the docs page. +# +# The world configuration options have been moved inside +# their respective world folder. The files are named paper-world.yml +# +# Docs: https://docs.papermc.io/ +# Discord: https://discord.gg/papermc +# Website: https://papermc.io/ + +_version: 29 +block-updates: + disable-chorus-plant-updates: false + disable-mushroom-block-updates: false + disable-noteblock-updates: false + disable-tripwire-updates: false +chunk-loading: + autoconfig-send-distance: true + enable-frustum-priority: false + global-max-chunk-load-rate: -1.0 + global-max-chunk-send-rate: -1.0 + global-max-concurrent-loads: 500.0 + max-concurrent-sends: 2 + min-load-radius: 2 + player-max-chunk-load-rate: -1.0 + player-max-concurrent-loads: 20.0 + target-player-chunk-send-rate: 100.0 +chunk-loading-advanced: + auto-config-send-distance: true + player-max-concurrent-chunk-generates: 0 + player-max-concurrent-chunk-loads: 0 +chunk-loading-basic: + player-max-chunk-generate-rate: -1.0 + player-max-chunk-load-rate: 100.0 + player-max-chunk-send-rate: 75.0 +chunk-system: + gen-parallelism: default + io-threads: -1 + worker-threads: -1 +collisions: + enable-player-collisions: true + send-full-pos-for-hard-colliding-entities: true +commands: + fix-target-selector-tag-completion: true + suggest-player-names-when-null-tab-completions: true + time-command-affects-all-worlds: false +console: + enable-brigadier-completions: true + enable-brigadier-highlighting: true + has-all-permissions: false +item-validation: + book: + author: 8192 + page: 16384 + title: 8192 + book-size: + page-max: 2560 + total-multiplier: 0.98 + display-name: 8192 + lore-line: 8192 + resolve-selectors-in-books: false +logging: + deobfuscate-stacktraces: true +messages: + kick: + authentication-servers-down: + connection-throttle: Connection throttled! Please wait before reconnecting. + flying-player: + flying-vehicle: + no-permission: I'm sorry, but you do not have permission to perform this command. + Please contact the server administrators if you believe that this is in error. + use-display-name-in-quit-message: true +misc: + chat-threads: + chat-executor-core-size: -1 + chat-executor-max-size: -1 + compression-level: default + fix-entity-position-desync: true + lag-compensate-block-breaking: true + load-permissions-yml-before-plugins: true + max-joins-per-tick: 3 + region-file-cache-size: 256 + strict-advancement-dimension-check: false + use-alternative-luck-formula: false + use-dimension-type-for-custom-spawners: false +packet-limiter: + all-packets: + action: KICK + interval: 7.0 + max-packet-rate: 500.0 + kick-message: + overrides: + ServerboundPlaceRecipePacket: + action: DROP + interval: 4.0 + max-packet-rate: 5.0 +player-auto-save: + max-per-tick: -1 + rate: -1 +proxies: + bungee-cord: + online-mode: false + proxy-protocol: false + velocity: + enabled: true + online-mode: true + secret: PLACEHOLDER +scoreboards: + save-empty-scoreboard-teams: true + track-plugin-scoreboards: false +spam-limiter: + incoming-packet-threshold: 300 + recipe-spam-increment: 1 + recipe-spam-limit: 20 + tab-spam-increment: 1 + tab-spam-limit: 500 +timings: + enabled: true + hidden-config-entries: + - database + - settings.bungeecord-addresses + - settings.velocity-support.secret + - proxies.velocity.secret + history-interval: 300 + history-length: 3600 + server-name: Unknown Server + server-name-privacy: false + url: https://timings.aikar.co/ + verbose: true +unsupported-settings: + allow-grindstone-overstacking: false + allow-headless-pistons: false + allow-permanent-block-break-exploits: false + allow-piston-duplication: false + compression-format: ZLIB + perform-username-validation: true +watchdog: + early-warning-delay: 10000 + early-warning-every: 5000 \ No newline at end of file diff --git a/paper/server.properties b/paper/server.properties new file mode 100644 index 0000000..ef77d5b --- /dev/null +++ b/paper/server.properties @@ -0,0 +1,60 @@ +#Minecraft server properties +#Sat Nov 18 19:59:07 CET 2023 +enable-jmx-monitoring=false +rcon.port=25575 +level-seed= +gamemode=survival +enable-command-block=false +enable-query=false +generator-settings={} +enforce-secure-profile=true +level-name=world +motd=A Minecraft Server +query.port=25999 +pvp=true +generate-structures=true +max-chained-neighbor-updates=1000000 +difficulty=easy +network-compression-threshold=256 +max-tick-time=60000 +require-resource-pack=false +use-native-transport=true +max-players=20 +online-mode=false +enable-status=true +allow-flight=true +initial-disabled-packs= +broadcast-rcon-to-ops=true +view-distance=10 +server-ip= +resource-pack-prompt= +allow-nether=true +server-port=25565 +enable-rcon=false +sync-chunk-writes=true +op-permission-level=4 +prevent-proxy-connections=false +hide-online-players=false +resource-pack= +entity-broadcast-range-percentage=100 +simulation-distance=10 +rcon.password= +player-idle-timeout=0 +debug=false +force-gamemode=false +rate-limit=0 +hardcore=false +white-list=false +broadcast-console-to-ops=true +spawn-npcs=true +spawn-animals=true +log-ips=true +function-permission-level=2 +initial-enabled-packs=vanilla +level-type=minecraft\:normal +text-filtering-config= +spawn-monsters=true +enforce-whitelist=false +spawn-protection=16 +resource-pack-sha1= +max-world-size=29999984 \ No newline at end of file