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
@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.
Does hitting a Citizen actually run the events (PlayerInteractEntity Event or whatever)? I'm not sure if the extra differentiating is necessary.
@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.'