Open bobhenl opened 3 years ago
Yeah, I was also fighting with /msg, /r, etc. I can't get custom alias commands to trigger either. Nor the default base commands. With or without the config.yml of cmi set to true for using discordsrv.
I guess the next step is to check the cmi api to see what events are being called by cmi for these things and maybe hook into that instead.
!! Progress..
Below code: /cmi
- Trigger: PlayerCommandPreprocessEvent
Channel: team
Conditions:
- "(#command.split(\"\\s+|$\")[0].equals(\"cmi\"))"
- "(#command.split(\"\\s+|$\")[1].equals(\"msg\"))"
Embed:
Color: "#000001"
Author:
ImageUrl: "{embedavatarurl}"
Name: '**MSG SPY**'
Description: "Message by `{username}`, Location: `/tppos %player_x% %player_y% %player_z% #{world}` \n ```\n/${#command}```"
Description of issue: Hi, I wanna report that DiscordSRV alerts.yml section don't work with CMI commands. when I use trigger: /unknownworld adsa, then it is shown on Discord But when I use /cmi broadcast / /broadcast, /helpop, /gamemode.... anything doesn't work. Even when I enabled integration with DIscordSRV in CMI config, but I don't use CMI to format chat, I'm using chatcontrol, but this shouldn't be issue probably... Other commands from other plugins normally work.
CONFIG SECTION (DELETE IF NOT RELEVANT):
Cmi Version (using
/cmi version
):Server Type (Spigot/Paperspigot/etc): Yutopia
Server Version (using
/ver
):Relevant plugins (Delete if this isn't needed): DiscordSRV, ChatControl Red (but this isn't case probably, cause it's command work)