Remove legacy modules, add language & scoreboard

Large refactor removing many legacy subsystems (abilities, kit system, database repos, recraft, world manager, extensive config classes, lunar/luckperms integrations and various listeners/commands). Introduces a lightweight LanguageManager, AntiRunningManager, ScoreboardManager, ConnectListener and a SoupListener; simplifies the main SpeedHG plugin to initialize these components and register the connection listener. Build changes: update Gradle wrapper to 8.10, remove paperweight and several external dependencies, add fr.mrmicky:fastboard and simplify shadowJar/build task configuration. Adds default language resource (languages/en_US.yml) and updates plugin/config resources. Purpose: simplify and decouple the plugin, reduce dependency surface and prepare for a leaner, modular rewrite.
This commit is contained in:
TDSTOS
2026-03-25 00:55:20 +01:00
parent b4db8dbfeb
commit e411879b20
57 changed files with 1172 additions and 5165 deletions

View File

@@ -1,94 +1,21 @@
#
# |-----| |-----| |-----| |-----| |---\ | | |-----|
# | | | | | | \ | | |
# |-----| |-----| |---| |---| | | |-----| | |--|
# | | | | | / | | | |
# |-----| | |-----| |-----| |---/ | | |-----|
# v1.0.0 by TDSTOS
# SpeedHG v1.0.0 by McScrims-Network
# https://github.com/McScrims-Network
#
# Organization: McScrims-Network (https://github.com/McScrims-Network/)
# Owner: TDSTOS (https://github.com/TDSTOS)
# Contributors: stavgun (https://github.com/stavgun)
#
debug: false
language: 'en_US'
restart_time: 3
network:
enabled: false
serverId: 'server-1'
type: REDIS
redis:
host: 'localhost'
port: 6379
user: 'default'
password: ''
database: 0
timeout: 5000
poolSize: 10
cooldown: 30
needed_hits: 15
world:
name: 'Default'
border:
size: 1000.0
warning_distance: 5.0
damage: 5.0
decrease: 100.0
game:
name: 'SpeedHG'
variantName: 'Solo - Single Kit'
min-players: 2
lobby-time: 60
invincibility-time: 60
border-start: 300.0
border-end: 20.0
border-shrink-time: 600 # 10 Minuten
minimumPlayers: 8
competitiveGame: false
competitiveCommands:
- 'server'
- 'servers'
- 'hub'
- 'lobby'
- 'l'
playerStates:
waiting:
scoreboard: 'Waiting - %time%'
duration: "FIXED:-1"
preStart:
scoreboard: 'Waiting - %time%'
duration: "FIXED:300"
immunity:
scoreboard: 'Playing - %time%'
duration: "FIXED:90"
battle:
scoreboard: 'Playing - %time%'
duration: "INCREASING"
feast:
scoreboard: 'Playing - %time%'
duration: "FIXED:300"
deathmatch:
scoreboard: 'Playing - %time%'
duration: "INCREASING"
end:
scoreboard: 'Ending - %time%'
duration: "FIXED:60"
recraftNerf:
enabled: false
maxAmount: 64
beforeState: 'FEAST'
teams:
enabled: false
maximumPlayers: 2
blockedKits: []
blockedPerks: []
perks:
maximumAmount: 2
anti-runner:
enabled: true
check-radius: 20.0
warn-time: 15
punish-time: 25
# Einstellungen für die Cave-Erkennung
ignore-vertical-distance: 15.0 # Wenn Höhenunterschied > 15, Timer ignorieren
ignore-cave-surface-mix: true # Ignorieren, wenn einer Sonne hat und der andere nicht

View File

@@ -1,13 +0,0 @@
{
"connectionString": "",
"host": "localhost",
"port": 27017,
"database": "minecraft",
"username": "root",
"password": "pass",
"authDatabase": "admin",
"ssl": false,
"replicaSet": "",
"connectionTimeout": 30,
"poolSize": 10
}

View File

@@ -1,60 +0,0 @@
anchor:
offensive extra damage: 1.0
armorer:
kills until new armor: 2.0
blackpanther:
enderpearl hit damage: 3.0
extra damage on top: 0.5
default hit radius: 3.0
explosion multiplier: 3.0
gladiator:
cage radius: 23.0
cage height: 10.0
wither effect after x seconds: 180.0
goblin:
bunker radius: 10.0
bunker time until disappear: 15.0
knockback and pullin radius: 7.0
kit steal time: 60.0
soup steal chance: 20.0
icemage:
chance for slowness: 2.0
poseidon:
default hit radius: 3.0
lightning hit damage: 4.0
rattlesnake:
maximum jump distance: 10.0
speed duration: 10.0
poison duration: 8.0
maximum negative effect duration: 16.0
default jump radius: 10.0
tesla:
disable push at height: 50.0
default thunder radius: 5.0
push strength: 1.0
fire tick duration: 5.0
time until thunder disables: 7.0
thunder damage: 1.5
voodoo:
default curse radius: 3.0
maximum effect duration: 15.0
clicked players minimum health: 10.0
voodoo hold duration: 5.0
chance for wither effect: 5.0
perks:
knockback:
knockback strength: 1.5
pullin:
pullin strength: 0.5
radiusincrease:
new radius: 5.0

View File

@@ -0,0 +1,34 @@
#
# SpeedHG v1.0.0 by McScrims-Network
# https://github.com/McScrims-Network
#
default:
prefix: '<gradient:dark_green:gold>McScrims</gradient> <dark_gray>|</dark_gray> <reset>'
game:
join: '<prefix><green><name></green> <gray>has joined the game.</gray>'
quit: '<prefix><red><name></red> <gray>has quit the game.</gray>'
player:
welcome: 'Welcome to <gradient:red:gold>SpeedHG</gradient>!'
scoreboard:
title: '<gradient:gold:yellow><bold>SpeedHG</bold></gradient>'
lobby:
- "<gray><st> "
- "Spieler: <green><online>/<max>"
- "Kit: <yellow><kit>"
- ""
- "<gray>Waiting for start..."
- ""
- "<yellow>play.mcscrims.club"
ingame:
- "<gray><st> "
- "Time: <green><timer>"
- "Players: <red><alive>"
- "Kills: <green><kills>"
- ""
- "Border: <red><border>"
- ""
- "<yellow>play.mcscrims.club"

View File

@@ -1,23 +0,0 @@
#
# |-----| |-----| |-----| |-----| |---\ | | |-----|
# | | | | | | \ | | |
# |-----| |-----| |---| |---| | | |-----| | |--|
# | | | | | / | | | |
# |-----| | |-----| |-----| |---/ | | |-----|
# v1.0.0 by TDSTOS
#
# Organization: McScrims-Network (https://github.com/McScrims-Network/)
# Owner: TDSTOS (https://github.com/TDSTOS)
# Contributors: stavgun (https://github.com/stavgun)
#
default:
prefix: '<gradient:dark_green:green>McScrims</gradient> <dark_gray>┃</dark_gray><reset>'
no_permission: '%prefix% <red>You don''t have permission to do that!</red>'
player_not_found: '%prefix% <red>This player could not be found!</red>'
command_cooldown: '%prefix% <red>Please wait {time} seconds before using this command again!</red>'
commands:
unknown: |-
%prefix% <red>Unknown subcommand: {unknown}</red>
%prefix% <gray>Use /{command} for an overview.</gray>

View File

@@ -6,9 +6,4 @@ api-version: '1.21'
depend:
- "WorldEdit"
- "Apollo-Bukkit"
- "McScrims-CoreSystem"
commands:
kits:
description: Open the kit selection menu
usage: /kits
- "McScrims-CoreSystem"