TDXDevelopment
TDX Welcome RaffleConfiguration

keywords

The words that enter a player into a raffle, and how they are matched.

plugins/TDXWelcomeRaffle/config.yml
keywords:
  words:
    - "welcome"
    - "wlc"
  match: contains
  case-sensitive: false
  count-cancelled-messages: false

A chat message enters the sender when it contains any of the words. The first word in the list is what %keyword% shows in messages, so put the one you want players to type first.

Reference

KeyTypeDefaultNotes
wordslistwelcome, wlcAny number of words or short phrases, in any language.
matchstringcontainscontains or word, see below.
case-sensitivebooleanfalsefalse makes WELCOME, Welcome and welcome all count.
count-cancelled-messagesbooleanfalseAlso count chat that another plugin cancelled. See the warning below.

contains or word

Messagecontainsword
Welcome!!!!! Thanks for joining Steveentersenters
hey welcomeentersenters
welcomeeeentersno
unwelcomeentersno

word counts a keyword only when no letter or digit touches it on either side, so punctuation and emoji around it are fine.

Who can enter

Only other players can enter, never the newcomer the raffle is for. A player is entered once per raffle, saying welcome again does nothing. If several raffles are open, one welcome enters you into all of them.

On top of that, the anti-abuse rules and the tdxwelcomeraffle.enter permission apply.

Chat that another plugin cancelled is ignored by default, which is how muted players are kept out. Some chat plugins (VentureChat, some channel plugins) cancel every message and send it themselves. If nobody ever gets entered on your server, set count-cancelled-messages: true. Muted players can then enter too.