Pages » Qrpg » Modules » Combatlog


Commands

Command Arguments Description Player only Permission(s)
/combatlog log - Displays latest combat logs. Yes quantumrpg.combatlog.cmd.log

Permissions

Permission Description
quantumrpg.combatlog Full access to CombatLog module.
quantumrpg.combatlog.cmd Access to all CombatLog commands.

Settings.yml

# Custom module command aliases.
# You can provide multiple aliases by separating them with a comma.
command-aliases: arrows,rpgarrows

general:
  # Logging settings.
  logging:
    # When true, saves latest X combat logs and provides an ability to view them by a command.
    enabled: true
    # Max. amount of stored logs per a player. New logs will override previous ones.
    max-amount: 5
    # Log formatting.
    format:
      # Time format.
      time: 'HH:mm'
      # Full message format.
      # Placeholders:
      # - %time% - Log time.
      # - %message% - Combat message.
      # - %damage% - Button with damage details.
      # - %defense% - Button with defense details.
      # - %details% - Button with other details.
      # - %weapon% - Button that shows the weapon item.
      text: '&6[%time%] &r%message% %damage% %defense% %details% %weapon%'
      buttons:
        # Format for damage button.
        damage:
          # Button name.
          name: '&c&l[Damage]'
          # Text displayed on cursor hover.
          # Placeholders:
          # - %damage_type% - Damage type name.
          # - %amount% - Final amount of that damage type.
          # - %raw% - Raw amount of that damage type.
          # - %percent% - Amount of dealt damage from the raw damage.
          # - %attack_power% - Attack power.
          # - %amount_total% - Final damage amount from all damage types.
          # - %raw_total% - Raw damage amount from all damage types.
          # - %percent_total% - Dealt damage amount from all raw damage.
          text:
          - '&6▸ &eAttack Power: &6%attack_power%%'
          - '&7'
          - '&6▸ &e%damage_type%: &6%amount% &7of &6%raw% &c(%percent%%)'
          - '&7'
          - '&e&lTotal: &6%amount_total% &7of &6%raw_total% &c(%percent_total%%)'
        defense:
          name: '&b&l[Defense]'
          # Placeholders:
          # - %defense_type% - Defense type name.
          # - %amount% - Amount of defended damage attached to that defense type.
          # - %damage% - Raw amount of damage attached to that defense type.
          # - %percent% - Amount of defended damage from the raw damage.
          # - %amount_total% - Final amount of defended damage.
          # - %raw_total% - Raw damage amount from all damage types.
          # - %percent_total% - Defended damage amount from all raw damage.
          text:
          - '&9&l&nDefended Damage'
          - '&7'
          - '&3▸ &b%defense_type%: &f%amount% &7of &f%damage% &9(%percent%%)'
          - '&7'
          - '&b&lTotal: &f%amount_total% &7of &f%damage_total% &9(%percent_total%%)'
        details:
          name: '&e&l[Details]'
          # Placeholders:
          # - %direct_modifier% - Direct Damage modifier.
          # - %critical_modifier% - Critical Damage modifier.
          # - %block_modifier% - Block Damage modifier.
          # - %penetrate_modifier% - Penetration Damage modifier.
          # - %pvpe_modifier% - PvP/PvE Damage modifier.
          # - %enchantment_protection_factor% - Enchantment Protection Factor.
          text:
          - '&2▸ &aDirect Modifier: &2x%direct_modifier%'
          - '&2▸ &aCritical Modifier: &2x%critical_modifier%'
          - '&2▸ &aBlock Modifier: &2x%block_modifier%'
          - '&2▸ &aDefense Penetration: &2x%penetrate_modifier%'
          - '&2▸ &aPvE/PvP Modifier: &2x%pvpe_modifier%'
          - '&2▸ &aEnchant Protection Factor: &2x%enchantment_protection_factor%'
        weapon:
          name: '&d&l[Weapon]'

# Combat log messages.
messages:
  # When true, displays no message for zero damage. (negative damage is still displayed)
  ignore-zero-damage: false
  types:
    # Message displayed for regular attacks.
    NORMAL:
      # Enable/Disable this message type.
      enabled: true
      # Messages format.
      messages:
        # Placeholders:
        # - %damage% - Amount of dealt damage.
        # - %entity% - Name of victim/damager.
        damager: '&e*** You dealt &7%damage% &edamage to &7%entity%&e. ***'
        victim: '&c*** &7%entity% &cdealt &7%damage% &cdamage to you. ***'
        # Adds additional line to the damage indicator.
        # Leave empty to disable.
        indicator: ''
      # Name of the Sound, that will be played in combat.
      sound: NONE
    CRITICAL:
      enabled: true
      messages:
        damager: '&e*** &lCritical! &eYou dealt &7%damage% &edamage to &7%entity%&e. ***'
        victim: '&d*** &lCritical! &7%entity% &ddealt &7%damage% &ddamage to you. ***'
        indicator: '&8[&c&lCritical!&8]'
      sound: ENTITY_GENERIC_EXPLODE
    DODGE:
      enabled: true
      messages:
        damager: '&6*** &7%entity% &6has dodged your attack! ***'
        victim: '&6*** You has dodged &7%entity% &6attack! ***'
        indicator: '&8[&b&lDodge!&8]'
      sound: BLOCK_SNOW_FALL
    BLOCK:
      enabled: true
      messages:
        # Placeholders:
        # - %block% - Percent amount of blocked damage.
        damager: '&6*** &7%entity% &6has blocked &7%block%% &6of your attack! Total damage: &7%damage% &6***'
        victim: '&6*** You blocked &7%block%% &6of &7%entity% &6attack! Total damage: &7%damage% &6***'
        indicator: '&8[&e&lBlocked!&8]'
      sound: BLOCK_ANVIL_PLACE

# Combat indicators displayed above the entity head.
# HolographicDisplays required!
indicators:
  # Enable/Disable indicators.
  enabled: true
  format:
    # Indicator lines order.
    # Placeholders:
    # - %critical% - Displays message from Critical message indicator setting.
    # - %block% - Displays message from Block message indicator setting.
    # - %dodge% - Displays message from Dodge message indicator setting.
    # - %damage% - Displays all damage types with damage values.
    order:
    - '%critical%'
    - '%block%'
    - '%dodge%'
    - '%damage%'
    # List of Damage Types with custom indicator format.
    # Placeholders:
    # - %damage% Damage value.
    damage-types:
      physical: '&c-%damage%❤'
      magical: '&d-%damage%'
      fire: '&4-%damage%☀'
      poison: '&a-%damage%☣'
      wind: '&7-%damage%'
      water: '&9-%damage%'
    # List of Regain Reasons with custom indicator format.
    # Every time when entity's health is restored, regen indicator will appear.
    # You can put default as a reason name to display indicator for all unlisted reasons.
    # Placeholders:
    # - %hp% Amount of restored health.
    regen-sources:
      default: '&a+%hp%❤'
18+