Building and Running Example Mc-Server

This commit is contained in:
kb01guy 2023-03-25 15:08:14 +01:00
parent c06908e080
commit 2f18852fa5
10 changed files with 296 additions and 1 deletions

21
mc-java/.gitignore vendored Normal file
View file

@ -0,0 +1,21 @@
# Copyright & Eula
server/spigot-*.jar
server/plugins/*.jar
server/plugins/*/*.jar
server/plugins/*/*/*.jar
server/eula.txt
# Run Data
server/bundler/
server/logs/
# Server and User Data
server/world*
server/banned-*.json
server/ops.json
server/usercache.json
server/whitelist.json
# Uncategorized
server/help.yml

7
mc-java/readme.me Normal file
View file

@ -0,0 +1,7 @@
# Example Minecraft Java Server
This Server Example will demonstrate all the ways to start up the Minecraft Server.
On Windows you can start it by executing the ```start.ps1``` Script.
On Linux and Mac you can start it by executing the ```start.sh``` Script.
With Docker you can run ```docker compose up``` in this Directory, or even ```docker stack deploy -c docker-compose.yml mc-java```.

32
mc-java/server/bukkit.yml Normal file
View file

@ -0,0 +1,32 @@
settings:
allow-end: true
warn-on-overload: true
permissions-file: permissions.yml
update-folder: update
plugin-profiling: false
connection-throttle: 4000
query-plugins: true
deprecated-verbose: default
shutdown-message: Server closed
minimum-api: none
use-map-color-cache: true
spawn-limits:
monsters: 70
animals: 10
water-animals: 5
water-ambient: 20
water-underground-creature: 5
axolotls: 5
ambient: 15
chunk-gc:
period-in-ticks: 600
ticks-per:
animal-spawns: 400
monster-spawns: 1
water-spawns: 1
water-ambient-spawns: 1
water-underground-creature-spawns: 1
axolotl-spawns: 1
ambient-spawns: 1
autosave: 6000
aliases: now-in-commands.yml

View file

@ -0,0 +1,5 @@
command-block-overrides: []
ignore-vanilla-permissions: false
aliases:
icanhasbukkit:
- version $1-

View file

View file

@ -0,0 +1,5 @@
# http://mcstats.org
opt-out: true
guid: 002a3092-455b-437a-a12f-ccf517cda3ff
debug: false

View file

@ -0,0 +1,59 @@
#Minecraft server properties
#Wed Mar 22 00:55:41 CET 2023
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
debug=false
difficulty=easy
enable-command-block=false
enable-jmx-monitoring=false
enable-query=false
enable-rcon=false
enable-status=true
enforce-secure-profile=true
enforce-whitelist=false
entity-broadcast-range-percentage=100
force-gamemode=false
function-permission-level=2
gamemode=survival
generate-structures=true
generator-settings={}
hardcore=false
hide-online-players=false
initial-disabled-packs=
initial-enabled-packs=vanilla
level-name=world
level-seed=
level-type=minecraft\:normal
max-chained-neighbor-updates=1000000
max-players=20
max-tick-time=60000
max-world-size=29999984
motd=A Minecraft Server
network-compression-threshold=256
online-mode=true
op-permission-level=4
player-idle-timeout=0
prevent-proxy-connections=false
pvp=true
query.port=25565
rate-limit=0
rcon.password=
rcon.port=25575
require-resource-pack=false
resource-pack=
resource-pack-prompt=
resource-pack-sha1=
server-ip=
server-port=25565
simulation-distance=10
spawn-animals=true
spawn-monsters=true
spawn-npcs=true
spawn-protection=16
sync-chunk-writes=true
text-filtering-config=
use-native-transport=true
view-distance=10
white-list=false

149
mc-java/server/spigot.yml Normal file
View file

@ -0,0 +1,149 @@
# This is the main configuration file for Spigot.
# As you can see, there's tons to configure. Some options may impact gameplay, so use
# with caution, and make sure you know what each option does before configuring.
# For a reference for any variable inside this file, check out the Spigot wiki at
# http://www.spigotmc.org/wiki/spigot-configuration/
#
# If you need help with the configuration or have any questions related to Spigot,
# join us at the Discord or drop by our forums and leave a post.
#
# Discord: https://www.spigotmc.org/go/discord
# Forums: http://www.spigotmc.org/
settings:
debug: false
timeout-time: 60
restart-on-crash: true
restart-script: ./start.sh
netty-threads: 4
attribute:
maxHealth:
max: 2048.0
movementSpeed:
max: 2048.0
attackDamage:
max: 2048.0
moved-too-quickly-multiplier: 10.0
save-user-cache-on-stop-only: false
moved-wrongly-threshold: 0.0625
user-cache-size: 1000
bungeecord: false
sample-count: 12
player-shuffle: 0
log-villager-deaths: true
log-named-deaths: true
world-settings:
default:
below-zero-generation-in-existing-chunks: true
verbose: true
nerf-spawner-mobs: false
item-despawn-rate: 6000
merge-radius:
item: 2.5
exp: 3.0
simulation-distance: default
view-distance: default
thunder-chance: 100000
arrow-despawn-rate: 1200
trident-despawn-rate: 1200
seed-village: 10387312
seed-desert: 14357617
seed-igloo: 14357618
seed-jungle: 14357619
seed-swamp: 14357620
seed-monument: 10387313
seed-shipwreck: 165745295
seed-ocean: 14357621
seed-outpost: 165745296
seed-endcity: 10387313
seed-slime: 987234911
seed-nether: 30084232
seed-mansion: 10387319
seed-fossil: 14357921
seed-portal: 34222645
max-tick-time:
tile: 50
entity: 50
max-tnt-per-tick: 100
hunger:
jump-walk-exhaustion: 0.05
jump-sprint-exhaustion: 0.2
combat-exhaustion: 0.1
regen-exhaustion: 6.0
swim-multiplier: 0.01
sprint-multiplier: 0.1
other-multiplier: 0.0
enable-zombie-pigmen-portal-spawns: true
dragon-death-sound-radius: 0
wither-spawn-sound-radius: 0
end-portal-sound-radius: 0
hanging-tick-frequency: 100
mob-spawn-range: 6
growth:
cactus-modifier: 100
cane-modifier: 100
melon-modifier: 100
mushroom-modifier: 100
pumpkin-modifier: 100
sapling-modifier: 100
beetroot-modifier: 100
carrot-modifier: 100
potato-modifier: 100
wheat-modifier: 100
netherwart-modifier: 100
vine-modifier: 100
cocoa-modifier: 100
bamboo-modifier: 100
sweetberry-modifier: 100
kelp-modifier: 100
twistingvines-modifier: 100
weepingvines-modifier: 100
cavevines-modifier: 100
ticks-per:
hopper-transfer: 8
hopper-check: 1
hopper-amount: 1
hopper-can-load-chunks: false
entity-activation-range:
animals: 32
monsters: 32
raiders: 48
misc: 16
tick-inactive-villagers: true
ignore-spectators: false
entity-tracking-range:
players: 48
animals: 48
monsters: 48
misc: 32
other: 64
zombie-aggressive-towards-villager: true
messages:
restart: Server is restarting
whitelist: You are not whitelisted on this server!
unknown-command: Unknown command. Type "/help" for help.
server-full: The server is full!
outdated-client: Outdated client! Please use {0}
outdated-server: Outdated server! I'm still on {0}
commands:
silent-commandblock-console: false
replace-commands:
- setblock
- summon
- testforblock
- tellraw
spam-exclusions:
- /skill
log: true
tab-complete: 0
send-namespaced: true
advancements:
disable-saving: false
disabled:
- minecraft:story/disabled
players:
disable-saving: false
config-version: 12
stats:
disable-saving: false
forced-stats: {}

View file

@ -1 +1,9 @@
java -jar template-server/spigot.jar $basedir=(Get-Location)
$buildtools=$basedir.Path + "\..\.tools\buildtools"
$version="1.19.4"
Set-Location ($basedir.Path+"\server")
A:\scoop\apps\zulu-jdk\current\bin\java.exe -jar (".\spigot-"+$version+".jar") --nogui
Set-Location $basedir

9
mc-java/update.ps1 Normal file
View file

@ -0,0 +1,9 @@
$basedir=(Get-Location)
$buildtools=$basedir.Path + "\..\.tools\buildtools"
$version="1.19.4"
Set-Location $buildtools
A:\scoop\apps\zulu-jdk\current\bin\java.exe -jar .\BuildTools.jar --rev $version
Set-Location $basedir
Move-Item ($buildtools + "\spigot-" + $version + ".jar") .\server\.