
FoPvPToggle
Player PvP toggles with world and region rule controls.
Автор: Carrotio2312обновлён 30 окт. 2026 г.
Механики игрыУтилиты
Описание

FoPvPToggle gives players a clear /pvp switch while keeping server owners in control of where combat must stay enabled. Player choices are saved, blocked combat is handled across common direct and indirect damage paths, and admins can manage the important settings from an in-game editor.
Features
- Let players use
/pvp,/pvptoggle, or/fopvptoggleto turn personal PvP on, off, or check status. - Block PvP both ways when either player has PvP disabled, including traced projectiles, TNT, end crystals, beds, and respawn-anchor explosions.
- Save each player's PvP state in
userdata.db, so toggles survive restarts. - Force PvP on during events with a global override that prevents players from disabling combat.
- Keep selected worlds outside the toggle system, where
/pvpis unavailable and PvP stays enabled. - Use the admin editor to manage default PvP, event override, PvE protection, FoBoss protection, disabled worlds, and forced WorldGuard regions.


Optional Integrations
WorldGuard- browse regions in the editor and force PvP on inside selected regions.FoBoss- FoBoss can protect PvP-disabled players from boss targeting and damage when the FoBoss protection setting is enabled.
Commands
/pvp [on|off|status]- Toggle or view your PvP state./fopvptoggle [on|off|status]- Main command alias for the same player toggle./fopvptoggleadmin version- Show plugin and update status./fopvptoggleadmin reload- Reload config, messages, and GUI files./fopvptoggleadmin editor- Open the in-game admin editor.
Permissions
fopvptoggle.pvptoggle- Use the player PvP toggle command.fopvptoggle.admin- Use admin version, reload, and editor tools.
Placeholders
%fopvptoggle_status%- Shows the status for that player if pvp is enabled or disabled.
Developer API
Compile against the matching jar (provided in Maven, compileOnly in Gradle); install it locally if needed. Declare FoPvPToggle in your plugin metadata (softdepend for an optional integration).
<dependency>
<groupId>me.foesio</groupId>
<artifactId>FoPvPToggle</artifactId>
<version>1.9</version>
<scope>provided</scope>
</dependency>
import me.foesio.foPvPToggle.api.PvpToggleApi;
import me.foesio.foPvPToggle.api.event.PlayerPvpChangeRequestEvent;
PvpToggleApi api = Bukkit.getServicesManager().load(PvpToggleApi.class);
if (api != null) api.isPvpEnabled(player);
@EventHandler
public void onPlayerPvpChangeRequestEvent(PlayerPvpChangeRequestEvent event) {
Bukkit.getLogger().info(event.getClass().getSimpleName());
}
API methods (overloads grouped):
PvpToggleApi:isPvpEnabled,isPvpAllowedByToggle,isPveProtected,storedPreference,requestPvpChange,forcePvp,releasePvpForce.
Other API types: PvpChangeCause, PvpChangeResult.
Events: PlayerPvpChangeRequestEvent, PlayerPvpPreferenceChangedEvent.
Browse API and event source for signatures and event details.
Галерея
Последние версии
Все версии →release
FoPvPToggle 1.8
1.830 окт. 2026 г.13Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2, 26.3bukkit, paper, purpur, spigot
Что нового
Added APIs & Events for other Plugin Devs to hook into!
release
FoPvPToggle 1.7
1.718 окт. 2026 г.37Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2, 26.3bukkit, paper, purpur, spigot
Что нового
- Added 26.3 Support
release
FoPvPToggle 1.6
1.628 сент. 2026 г.34Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
- Added placeholder `%fopvptoggle_status%`
release
FoPvPToggle 1.5
1.58 сент. 2026 г.18Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
- Improved public GUI presentation configuration and reload handling where applicable.
- Fixed viewer-aware sprite and native-dialog compatibility fallbacks for unsupported clients.
- Preserved existing server-owner GUI values during configuration updates.
release
FoPvPToggle 1.4
1.428 авг. 2026 г.17Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
- Added configurable sound feedback in `sounds.yml`.
release
FoPvPToggle 1.3
1.310 июл. 2026 г.49Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
- Added admin controls for forced PvP regions, disabled worlds, PvE protection, FoBoss protection, and event override behavior.
- Improved PvP protection coverage for projectiles, TNT, end crystals, beds, respawn anchors, and forced-PvP areas.
- Added bStats metrics and reduced repeated combat-message overhead during blocked damage.
release
FoPvPToggle 1.2
1.22 июл. 2026 г.25Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
- Fixed some console spamm.
release
FoPvPToggle 1.1
1.119 июн. 2026 г.22Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Что нового
- Added 26.2.x support.
release
1.0
1.013 июн. 2026 г.16Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2bukkit, paper, purpur, spigot
Что нового
- Initial Modrinth release.


