▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/AstralPracOldCombat
AstralPracOldCombat

AstralPracOldCombat

1.8 PvP mode enforcement for AstralPractice Duels via OldCombatMechanics

Оцените первым
218
0

AstralPracOldCombat

1.8 PvP mode enforcement for AstralPractice via OldCombatMechanics

» About

This addon bridges AstralPractice and OldCombatMechanics. Maps arena ladders to OCM combat modes (old / new) and applies module overrides per-player at match start. No world restriction headaches, no manual /ocm mode commands — players get the right combat mode automatically.

» Dependencies

» Installation

  1. Install AstralPractice and OldCombatMechanics
  2. Drop AstralPracOldCombat-*.jar into your plugins/ folder
  3. Restart the server
  4. Edit plugins/AstralPracOldCombat/config.yml to map ladders to modes

The plugin disables itself on startup if either the AstralPractice or OldCombatMechanics API is missing.

» Building

./gradlew build

The compiled plugin jar will be generated in build/libs/AstralPracOldCombat-*.jar.

» Configuration

config.yml

_version: 1

# Which ladders use which mode.
# Ladder names are matched case-insensitively (e.g. Nodebuff, nodebuff).
ladder-modes:
  BedWars: "old"
  SkyWars: "old"
  Bridges: "old"
  MLGRush: "old"
  TNTSumo: "old"
  BattleRush: "old"
  Boxing: "old"
  BuildUHC: "old"
  Debuff: "old"
  Nodebuff: "old"
  PearlFight: "old"
  Soup: "old"
  Sumo: "old"
  SG: "old"
  Fireball: "old"
  Spleef: "old"

# Modules to enable for each mode (must match OCM module names).
# Module overrides are applied to players when match begins.
modules:
  old:
    - "attack-frequency"
    - "old-armour-durability"
    - "old-fishing-knockback"
    - "fishing-rod-velocity"
    - "projectile-knockback"
    - "disable-crafting"
    - "old-brewing-stand"
    - "disable-enderpearl-cooldown"
    - "disable-attack-cooldown"
    - "disable-sword-sweep"
    - "old-tool-damage"
    - "sword-blocking"
    - "shield-damage-reduction"
    - "old-golden-apples"
    - "old-player-knockback"
    - "old-player-regen"
    - "old-armour-strength"
    - "old-potion-effects"
    - "old-critical-hits"
    - "disable-attack-sounds"
  new: []

Ladder names are matched case-insensitively, so nodebuff, Nodebuff and NODEBUFF are equivalent. The mode key is not case-insensitive — old and new must match the keys under modules.

An example-ocm-config.yml is generated next to config.yml with recommended OldCombatMechanics settings for the modules listed above.

» How it works

  • Listens to MatchStartEvent and MatchRoundStartEvent from AstralPractice
  • Resolves the ladder name from the match at runtime
  • Looks up the configured mode (old / new) for that ladder
  • Applies setModuleOverridesForPlayer() with FORCE_ENABLED on every module listed under that mode — bypasses OCM world-based modeset restrictions
  • Clears all overrides on MatchEndEvent
  • Listens to PlayerStateChangeEvent to clear overrides whenever a player leaves MATCH state
  • Clears overrides on /leave and PlayerQuitEvent

» Compatibility

  • Compatible with Minecraft versions supported by both AstralPractice and OldCombatMechanics.

Enjoy AstralPracOldCombat!

Партнёрский материал

Сервер для плагина AstralPracOldCombat - как у профи

Плагин AstralPracOldCombat создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином AstralPracOldCombat для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки


Создатели

Детали

Лицензия:
Опубликован:3 месяца назад
Обновлён:1 неделю назад
Главная