"PvP Sword Lobby" is a Minecraft server plugin that facilitates the management of combat mode within a lobby setting. With this plugin, players can engage the combat mode by equipping a predetermined sword as defined in the
configuration. Upon activation of the combat mode, players can engage in battles amongst themselves. This plugin serves as an optimal solution for lobby servers seeking to introduce an extra layer of competition and entertainment.
Code (YAML):
# Settings for PvP mode settings-pvp: # Countdown time in seconds before enabling PvP time: 5
# Item settings settings-item: # The type of item that the player must hold to activate PvP sword:
type: DIAMOND_SWORD
amount: 1
enchantments:
DAMAGE_ALL: 2
# Armor configuration for the player after PvP is activated helmet:
type: DIAMOND_HELMET
amount: 1
enchantments:
PROTECTION_ENVIRONMENTAL: 2
chestplate:
type: DIAMOND_CHESTPLATE
amount: 1
enchantments:
PROTECTION_ENVIRONMENTAL: 2
leggings:
amount: 1
type: DIAMOND_LEGGINGS
enchantments:
PROTECTION_ENVIRONMENTAL: 2
boots:
amount: 1
type: DIAMOND_BOOTS
enchantments:
PROTECTION_ENVIRONMENTAL: 2
# Message configuration settings-title:
enable-pvp: # Message displayed when PvP is enabled title: "&4&lPVP" subtitle: "&aON" disable-pvp: # Message displayed when PvP is disabled title: "&4&lPVP" subtitle: "&cOFF" wait: # Message displayed during the countdown title: "&7Countdown" subtitle: "&8%time%" message: # Message shown when a player attempts to use a command during combat disable-command: "&cYou are not allowed to use commands during the fight!"
Flexible Combat Control: The plugin enables dynamic management of the PvP mode in the lobby. Players can activate this mode by selecting the sword set in the configuration.
Customizable Countdown: The countdown duration before combat begins is configurable. In the configuration file, you can set how many seconds the countdown should last before players can start fighting.
Fight Synchronization: The plugin ensures fight synchronization among players who have activated the PvP mode. This ensures all participants are in the same combat cycle.
Anti-Abuse Safeguards: To prevent abuse, the plugin checks whether all participants in the fight have activated the PvP mode. Combat is initiated only when both players are ready.
Blocked Commands During Combat: To ensure fairness and avoid situations where players might attempt to escape to other servers, the plugin prevents the execution of commands during combat.
Customized Messages: There's an option to customize messages and announcements displayed to players during the activation of the combat mode and throughout the fight.
Sound Effects: The plugin introduces additional auditory experiences. Sound has been added to scrolling through the hotbar, and a sound effect accompanies the countdown before combat.