Skip to content

Instantly share code, notes, and snippets.

@BirkhoffLee
Last active February 5, 2022 04:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BirkhoffLee/d07f49d6481686e0499a65229c81bfc2 to your computer and use it in GitHub Desktop.
Save BirkhoffLee/d07f49d6481686e0499a65229c81bfc2 to your computer and use it in GitHub Desktop.
Quick optimize MC server

BungeeCord config.yml

sed -i "s/ip_forward: false/ip_forward: true/" config.yml

paper.yml

sed -i "s/optimize-explosions: false/optimize-explosions: true/" paper.yml
sed -i "s/mob-spawner-tick-rate: 1/mob-spawner-tick-rate: 3/" paper.yml
sed -i "s/disable-chest-cat-detection: false/disable-chest-cat-detection: true/" paper.yml
sed -i "s/container-update-tick-rate: 1/container-update-tick-rate: 3/" paper.yml
sed -i "s/queue-light-updates: false/queue-light-updates: true/" paper.yml
sed -i "s/fire-physics-event-for-redstone: false/fire-physics-event-for-redstone: true/" paper.yml
sed -i "s/grass-spread-tick-rate: 1/grass-spread-tick-rate: 3/" paper.yml

spigot.yml

sed -i "s/bungeecord: false/bungeecord: true/" spigot.yml
sed -i "s/late-bind: false/late-bind: true/" spigot.yml
sed -i "s/mob-spawn-range: 4/mob-spawn-range: 3/" spigot.yml
sed -i "s/animals: 32/animals: 6/" spigot.yml
sed -i "s/monsters: 32/monsters: 16/" spigot.yml
sed -i "s/misc: 16/misc: 2/" spigot.yml
sed -i "s/hopper-transfer: 8/hopper-transfer: 24/" spigot.yml
sed -i "s/hopper-check: 1/hopper-check: 24/" spigot.yml
sed -i "s/hopper-amount: 1/hopper-amount: 3/" spigot.yml
sed -i "s/max-entity-collisions: 8/max-entity-collisions: 2/" spigot.yml
sed -i "s/item: 2\.5/item: 3\.5/" spigot.yml
sed -i "s/exp: 3\.0/exp: 6\.0/" spigot.yml
sed -i "s/view-distance: 10/view-distance: 4/" spigot.yml

bukkit.yml

sed -i "s/connection-throttle: 4000/connection-throttle: -1/" bukkit.yml
sed -i "s/monsters: 70/monsters: 50/" bukkit.yml
sed -i "s/animals: 15/animals: 10/" bukkit.yml
sed -i "s/water-animals: 5/water-animals: 3/" bukkit.yml
sed -i "s/ambient: 15/ambient: 4/" bukkit.yml
sed -i "s/period-in-ticks: 600/period-in-ticks: 300/" bukkit.yml
sed -i "s/load-threshold: 0/load-threshold: 300/" bukkit.yml
sed -i "s/monster-spawns: 1/monster-spawns: 3/" bukkit.yml

server.properties

single server:

sed -i "s/network-compression-threshold=256/network-compression-threshold=512/" server.properties

behind proxy:

sed -i "s/online-mode=true/online-mode=false/" server.properties
sed -i "s/network-compression-threshold=256/network-compression-threshold=-1/" server.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment