Compare commits

...

14 Commits

Author SHA1 Message Date
54e9708e6d Merge pull request 'bug-88-fix-too-may-packets-kick' (#26) from bug-88 into develop
All checks were successful
/ build-docker (push) Successful in 17m31s
Reviewed-on: #26
Reviewed-by: oznobys <oznobys@noreply.localhost>
2025-08-24 11:04:49 +00:00
92c2c6e10f
remove packet limit in ViaVersion config 2025-08-24 00:30:30 +03:00
ccba748eee Merge pull request 'suggestion-84-gloabl-player-limit' (#25) from suggestion-84 into develop
All checks were successful
/ build-docker (push) Successful in 9m28s
Reviewed-on: #25
Reviewed-by: oznobys <oznobys@noreply.localhost>
2025-08-22 20:18:26 +00:00
200c88a230
add and configure VelocityPlayerLimit plugin to set global player limit on the server netwrok 2025-08-22 22:01:57 +03:00
d18b7d4762 Merge pull request 'release-1.0.0' (#24) from develop into main
All checks were successful
/ build-docker (push) Successful in 16m44s
Reviewed-on: #24
2025-08-14 14:57:20 +00:00
9f31fe13a0
rename docker image tag and add on tag push build condition to github action
Some checks failed
/ build-docker (push) Has been cancelled
2025-08-14 17:50:09 +03:00
6493498337 Merge pull request 'feature-23-permission-improvements' (#23) from feature-23 into develop
All checks were successful
/ build-docker (push) Successful in 8m56s
Reviewed-on: #23
2025-08-13 17:47:58 +00:00
87aee184c4
change clans' prefixes 2025-08-13 20:44:30 +03:00
c4fda21c32
add SkinsRestorer update permission 2025-08-13 20:44:30 +03:00
9eb4e9f626
configure ImageFrame permissions 2025-08-13 20:44:30 +03:00
1584d8253f Merge pull request 'feature-42-image-size-optimization-and-uid-gid-selection' (#22) from feature-42 into develop
All checks were successful
/ build-docker (push) Successful in 9m1s
Reviewed-on: #22
2025-08-12 19:34:08 +00:00
625d8a2a7a
add uid/gid selection to run application as in Dockerfile 2025-08-12 19:11:52 +03:00
87bd681c23
rearranged Dockerfile statements and add remove cache after locale installation 2025-08-12 18:51:42 +03:00
b4ab1f1860 Merge pull request 'feature-26-transparent-favicon-background' (#21) from feature-26 into develop
All checks were successful
/ build-docker (push) Successful in 8m49s
Reviewed-on: #21
2025-08-10 17:52:01 +00:00
7 changed files with 141 additions and 12 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

@ -18,13 +18,20 @@ RUN touch ${DATA_PATH}/pv-groups.json && \
# 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
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
@ -60,13 +67,19 @@ ENV SONAR_DB_NAME=sonar_db
ENV SONAR_DB_USERNAME=sonar
ENV SONAR_DB_PASSWORD=0000
WORKDIR ${WORKDIR_PATH}/config
EXPOSE 25565/tcp
WORKDIR ${WORKDIR_PATH}/config
# TODO: Make awk commands sapn multiple lines
# TODO: Use one call to awk to perform substitutions
CMD \
# 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" forwarding.secret && \
@ -115,4 +128,7 @@ CMD \
sed -i "s/_SONAR_DB_USERNAME_/${SONAR_DB_USERNAME}/g" plugins/sonar/config.yml && \
sed -i "s/_SONAR_DB_PASSWORD_/${SONAR_DB_PASSWORD}/g" plugins/sonar/config.yml && \
java -Xms${MEMORY} -Xmx${MEMORY} -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar *.jar
# Change UID and GID of used files to desired values.
chown -R worker:worker ${WORKDIR_PATH} && \
su worker -c "java -Xms${MEMORY} -Xmx${MEMORY} -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar *.jar"

View File

@ -180,7 +180,7 @@ playerCount:
#
# Read more: https://asl.andre601.ch/profiles/#extraplayers-enabled
#
enabled: true
enabled: false
#
# Set the number that should be added to the online player count to then use as the new max player count.
# Placeholders resolving to numbers can be used here.
@ -242,4 +242,4 @@ playerCount:
#
# Read more: https://asl.andre601.ch/profiles/#onlineplayers-amount
#
amount: 0
amount: 0

View File

@ -181,6 +181,35 @@
},
"role_moder": {
"nodes": [
{
"type": "permission",
"key": "velocityplayerlimit.bypass",
"value": true
},
{
"type": "permission",
"key": "imageframe.list.others",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.adminsetcreator",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.admindelete",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "minecraft.command.gamemode.spectator",
@ -577,6 +606,14 @@
},
"role_elder": {
"nodes": [
{
"type": "permission",
"key": "imageframe.createlimit.role_elder",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "commandwhitelist.group.role_elder",
@ -603,7 +640,7 @@
"nodes": [
{
"type": "prefix",
"key": "prefix.10.<aqua>Апатия 💰</aqua>",
"key": "prefix.10.<color:#c0c0c0>LA ⚔️</color>",
"value": true
}
]
@ -612,7 +649,7 @@
"nodes": [
{
"type": "prefix",
"key": "prefix.10.<dark_red>KAM ⚒</dark_red>",
"key": "prefix.10.<dark_red>КАМ</dark_red>",
"value": true
}
]
@ -621,13 +658,69 @@
"nodes": [
{
"type": "prefix",
"key": "prefix.10.<black>ОКО 👁</black>",
"key": "prefix.10.<color:#ed7702>ОКО 👁</color>",
"value": true
}
]
},
"default": {
"nodes": [
{
"type": "permission",
"key": "imageframe.createlimit.default",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.create",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.create.animated",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.select",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.list",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.delete",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "imageframe.setaccess",
"value": true,
"context": {
"server": "survival"
}
},
{
"type": "permission",
"key": "carbon.channel.global.see",
@ -921,6 +1014,11 @@
"key": "skinsrestorer.command.set.url",
"value": true
},
{
"type": "permission",
"key": "skinsrestorer.command.update",
"value": true
},
{
"type": "permission",
"key": "velocity.command.server",

BIN
src/plugins/velocity-player-limit-1.0.0.jar (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,9 @@
# Configuration for Velocity Player Limit v1.0.0 by hpfxd.com
# https://github.com/hpfxd/VelocityPlayerLimit
#
# Permission to bypass limit: "velocityplayerlimit.bypass"
# Permission to use /playerlimit: "velocityplayerlimit.command"
show-in-player-list: true
player-limit: 30
kick-message: '&cСервер полон.'

View File

@ -93,7 +93,7 @@ map-1_16-world-names:
#
# 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!
# If this setting is active, the main hand is used instead of the off-hand to trigger the blocking of the player.
# With the main hand, the blocking starts way faster.