Add timer command, recraft module & recipes
Introduce a /timer admin command with tab completion (speedhg.admin.timer) and a parseTimeToSeconds utility; add CommandSender.sendMsg extension and language strings. Add RecraftManager module that enforces a configurable recraft-nerf (reduces extra recraft points for alive players) and starts from GameManager; wire the new module into GameManager. Register mushroom-stew shapeless recipes for cocoa and cactus in plugin startup and tidy command registration. Update plugin.yml with permission/command entries and adjust imports as needed.
This commit is contained in:
@@ -20,6 +20,11 @@ anti-runner:
|
||||
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
|
||||
|
||||
recraftNerf:
|
||||
enabled: false
|
||||
beforeFeast: true
|
||||
maxAmount: 64
|
||||
|
||||
discord:
|
||||
enabled: false
|
||||
webhook-url: "DEINE_WEBHOOK_URL_HIER"
|
||||
|
||||
@@ -69,6 +69,11 @@ commands:
|
||||
empty: '<red>There are currently no stats</red>'
|
||||
line: '#<rank> - <green><name></green> - <aqua><score></aqua>'
|
||||
footer: '<gray>====== <gold>Leaderboard</gold> ======</gray>'
|
||||
timer:
|
||||
usage: '<red>Usage: /timer <seconds></red>'
|
||||
positiveNumber: '<red>Invalid time format! Use, for example, 10m, 30s, or 600.</red>'
|
||||
onlyIngame: '<red>Timer can only be set in game.</red>'
|
||||
set: '<green>The game timer has been set to <time>!</green>'
|
||||
|
||||
scoreboard:
|
||||
title: '<gradient:red:gold><bold>SpeedHG</bold></gradient>'
|
||||
|
||||
@@ -10,6 +10,9 @@ permissions:
|
||||
speedhg.bypass:
|
||||
description: 'Allows joining the server while its running'
|
||||
default: false
|
||||
speedhg.admin.timer:
|
||||
description: 'Change the current game time'
|
||||
default: false
|
||||
|
||||
commands:
|
||||
kit:
|
||||
@@ -17,4 +20,8 @@ commands:
|
||||
usage: '/kit <kitName> <playstyle>'
|
||||
leaderboard:
|
||||
description: 'View the top 10 players'
|
||||
usage: '/leaderboard'
|
||||
usage: '/leaderboard'
|
||||
timer:
|
||||
description: 'Change the current game time (Admin Command)'
|
||||
usage: '/timer <seconds>'
|
||||
permission: speedhg.admin.timer
|
||||
Reference in New Issue
Block a user