Sueta
AT

AtomicCombat

2.0

Very simple plugin for combat control.

·Plugin

Dependencies

Optional Dependencies

Desc
This plugin is designed for duels so that players do not violate the principle of the combat. The plugin has a cooldown on the use of items, and much more that can be customized.

API

config.yml

# EN * Combat duration.
# RU * Длительность боя.
duration: 30

# EN * Should save the combat when the plugin is disabling? (Useful when the plugin is reloading)
# RU * Сохранить ли поединок когда плагин выключается? (Полезен когда сервер экстренно выключается)
save-pvp: true

# EN * Allowed commands in combat time.
# RU * Разрешенные команды во время поединка.
allowed-commands:
- 'hub'

power-up-punishes:
creative:
# EN * Whether to allow damage to the player, but not to give a combat mode.
# RU * Разрешить ли урон по игроку, но не давать режим боя.
accept-damage: false
# EN * Disable creative mode?
# RU * Выключить ли креатив?
disable-power-up: false
actions:
- '[sound] ENTITY_VILLAGER_NO 1.0 1.0'
- "[message] &cYou can't start combat in creative mode!"
#- '[console] minecraft:gamemode 0 {player}'
vanish:
# EN * Whether to allow damage to the player, but not to give a combat mode.
# RU * Разрешить ли урон по игроку, но не давать режим боя.
accept-damage: false
# EN * Disable vanish mode?
# RU * Выключить ли ваниш?
disable-power-up: false
actions:
- '[sound] ENTITY_VILLAGER_NO 1.0 1.0'
- "[message] &cYou can't start combat in vanish mode!"
fly:
# EN * Whether to allow damage to the player, but not to give a combat mode.
# RU * Разрешить ли урон по игроку, но не давать режим боя.
accept-damage: false
# EN * Disable fly mode?
# RU * Выключить ли флай?
disable-power-up: false
actions:
- '[sound] ENTITY_VILLAGER_NO 1.0 1.0'
- "[message] &cYou can't start combat in fly mode!"
god:
# EN * Whether to allow damage to the player, but not to give a combat mode.
# RU * Разрешить ли урон по игроку, но не давать режим боя.
accept-damage: false
# EN * Disable god mode?
# RU * Выключить ли год?
disable-power-up: false
actions:
- '[sound] ENTITY_VILLAGER_NO 1.0 1.0'
- "[message] &cYou can't start combat in god mode!"

special-action:
type: '<='
value: 5
actions:
- '[sound] BLOCK_NOTE_BLOCK_PLING 1.0 1.0'
- '[message] &c{time}...'

actions:
start:
- "[message] &8[&c&nPvP&8] &fStarted combat with &c{enemy}&f. Don't leave from server before end the combat mode, else you will &c&ndie&f!"
- '[sound] ENTITY_GENERIC_EXPLODE 1.0 1.0'
quit:
- '[console] minecraft:kill {player}'
- '[broadcast] &cA player {player} quited in combat mode and was &4&npunished&f.'
- '[sound] ENTITY_PLAYER_LEVELUP 0.5 1.0'
end:
- '[message] &8[&c&nPvP&8] &fCombat mode &a&nfinished&f, now you may &7quit &ffrom the server.'
- '[sound] ENTITY_PLAYER_LEVELUP 1 1'

pvp-information:
bossbar:
enable: true
text: '&8- &c{time} &fsec to end &8-'
# Available styles: SOLID, SEGMENTED_6,
# SEGMENTED_10, SEGMENTED_12, SEGMENTED_20.
style: SOLID
# Available colors: BLUE, GREEN, PINK,
# PURPLE, RED, WHITE, YELLOW.
color: RED
#actionbar: '&cДо окончании PvP осталось {time} сек.'

item-cooldown:
actions:
- '[sound] ENTITY_VILLAGER_NO 0.7 1'
- '[title] &c❌;&7The item will &funlock &7after &c5 seconds&f!'
items:
GOLDEN_APPLE: 5
ENCHANTED_GOLDEN_APPLE: 60
ENDER_PEARL: 5
CHORUS_FRUIT: 15

messages:
blocked-command: "&8[&c&nPvP&8] &fThis command &c&ndon't&f available in combat mode!"

Similar projects

Plugin →