/PreventStabby

Stop people from getting stabbed

Primary LanguageJava

PreventStabby ⚔

Use Issues section to report bugs or submit suggestions.

Commands

Permission: preventstabby.command (given by default to everyone) :
  • /pvp help- displays help message

Permission: preventstabby.command.toggle (given by default to everyone) :

  • /pvp toggle - toggles PvP
  • /pvp on - enables PvP (aliases: enable)
  • /pvp off - disables PvP (aliases: disable)

Permission: preventstabby.command.toggle.others (given by default to ops) :

  • /pvp toggle [player] - toggles other player's PvP
  • /pvp on [player] - enables other player's PvP (aliases: enable)
  • /pvp off [player] - disables other player's PvP (aliases: disable)

Features

Player who disables PvP cannot get hurt by any player induced damage. They also can't deal any damage to other players. This includes basic attacks, projectiles, splash potions, lingering potions and lightning strikes from channeling trident enchant. Additionally lightning strikes from channeling cannot spawn fire under players, who have pvp disabled and it's impossible to use fishing rod on players who have pvp disabled.

There is also a feature that disallows pouring lava or using flint and steel nearby players with disabled pvp. You can either disable it in config or set its radius.

All the protections are extended to tameable entities (pets) that set player's uuid as their owner on tame.

Pets will not attack players with pvp off or if their owner has pvp off.