Brewery

Brewery

101k Downloads

[Question] Events with Alerts

thboehi opened this issue · 4 comments

commented

Hi.

Sorry to create an issue for that, but I tried to find a Discord, or somewhere to talk, couldn't find.

I really never got deeper in minecraft than basic plugin configuration.

I looked over the Brewery code, discovered the "events" so I tried a bit with DiscordSRV.

Alerts:
  - Trigger: BrewDrinkEvent
    Channel: global
    Embed:
      Color: "#ffffff"
      Author:
        ImageUrl: "https://cravatar.eu/helmhead/${player.name}/128.png"
        Name: "${player.name} a bu ${brew.currentRecipe}."

Looked fun, worked, but I couldn't manage to get something else than
Heridien a bu BRecipe{Bière}.
as what I want is:
Heridien a bu Bière.

What do I have to change?

Best regards!

commented

Thats a very good idea, i have never used DiscordSRV but that would be very cool if it works.

You can try one of these:
${meta.displayName}
${brew.currentRecipe.name[1]}
${brew.currentRecipe.getName(5)}

commented
Alerts:
  - Trigger: BrewDrinkEvent
    Channel: global
    Embed:
      Color: "#ffffff"
      Author:
        ImageUrl: "https://cravatar.eu/helmhead/${player.name}/128.png"
        Name: "${player.name} a bu une ${brew.currentRecipe.getName(5)}."

Yes it works! Thank you :)

commented

image

commented

Great i'm happy it works!