Configuration for v0.4

Configuration

FactionAlert v0.4 will automatically generate a config.yml that looks like this:

Version Check: true
Faction Nameplate:
  Prefix:
    Enabled: false
    Format: '%f'
  Suffix:
    Enabled: false
    Format: '%f'
Teleport:
  Enabled: false
  Cooldown: 0
  Types:
    - ENEMY
  Receivers:
    - LEADER
    - OFFICER
    - RECRUIT
    - MEMBER
  Enemy Alert Message: '&4An enemy has teleported into your land!'
  Neutral Alert Message: '&4Someone has teleported into your land!'
  Ally Alert Message: '&4An ally has teleported into your land!'
  Truce Alert Message: '&4A member of a faction you have a truce with has teleported into your land!'
  None Alert Message: '&4A player with no faction has teleported into your land!'
Move:
  Enabled: false
  Cooldown: 0
  Types:
    - ENEMY
  Receivers:
    - LEADER
    - OFFICER
    - RECRUIT
    - MEMBER
  Enemy Alert Message: '&4An enemy has entered your land!'
  Neutral Alert Message: '&4Someone has entered your land!'
  Ally Alert Message: '&4An ally has entered your land!'
  Truce Alert Message: '&4A member of a faction you have a truce with has entered your land!'
  None Alert Message: '&4A player with no faction has entered your land!'
Combat:
  Enabled: false
  Cooldown: 10
  Types:
    - ENEMY
  Receivers:
    - LEADER
    - OFFICER
    - RECRUIT
    - MEMBER
  Enemy Alert Message: '&4%n from %f has engaged in combat with %m'
  Neutral Alert Message: '&4%n from %f has engaged in combat with %m'
  Ally Alert Message: '&4%n from %f has engaged in combat with %m'
  Truce Alert Message: '&4%n from %f has engaged in combat with %m'
  None Alert Message: '&4%n has engaged in combat with %m'
Member Death:
  Enabled: false
  Receivers:
    - LEADER
    - OFFICER
    - RECRUIT
    - MEMBER
  Leader Alert Message: '&4%n has died!'
  Officer Alert Message: '&4%n has died!'
  Recruit Alert Message: '&4%n has died!'
  Member Alert Message: '&4%n has died!'

Note: FactionAlert for Factions 1.6.9.4 will not read nor generate the "Receivers" and "Truce Alert Message" fields.

This allows you to configure when the messages are sent and who they are sent to. Types is a list of what relation the faction's land the player is entering must have to the player. The valid entries are ENEMY, ALLY, NEUTRAL, and TRUCE. Receivers is a list of what people in this faction whose land was entered will be sent a warning. The valid entries are LEADER, OFFICER, RECRUIT, and MEMBER. Faction Nameplate will display the player's faction in their nameplate (above their heads) with the given format. This uses teams, and will conflict with other plugins that use scoreboards.

You can also customize the messages that are sent to players. The messages accept color codes prefixed with '&' as shown in the example messages. Setting a cooldown greater than 0 will cause FactionAlert to wait that many ticks before sending another alert about a player. (There are 20 ticks in a second for a smoothly running server.) NOTE: As of v0.32, cooldowns are measured in seconds!

Additionally, you may put %n in the message to display the name of the player entering the land and %f to display the faction of the player entering the land. NOTE: for combat, %m is used for the player in the faction being alerted, and %n for the other player. Both player's factions are alerted when combat initiates, and %m and %n are replaced accordingly.


Comments

Posts Quoted:
Reply
Clear All Quotes