How does it work?
When a player gets hit, they enter PvP mode. If they leave the server during this mode, their inventory will be dropped on the ground
Configuration
Code (Text):
# Plugin author: https://t.me/tik_boost
# Translations: https://github.com/katze225/PowerAntiRelog/tree/main/translations
settings:
# Duration of PvP mode
time: 25
bossbar:
bar: "&fPvP §x§E§3§2§6§3§6Mode &f- §x§E§3§2§6§3§6{time} sec"
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarColor.html
color: RED
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarStyle.html
style: SOLID
leave:
kill: true
# Set to null or [] to disable
message:
- "&r"
- "§x§E§3§2§6§3§6&l| &fPlayer §x§E§3§2§6§3§6{player} &fleft the server during PvP!"
- "&r"
# What gets disabled when PvP starts
disable:
fly: true
speed: false
gamemode: false
godmode: false
elytra: false
invisibility: false
# Actions that will be cancelled during PvP
cancel:
interact: true
command: true
teleport: true
elytra: true
ender-chest: true
# Set to 0 to disable cooldowns
cooldown:
golden-apple: 0
enchanted-golden-apple: 0
ender-pearl: 0
chorus: 0
firework: 0
totem: 0
trident: 0
crossbow: 0
# Works only if cancel.command is set to true
command-whitelist:
- "msg"
- "m"
- "tell"
- "pm"
# Commands executed at the start or end of PvP.
# Placeholders: {player}, [console], [player]. Executed separately for each player.
# Example: "[console] msg {player} Good luck!"
command-start: []
command-end: []
# Worlds where the plugin is disabled
disabled-worlds:
- "duels"
- "duel"
- "exampleWorld"
messages:
start: "§x§E§3§2§6§3§6&l| &fYou have entered PvP!"
end: "§x§E§3§2§6§3§6&l| &aYou are no longer in combat."
block: "§x§E§3§2§6§3§6&l| &cYou can't do that while in PvP!"
cooldown: "§x§E§3§2§6§3§6&l| &fWait §x§E§3§2§6§3§6{time} &fto use this item!"
# Set to "" to disable
cooldown-subtitle: "&fWait §x§E§3§2§6§3§6{time} &fto use this item!"
help:
- "&r"
- "§x§E§3§2§6§3§6PowerAntiRelog:"
- "&7- §x§E§3§2§6§3§6/powerantirelog help &7- &fShow command list"
- "&7- §x§E§3§2§6§3§6/powerantirelog reload &7- &fReload config"
- "&7- §x§E§3§2§6§3§6/powerantirelog test {player} &7- &fForce PvP mode for a player"
- "&r"
reload: "§x§E§3§2§6§3§6&l| &aPlugin config successfully reloaded!"
test: "§x§E§3§2§6§3§6&l| &fYou forced PvP mode for player §x§E§3§2§6§3§6{player}."
not-found: "§x§E§3§2§6§3§6&l| &cPlayer {player} not found."
Permissions:
- powerantirelog.bypass – Player won't receive PvP mode.
- powerantirelog.help – Access to /ar help.
- powerantirelog.reload – Access to /ar reload.
- powerantirelog.test – Access to /ar test {player}.
Commands:
- /ar help – Show command list.
- /ar reload – Reload configuration.
- /ar test {player} – Force PvP mode on a player.
Supported plugins:
- WorldGuard
- CMI
- Essentials