Zrips / CMI

117 stars 99 forks source link

playerKillPlayer EventCommand no longer firing any commands at all #8737

Open TomLewis opened 6 months ago

TomLewis commented 6 months ago

Description of Issue

I have a few Player kill commands run when a player kills another player, titles, resets their back and a sound to verify the kill.

But at some unknown time/point all these commands stopped working, they have been working for years. Now other event commands are working fine, so its just the playerKillPlayer event.

Is it possible another plugin could be taking over this event and blocking other plugins such as CMI being able to listen to this event? Because whats weird, is randomly worked once or twice ealier in the day and without any changes at all, will not fire a single one.

I do use the premium PvP Manager plugin that could also be listening to PvP kill events.

No errros in console

playerKillPlayer:
  # [sourceName] to insert source player name
  # [sourceDisplayName] to insert player display name
  # [sourceLvl] to insert player level
  # [sourceExp] to insert player total exp
  # [sourceHp] to insert player health
  # [sourceMaxHp] to insert player max health
  # [sourceHunger] to insert player hunger level
  # [sourceGameMode] to insert player gamemode
  # Keep in mind that in case you are using specialized commands, then Commands section will be performed on player who died and SourceCommands will be performed on player who killed
  Enabled: true
  Commands:
  - cmi titlemsg [sourceName] &4&l⚔ &4Killed &c[playerName]\n&7%otherplayer_iteminhand_[sourceName]%
    -in:20 -out:20 -keep:80
  - cmi sound chime [sourceName]
  - cmi titlemsg [playerName] &c[sourceName]&7 Killed you!\n%otherplayer_iteminhand_[sourceName]%
    -in:20 -out:20 -keep:100
  - cmi resetback [playerName] -death
  - ho [sourceName] killed [playerName]
  SourceCommands: []

Version Information

[15:11:09] [Server thread/INFO]: --------------------------------------------------
[15:11:09] [Server thread/INFO]: CMI: 9.7.2.9 Velocity CMIB  MySQL
[15:11:09] [Server thread/INFO]: CMILib: 1.4.7.9
[15:11:09] [Server thread/INFO]: Server: Purpur(1632) 1.18.2-R0.1-SNAPSHOT-
[15:11:09] [Server thread/INFO]: CMI economy: Disabled Vault: 1.7.3-b131 CMI Chat: Disabled
[15:11:09] [Server thread/INFO]: Modules -> 37 enabled 22 disabled: spawnerProximity, hpBossBar, customMessages, mirror, tablist, moneyCheque, skin, anvilRenameColor, noTarget, elytraBoost, dynamicSigns, playerChatTag, elytraLaunch, flightCharge, disabledEnchants, worldLimits, chatBubble, votifier, shulkerBackpack, attachedCommands, namePlates, homeInteractions
[15:11:09] [Server thread/INFO]: --------------------------------------------------

Errors

No response

Relevant Config Sections

No response

Relevant Plugins

No response

Agreements

TomLewis commented 6 months ago

Update; I moved all commands to PvPManager kill commands and it does fire the commands now, so ive figured out this is the issue and you cant have 2 plugins listening to the same event! Oof, which is a big shame, as the placeholder from CMI is MUCH better for showing the killers item formatted correctly %otherplayer_iteminhand_[sourceName]%

So the event is being taken over by PvPmanager and ignored/sometimes fires from CMI, is there a resolve for this to allow both to work or not?