Filled combatChat

Discussion in 'Plugin Requests' started by madtomic, Feb 18, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    madtomic

    Minecraft version: 1.12.2

    Suggested name: combatChat

    What I want: I like to request a simple plugin that would send a message when damage are dealt or received by players.

    When using this with Citizens. It should not send any message when attacking NPCs that aren't target-able. Both Villager and Player types. Blacklist needed?

    This plugin should check if the target is an online player or a target-able entity then message would be send. Otherwise, if target is an offline player or Citizens NPC player type for example, no message would be send.

    If player dealt critical hits, a criticalHit or criticalShot would be sent instead.

    ***If any message is set hitMessage: '' - No message would be send to player.
    ***Shot damage message for projectile attacks. bow shots arrows and snowballs

    Code:
    config.yml
    Messages:
      hit: '&cYou hit %defender% for %dc%%damage% damages.'
      criticalHit: '&cCritical! You hit %defender% for %dc%%damage% damages.'
      shot: '&cYou shot %defender% for %dc%%damage% damages.'
      criticalShot: '&cCritical! You shot %defender% for %dc%%damage% damages.'
      defend: '&4%attacker% hits you for %dc%%damage% damages.'
    
    #This will filter out damage messages dealt on these Citizens Types.
    entityBlacklisted:
      - Player (NPC - Offline Players)
      - Villager (NPC)
    >If not needed, can remove this part.
    
    damageColor:
      '1': '&a'
      '3': '&e'
      '5': '&c'
      '7': '&4'
      '10': '&5'
    %attacker% - Attacker
    %defender% - Defender
    %dc% - The damage color changes color based on how much damage is dealt/received
    %damage% - Damages

    Commands:
    /combatchat

    Using this command would toggle the feature on/off

    Permission:

    combatchat.command

    Thank you for reading.
    madtomic
     
    Last edited: Feb 28, 2019
  2. Offline

    madtomic

    Will anyone be able to do this?
     
  3. Offline

    KarimAKL

    @madtomic If no one else can do this i can try when i'm done with some other projects, might take a little while though.
    Also i say "try" because i haven't worked with Citizens before.
     
  4. Offline

    Dai_Kunai

    Does hitting a Citizen actually run the events (PlayerInteractEntity Event or whatever)? I'm not sure if the extra differentiating is necessary.
     
  5. Offline

    asteroidsteam

    @madtomic I will work on this, Will contact you when it is done.
     
  6. Offline

    madtomic

    @Eccentric_Gamer

    It does so this plugin would need to check if the target is an online player or a targetable entity. Otherwise, it would send false damage messages.

    @asteroidsteam

    Great to hear, can you also add a damage message for projectile attacks.

    shotPlayerMessage: '&cYou shot %defender% for %dc%%damage% damages.'
     
  7. Offline

    madtomic

    this request been filled.
     
    Last edited: Mar 3, 2019
Thread Status:
Not open for further replies.

Share This Page