From 200c88a23031b55a94704184c76b9035567a9677 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Fri, 22 Aug 2025 22:01:57 +0300 Subject: [PATCH] add and configure VelocityPlayerLimit plugin to set global player limit on the server netwrok --- src/plugins/advancedserverlist/profiles/default.yml | 4 ++-- src/plugins/luckperms/luckperms.json | 5 +++++ src/plugins/velocity-player-limit-1.0.0.jar | 3 +++ src/plugins/velocity-player-limit/config.yml | 9 +++++++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/plugins/velocity-player-limit-1.0.0.jar create mode 100644 src/plugins/velocity-player-limit/config.yml diff --git a/src/plugins/advancedserverlist/profiles/default.yml b/src/plugins/advancedserverlist/profiles/default.yml index b55f3d7..b6ed8fb 100644 --- a/src/plugins/advancedserverlist/profiles/default.yml +++ b/src/plugins/advancedserverlist/profiles/default.yml @@ -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 \ No newline at end of file + amount: 0 diff --git a/src/plugins/luckperms/luckperms.json b/src/plugins/luckperms/luckperms.json index 7d05905..243b3fb 100644 --- a/src/plugins/luckperms/luckperms.json +++ b/src/plugins/luckperms/luckperms.json @@ -181,6 +181,11 @@ }, "role_moder": { "nodes": [ + { + "type": "permission", + "key": "velocityplayerlimit.bypass", + "value": true + }, { "type": "permission", "key": "imageframe.list.others", diff --git a/src/plugins/velocity-player-limit-1.0.0.jar b/src/plugins/velocity-player-limit-1.0.0.jar new file mode 100644 index 0000000..d4331df --- /dev/null +++ b/src/plugins/velocity-player-limit-1.0.0.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2924c59348346f7d84f7fef1aff4afafb28d6f1a5d671e5218f71d451bdebdf +size 8119 diff --git a/src/plugins/velocity-player-limit/config.yml b/src/plugins/velocity-player-limit/config.yml new file mode 100644 index 0000000..ec7ce54 --- /dev/null +++ b/src/plugins/velocity-player-limit/config.yml @@ -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Сервер полон.'