Compare commits

..

20 Commits

Author SHA1 Message Date
58e6d630e4 Merge pull request 'bug-88-fix-too-may-packets-kick' (#42) from bug-88 into develop
All checks were successful
/ build-docker (push) Successful in 21m34s
Reviewed-on: #42
Reviewed-by: oznobys <oznobys@noreply.localhost>
2025-08-24 11:04:43 +00:00
d88ebd30cc
increase packets per second limit from ~71 to 200 to avoid false positive kicks 2025-08-24 13:59:50 +03:00
bdcd2e86bd Merge pull request 'suggestion-86-move-spawn-from-world-center' (#41) from suggestion-86 into develop
All checks were successful
/ build-docker (push) Successful in 10m12s
Reviewed-on: #41
Reviewed-by: oznobys <oznobys@noreply.localhost>
Reviewed-by: apathy <zloiyudin@gmail.com>
2025-08-23 17:40:46 +00:00
0d0613d927
move spawn +512000 blocks away both x and z axis
this prevents overriding data in mods that process worlds (Xaero's World Map, Distant Horizon, ...)
2025-08-23 19:20:50 +03:00
57a576a0d1 Merge pull request 'suggestion-76-files-migration' (#40) from suggestion-76 into develop
All checks were successful
/ build-docker (push) Successful in 15m28s
Reviewed-on: #40
Reviewed-by: oznobys <oznobys@noreply.localhost>
2025-08-22 20:45:27 +00:00
e70dadbcd1
add file migration commands to Dockerfile 2025-08-22 23:11:43 +03:00
004eed8a14 Merge pull request 'release-1.0.0' (#39) from develop into main
All checks were successful
/ build-docker (push) Successful in 16m25s
Reviewed-on: #39
2025-08-14 15:04:34 +00:00
1adfac3553
rename docker image tag and add on tag push build condition to github action
Some checks are pending
/ build-docker (push) Waiting to run
2025-08-14 17:59:40 +03:00
8f61726fce Merge pull request 'feature-32-links-update' (#38) from feature-32 into develop
All checks were successful
/ build-docker (push) Successful in 10m46s
Reviewed-on: #38
Reviewed-by: cuqmbr <me@cuqmbr.xyz>
2025-08-13 15:27:36 +00:00
a1c39eeda7 Merge pull request 'feature-42-image-size-optimization-and-uid-gid-selection' (#37) from feature-42 into develop
All checks were successful
/ build-docker (push) Successful in 9m55s
Reviewed-on: #37
2025-08-12 19:34:10 +00:00
a33799c886
add uid/gid selection to run application as in Dockerfile 2025-08-12 19:14:50 +03:00
9f66b6701e
rearranged Dockerfile statements and add remove cache after locale installation 2025-08-12 19:14:00 +03:00
aaff9eb3e2 Merge pull request 'feature-23-track-rename' (#36) from feature-23 into develop
All checks were successful
/ build-docker (push) Successful in 10m46s
Reviewed-on: #36
2025-08-10 16:55:42 +00:00
e109ab6058
rename track "staff" to "roles" 2025-08-07 00:17:17 +03:00
6e9de1b3b8 Merge pull request 'feature-42-fix-unicode' (#35) from feature-42 into develop
All checks were successful
/ build-docker (push) Successful in 14m15s
Reviewed-on: #35
2025-08-06 18:57:18 +00:00
cb3c1fef96
add unicode locale generation to Dockerfile
before the change, unicode characters were displayed in console as question marks
2025-08-06 21:43:35 +03:00
479150b53f Merge pull request 'feature-23-command-whitelist' (#34) from feature-23 into develop
All checks were successful
/ build-docker (push) Successful in 6m55s
Reviewed-on: #34
Reviewed-by: oznobys <oznobys@noreply.localhost>
2025-08-04 15:28:45 +00:00
af4b4d3fd9 Merge pull request 'Удаление данных DiscordSRV' (#33) from feature-32 into develop
All checks were successful
/ build-docker (push) Successful in 8m46s
Reviewed-on: #33
Reviewed-by: cuqmbr <me@cuqmbr.xyz>
2025-08-03 20:17:22 +00:00
73ae5f0634
add and configure CommandWhitelist
allows to forbid certain command execution and hide their completion
2025-08-03 22:50:12 +03:00
1a83b4fe42 Merge pull request 'remove-discordsrv' (#32) from feature-32 into develop
Some checks failed
/ build-docker (push) Failing after 5m28s
Reviewed-on: #32
Reviewed-by: cuqmbr <me@cuqmbr.xyz>
2025-07-31 17:58:30 +00:00
15 changed files with 124 additions and 44 deletions

View File

@ -5,6 +5,8 @@ on:
branches:
- main
- develop
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build-docker:
@ -42,5 +44,6 @@ jobs:
push: true
# TODO: split tag names into multiple lines
tags: |
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}/${{github.ref_name}}:${{github.sha}}
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}/${{github.ref_name}}:latest
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}:${{github.sha}}
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}:${{github.ref_name}}
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}:latest

View File

@ -9,23 +9,25 @@ ADD ./src ${CONFIG_PATH}
RUN mkdir ${DATA_PATH}
# Add symlinks to Default Minecraft files
RUN touch ${DATA_PATH}/banned-ips.json && \
ln -sf ${DATA_PATH}/banned-ips.json ${CONFIG_PATH}
RUN touch ${DATA_PATH}/banned-players.json && \
ln -sf ${DATA_PATH}/banned-players.json ${CONFIG_PATH}
RUN mkdir ${DATA_PATH}/logs && \
ln -sf ${DATA_PATH}/logs ${CONFIG_PATH}
RUN touch ${DATA_PATH}/ops.json && \
ln -sf ${DATA_PATH}/ops.json ${CONFIG_PATH}
RUN touch ${DATA_PATH}/usercache.json && \
ln -sf ${DATA_PATH}/usercache.json ${CONFIG_PATH}
RUN touch ${DATA_PATH}/whitelist.json && \
ln -sf ${DATA_PATH}/whitelist.json ${CONFIG_PATH}
# Add symlinks to Minecraft Vanilla files
RUN mkdir ${DATA_PATH}/Vanilla && \
touch ${DATA_PATH}/Vanilla/banned-ips.json && \
ln -sf ${DATA_PATH}/Vanilla/banned-ips.json ${CONFIG_PATH} && \
touch ${DATA_PATH}/Vanilla/banned-players.json && \
ln -sf ${DATA_PATH}/Vanilla/banned-players.json ${CONFIG_PATH} && \
mkdir ${DATA_PATH}/Vanilla/logs && \
ln -sf ${DATA_PATH}/Vanilla/logs ${CONFIG_PATH} && \
touch ${DATA_PATH}/Vanilla/ops.json && \
ln -sf ${DATA_PATH}/Vanilla/ops.json ${CONFIG_PATH} && \
touch ${DATA_PATH}/Vanilla/usercache.json && \
ln -sf ${DATA_PATH}/Vanilla/usercache.json ${CONFIG_PATH} && \
touch ${DATA_PATH}/Vanilla/whitelist.json && \
ln -sf ${DATA_PATH}/Vanilla/whitelist.json ${CONFIG_PATH}
# Add symlinks to PlasmoVoice files
RUN touch ${DATA_PATH}/pv-voice_mutes.json && \
ln -sf ${DATA_PATH}/pv-voice_mutes.json \
RUN mkdir ${DATA_PATH}/PlasmoVoice && \
touch ${DATA_PATH}/PlasmoVoice/pv-voice_mutes.json && \
ln -sf ${DATA_PATH}/PlasmoVoice/pv-voice_mutes.json \
${CONFIG_PATH}/plugins/PlasmoVoice/voice_mutes.json
# Add symlinks to SuperVanish files
@ -54,10 +56,23 @@ RUN mkdir -p ${DATA_PATH}/FancyNpcs/logs && \
ln -sf ${DATA_PATH}/FancyNpcs/logs/ \
${CONFIG_PATH}/plugins/FancyNpcs/logs
# Generate unicode locale so that cyrillic characters display properly
RUN apt-get update -y && apt-get install -y locales && \
echo en_US.UTF-8 UTF-8 > /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
rm -Rf var/lib/apt/lists/*
ENV LANG en_US.UTF-8
VOLUME ${DATA_PATH}
EXPOSE 25565/tcp
ENV GID=988
ENV UID=999
ENV MEMORY=4G
ENV PROXY_SECRET=00000000-0000-0000-0000-000000000000
@ -78,9 +93,25 @@ ENV SKINSRESTORER_DB_PASSWORD=0000
WORKDIR ${WORKDIR_PATH}/config
EXPOSE 25565/tcp
CMD \
# Remove after migrated
mkdir -p ${DATA_PATH}/Vanilla && \
if [ -e ${DATA_PATH}/banned-ips.json ]; then mv ${DATA_PATH}/banned-ips.json ${DATA_PATH}/Vanilla; fi && \
if [ -e ${DATA_PATH}/banned-players.json ]; then mv ${DATA_PATH}/banned-players.json ${DATA_PATH}/Vanilla; fi && \
if [ -e ${DATA_PATH}/logs ]; then mv ${DATA_PATH}/logs ${DATA_PATH}/Vanilla; fi && \
if [ -e ${DATA_PATH}/ops.json ]; then mv ${DATA_PATH}/ops.json ${DATA_PATH}/Vanilla; fi && \
if [ -e ${DATA_PATH}/usercache.json ]; then mv ${DATA_PATH}/usercache.json ${DATA_PATH}/Vanilla; fi && \
if [ -e ${DATA_PATH}/whitelist.json ]; then mv ${DATA_PATH}/whitelist.json ${DATA_PATH}/Vanilla; fi && \
mkdir -p ${DATA_PATH}/PlasmoVoice && \
if [ -e ${DATA_PATH}/pv-voice_mutes.json ]; then mv ${DATA_PATH}/pv-voice_mutes.json ${DATA_PATH}/PlasmoVoice; fi && \
# Create and switch to user with desired UID and GID.
# All processes that create/change files in ${DATA_PATH}
# must be run under this user.
groupadd -g ${GID} worker && \
useradd -M -g ${GID} -u ${UID} worker && \
chmod -R o-rwx ${WORKDIR_PATH} && \
# Add proxy secret
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" config/paper-global.yml && \
@ -101,5 +132,8 @@ CMD \
sed -i "s/_SKINSRESTORER_DB_USERNAME_/${SKINSRESTORER_DB_USERNAME}/g" plugins/SkinsRestorer/config.yml && \
sed -i "s/_SKINSRESTORER_DB_PASSWORD_/${SKINSRESTORER_DB_PASSWORD}/g" plugins/SkinsRestorer/config.yml && \
# Change UID and GID of used files to desired values.
chown -R worker:worker ${WORKDIR_PATH} && \
# Launch
java -Xms${MEMORY} -Xmx${MEMORY} -jar *.jar -nogui
su worker -c "java -Xms${MEMORY} -Xmx${MEMORY} -jar *.jar -nogui"

View File

@ -79,8 +79,8 @@ misc:
packet-limiter:
all-packets:
action: KICK
interval: 7.0
max-packet-rate: 500.0
interval: 1.0
max-packet-rate: 200.0
kick-message: <red><lang:disconnect.exceeded_packet_rate>
overrides:
ServerboundPlaceRecipePacket:

BIN
src/plugins/CommandWhitelist-Bukkit-2.12.0.jar (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,37 @@
# Messages use MiniMessage formatting (https://docs.adventure.kyori.net/minimessage/format)
messages:
prefix: ''
command_denied: ''
subcommand_denied: ''
no_permission: ''
no_such_subcommand: ''
config_reloaded: <yellow>Configuration reloaded.
added_to_whitelist: <yellow>Whitelisted command <gold>%s <yellow>for permission
<gold>%s
removed_from_whitelist: <yellow>Removed command <gold>%s <yellow>from permission
<gold>%s
group_doesnt_exist: <red>Group doesn't exist or error occured
# Do not enable if you don't have issues with aliased commands.
# This requires server restart to take effect.
use_protocollib: false
# Valid message types are CHAT and ACTIONBAR. Does nothing on velocity.
message_type: CHAT
groups:
default:
commands:
- tell
- reply
- spawn
- links
- menu
- servers
subcommands: []
role_moder:
commands:
- vmute
- vunmute
- vmutelist
subcommands: []

View File

@ -4,9 +4,9 @@ holograms:
type: TEXT
location:
world: world
x: 255.5
x: 512255.5
y: 3.057499885559082
z: 262.5
z: 512262.5
yaw: -180.0
pitch: 0.0
visibility_distance: -1
@ -35,9 +35,9 @@ holograms:
type: TEXT
location:
world: world
x: 261.5
x: 512261.5
y: 2.25
z: 261.5
z: 512261.5
yaw: 135.0
pitch: 0.0
visibility_distance: 32
@ -63,9 +63,9 @@ holograms:
type: TEXT
location:
world: world
x: 249.5
x: 512249.5
y: 2.25
z: 261.5
z: 512261.5
yaw: -135.0
pitch: 0.0
visibility_distance: 32

View File

@ -6,9 +6,9 @@ npcs:
type: PLAYER
location:
world: world
x: 255.5
x: 512255.5
y: 0.9375
z: 262.5
z: 512262.5
yaw: -180.0
pitch: 0.0
showInTab: false
@ -43,9 +43,9 @@ npcs:
type: INTERACTION
location:
world: world
x: 261.5
x: 512261.5
y: 2.0
z: 261.5
z: 512261.5
yaw: -35.550262
pitch: 11.700032
showInTab: false
@ -78,9 +78,9 @@ npcs:
type: INTERACTION
location:
world: world
x: 249.5
x: 512249.5
y: 2.0
z: 261.5
z: 512261.5
yaw: -121.19934
pitch: 76.49999
showInTab: false

View File

@ -404,7 +404,7 @@ auto-install-translations: true
meta-formatting:
prefix:
format:
- highest_on_track_staff
- highest_on_track_roles
- highest_on_track_clans
duplicates: first-only

View File

@ -1,7 +1,7 @@
spawn:
world: world
x: 255.5
x: 512255.5
y: 1.0
z: 258.5
z: 512258.5
yaw: 0.0
pitch: 0.0

View File

@ -41,7 +41,7 @@ suppress-text-component-conversion-warnings: true
#
# What is the maximum per second a client can send (Use %pps to display their pps)
# Use -1 to disable.
max-pps: 800
max-pps: -1
max-pps-kick-msg: You are sending too many packets!
#
# We can also kick them if over a period they send over a threshold a certain amount of times.

View File

@ -11,8 +11,8 @@
#
regions:
spawn:
min: {x: 206, y: 0, z: 206}
max: {x: 304, y: 32, z: 304}
min: {x: 512206, y: 0, z: 512206}
max: {x: 512304, y: 32, z: 512304}
members: {}
flags: {other-explosion: deny, lava-fire: deny, water-flow: deny, use: deny,
invincible: allow, snow-fall: deny, leaf-decay: deny, firework-damage: deny,

Binary file not shown.

BIN
src/world/poi/r.1000.1000.mca (Stored with Git LFS) Normal file

Binary file not shown.

BIN
src/world/region/r.0.0.mca (Stored with Git LFS)

Binary file not shown.

BIN
src/world/region/r.1000.1000.mca (Stored with Git LFS) Normal file

Binary file not shown.