Skip to content

Game-Of-Arkadia/Plugin-SafeCombat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Combat logo

Avoiding anti-gambling in PvP

Languages available :

  • English (default) πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ
  • French πŸ‡«πŸ‡·
  • Custom language into custom file

Features

βš”οΈ Anti-logout
A player who disconnects in combat without reconnecting after a certain time will be killed, and his stuff dropped to the ground.

  • Time remaining visible in an animated boss bar.

πŸ”™ Anti-safe zone back
Compatibility with WorldGuard thanks to a custom flag to prevent players in combat from entering into areas.

  • A client-only force field is generated to prevent the player from advancing.
  • Nor can he use ender pearls to teleport.

See demonstration video.

πŸ›‘οΈ Protection
A protected player cannot attack or be attacked.

  • Automatic protection for new players on your server.
  • Custom protection for a player (administrator command).
  • Time remaining visible in an animated boss bar.
  • A player can refuse protection with a command (irreversible).

Commands

  • /protection
    • disable
      Disable your protection
    • remove
      Unprotect a player
    • add
      Protect a player

Permissions

  • safecombat.protection
    Add and remove player's protection

API

You can use JitPack.io to implement SafeCombat as a dependency in your project

Events

Events aren't cancellable yet.

PlayerStartsFightingEvent

  • Called when the player enters in combat mode.
  • Called twice : for the attacker and the attacked.
  • Custom getters :
    • getPlayer() Get the player concerned.
    • getType() Get if the player is the attacker or the attacked.

PlayerStopsFightingEvent

  • Called when the player leaves the combat mode.
  • The player can be the attacker or the attacked.
  • Custom getter :
    • getPlayer() Get the player concerned.

Soft dependencies (= optional)

  • WorldGuard