ESK0 / ServerAdvertisement3

Very useful plugin for your server with which you can print messages to players. Messages are stored in file.
38 stars 16 forks source link

Implement option to ignore flag in Welcome Message #15

Closed crashzk closed 2 years ago

crashzk commented 3 years ago

Add option not to send message to those who have such a flag, option ignore, example:

"Welcome Message"
  {
    "Enabled" "1" // 1 = Enabled / 0 = Disabled,
    "Type" "T" // Type of message - Only T and C types are supported right now
    "en" "{orange}*************************************** \n{darkred}Welcome to this server {PLAYERNAME}! \n {lime}This server uses ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
    "cz" "{orange}*************************************** \n{darkred}Vítej na tomto serveru {PLAYERNAME}! \n {lime}Tento server používá ServerAdvertisements3 \n Autor: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
    "Delay" "5.0" // Time in seconds after is client connected to server to show message
    "flags" "" // Client with this flag will get welcome message - Keep empty for all
    "ignore" "a"
  }

In this case it sends the message to all players, but whoever has the a flag will not receive this message when they connect.

crashzk commented 2 years ago

Implemented in PR: https://github.com/ESK0/ServerAdvertisement3/pull/16