NLthijs48 / AreaShop

A Bukkit/Spigot (Minecraft server) plugin that facilitates renting and buying WorldGuard regions
GNU General Public License v3.0
55 stars 89 forks source link

eventCommandProfiles per group? #568

Open TomLewis opened 4 years ago

TomLewis commented 4 years ago

Current behavior eventCommandProfiles is global to all groups, can I specify eventCommandProfiles for all groups apart from one?

Desired behavior I figured out DiscordSRV allows sending messages to channels, so I wanted to alert each time a shop was bought/sold, which works! discord broadcast easy, but what I didnt consider is there is 1 group of shops I don't want to be broadcast as its spammy with how often they are rented/unrented.

Is there a way to set eventCommandProfiles events before/after to only happen on a whitelist of groups, I only want to run the discord broadcast on 3 groups when they are unrented/rented and ignore 1 group set. So it could be a blacklist.

    unrented:
      before:
      after:
      - "say Shop %region% was un-rented and is now available."
      - "discord broadcast #theidhere :coin: **%region% was un-rented and is now available.**" <-somehow block this being sent for 1 group.

Another question, in the parameters we have %region%, is there one for the %username% of the person that rented it? and also one for the time/date it happened?

Your environment