# MarriageMaster Config File

# Language Settings
Language:
  # Defines the used language and the corresponding file used. The corresponding language file will be placed next to the config.yml named: <Language>.yml
  Language: en
  # Options:
  #     Overwrite (deletes all changes from the file and extracts a new language file)
  #     Upgrade (extracts a new language file and copy's all settings from the old language file)
  #     Update (adds the default (english) text values for all missing values, just some basic formatting)
  UpdateMode: Upgrade

# Database Settings
Database:
  # SQLite = data stored in SQLite file, MySQL = data stored in MySQL database (see selection below), Shared = use shared connection pool from PCGF PluginLib
  Type: SQLite
  # Defines the storage format for UUIDs for compatibility with other plugins (shared user table).
  # true: format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  # false: format: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  UseUUIDSeparators: false
  # Options: auto, online, offline | auto will decide based on the server online mode option.
  # If you are using BungeeCord, set it to whatever you use on your BungeeCord server!!!
  UUID_Type: auto
  SQL:
    Host: 'localhost'
    Database: 'minecraft'
    User: 'minecraft'
    Password: 'minecraft'
    # The max amount of connections to the database the connection pool will open.
    # You may want to adjust this setting based on the load of your database server and the amount of players.
    MaxConnections: 2
    # Allows to set the connection properties.
    # Properties: ["useSSL=false"]
    Properties: []
    Tables:
      User: marry_players
      Partner: marry_partners
      Home: marry_home
      Priests: marry_priests
  # Settings controlling the cache behavior of the plugin. You might be able to optimize it a little bit depending on your player count, ram or cpu bottlenecks.
  Cache:
    UnCache:
      # The strategy used to uncache offline players. Options
      #     interval (offline players get uncached every x seconds)
      #     intervalChecked (like interval, but also ensures that the player is already offline for at lest the interval time)
      #     ondisconnect (player instantly gets uncached as soon as he disconnects from the server, may adds overhead if other plugins try to access the player data when they go offline, also it may be problematic for players with unstable connections)
      #     ondisconnectdelayed (player gets uncached x seconds after he went offline, adds overhead on disconnect, you shouldn't use this with a lot of players joining and leaving.)
      Strategy: interval
      # Used for the interval based uncaching algorithms. Also used as delay for ondisconnectdelayed. Value in seconds. Default: 600 = 10 minutes
      Interval: 600
      Delay: 600

Marriage:
  # Defines if players need to get married by a priest or if they can marry each other on their own.
  RequirePriest: false
  # This option defines if a priest is needed to divorce 2 players or if they can divorce on their own.
  # Options: true, false, auto (auto will copy the RequirePriest value)
  DivorceRequiresPriest: auto
  # Max numbers of partners that a player can have. Values < 1 disable the limit.
  MaxPartners: 1
  # This setting disables the "/marry setpriest" command players can still be promoted to a priest with the "marry.priest" permission.
  DisableSetPriestCommand: false
  Surnames:
    Enable: false
    Force: false
    # Surname requirements
    AllowColors: false
    AllowedCharacters: A-Za-z
    BannedNames: []
    # Values below 3 will be set to 3
    MinLength: 3
    # Values below the in length will be set to the min length
    MaxLength: 16
    # Options: None, Player, BothPlayers
    Confirmation: None
  # Defines if marriages should be announced to all players.
  AnnounceOnMarriage: false
  # Defines if divorces should be announced to all players. auto mirrors the AnnounceOnMarriage setting
  AnnounceOnDivorce: auto
  Confirmation:
    Enable: true
    AutoDialog: true
    BothPlayersOnDivorce: false
    OtherPlayerOnSelfDivorce: false

InfoOnPartnerJoinLeave:
  Enable: false
  # Delay for online partners info on join. In seconds
  JoinDelay: 0

# The prefix/suffix options do not work with all chat plugins!
# If your chat plugin support placeholder APIs it would be better to use them! More details: https://github.com/GeorgH93/MarriageMaster/wiki/Placeholders
Prefix:
  Enable: false
  # Placeholders: {Surname}, {PartnerName}, {PartnerDisplayName}, {StatusHeart}, {MagicHeart}
  String: "<heart>{PartnerName}<heart>"
  OnLineBeginning: true
Suffix:
  Enable: false
  # Placeholders: {Surname}, {PartnerName}, {PartnerDisplayName}, {StatusHeart}, {MagicHeart}
  String: "{Surname}"

Gift:
  Enable: true
  AllowedGameModesAllowed: [ "SURVIVAL" ]
  AllowedGameModesReceive: [ "SURVIVAL" ]
  # List of worlds where players can't receive gifts
  BlacklistedWorlds: []
  # If this option is enabled the partner has to accept the gift.
  RequireConfirmation: false
  ItemFilter:
    # Enables the item filter. Make sure to define items to be filtered.
    Enabled: false
    # Changes the filter mode, either blacklist (only unlisted materials are allowed) or whitelist (only listed materials are allowed)
    Mode: blacklist
    # Filter lists bellow. An item will be blocked (in blacklist mode) or allowed (in whitelist mode) if it matches on of the given filters.
    # List of materials that should be filtered. Can be name or id (id only for MC versions older than 1.13!).
    Materials: [  ]
    # List of names that should be filtered. Must match the display name of the item exactly. & color codes will be converted automatically.
    Names: [  ]
    # List of lore that should be filtered. Can be a single line or all lines of the lore.
    Lore: [  ]

Kiss:
  # Enables the kiss command
  Enable: true
  # Enables kissing by sneak + right click
  EnableInteract: true
  # Time between two kisses in seconds, 0 to disable cooldown
  WaitTime: 1
  # How many hearths should be spawned
  HearthCount: 50

Hug:
  # Enables the hug command
  Enable: true
  # Time between two hugs in seconds, 0 to disable cooldown
  WaitTime: 10
  # How many particles should be spawned, 0 to disable
  ParticleCount: 25

List:
  UseFooter: true
  EntriesPerPage: 8

PvP:
  AllowBlocking: true

BonusXp:
  Enable: true
  # Values less or equals 1 will disable the bonus xp, but still allows to split xp between players
  Multiplier: 2
  # If enabled the picked up xp will be split between both players. So each player will receive (xp * multiplier / 2) xp
  SplitXpOnPickup: true
  # If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXpOnPickup is enabled.
  SplitWithAllPartnersInRange: false
  SkillAPI:
    Enable: false
    # List of sources that should be excluded from the xp boost. The command source is always excluded!
    ExcludeSources: []
    Multiplier: 2
    # If split is enabled the multiplied amount will be split between both partners. So each player will receive (xp * multiplier / 2) xp
    SplitXp: true
    # If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXp is enabled.
    SplitWithAllPartnersInRange: false
  McMMO:
    Enable: false
    Multiplier: 2
    # If split is enabled the multiplied amount will be split between both partners. So each player will receive (xp * multiplier / 2) xp
    SplitXp: true
    # If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXp is enabled.
    SplitWithAllPartnersInRange: false
    # List of sources that should be excluded from the xp boost.
    ExcludeSources: [ "COMMAND" ]
    # List of skills that should be excluded from the xp boost.
    ExcludeSkills: []
  AuraSkills:
    Enable: false
    # List of sources that should be excluded from the xp boost. The command source is always excluded!
    ExcludeSources: []
    ExcludeSkills: []
    Multiplier: 2
    # If split is enabled the multiplied amount will be split between both partners. So each player will receive (xp * multiplier / 2) xp
    SplitXp: true
    # If enabled the xp will be split with all partners that are in range. So each player will receive (xp * multiplier / count_partners_in_range) xp. Requires that SplitXp is enabled.
    SplitWithAllPartnersInRange: false
  Jobs:
    Enable: false
    Multiplier: 2
    SplitXp: true
    ExcludeJobs: []

HealthRegain:
  Enable: true
  Multiplier: 2
  # List of worlds where players can't receive health regain bonus
  BlacklistedWorlds: []

Chat:
  Enabled: true
  AllowSurveillance: false

# Ranges for actions
# -1 no range limit and no world limit, 0 no range limit but in the same world, >= 1 range limit in meters/blocks
Range:
  Marry: 25
  Divorce: 25
  Backpack: 5
  Gift: 0
  Kiss: 2
  KissInteract: 5
  Hug: 2
  HearthVisible: 128
  HugParticleVisible: 128
  BonusXP: 10
  Heal: 3

# These settings will be used for all teleports (home and to partner)
Teleport:
  Delay: false
  # Time in seconds
  DelayTime: 3
  # List of worlds where you can/can't teleport to (based on FilterMode)
  FilteredWorlds: []
  # Defines how the FilteredWorlds will be treated, block = prevent players from teleporting to these worlds; allow = allows players to teleport to only these worlds
  FilterMode: "block"
  # This option controls whether a safety check is performed before the player is teleported.
  CheckSafety: true
  # This option controls whether the plugin attempts to find a safe location if the safety check failed. Enabling this might allow the play to glitch through walls.
  FindSafeLocation: false
  # If this option is enabled the partner has to accept the teleport request before the player will be teleported. Only applicable for teleporting to another player.
  RequireConfirmation: false

# Config options for sharing backpacks between partners
# Currently the only supported backpack plugin is Minepacks
BackpackShare:
  # Enables the backpack sharing feature (with supported plugins)
  Enable: true

Economy:
  Enable: false
  # Each of the two players will have to pay half of the amount. Example: cost=100 -> player_a has to pay 50 and player_b has to pay 50
  Marry: 100.0
  # Each of the two players will have to pay half of the amount. Example: cost=100 -> player_a has to pay 50 and player_b has to pay 50
  Divorce: 100.0
  Tp: 25.0
  Gift: 10.0
  HomeTp: 25.0
  SetHome: 100.0
  ChangeSurname: 0

# Allows the execution of commands on certain events related to the marriage
CommandExecutor:
  Enable: false
  # General information about the command executor:
  # The commands can contain placeholders in the format {PlaceholderName} (The {} is part of the name. The available placeholders are listed right about the event).
  # Every event can execute multiple commands in the list. Commands do not have to start with / !
  # Commands to be executed:
  # Will be executed when two players marry, without a priest
  # Allowed placeholders: {Player1}, {Player2}
  # OnMarry: [ "eco give {Player1} 100", "pex user {Player2} add example.perm" ]
  OnMarry: []
  # Will be executed when two players marry by a priest
  # Allowed placeholders: {Player1}, {Player2}, {Priest}
  OnMarryWithPriest: []
  # Will be executed when two players get divorced, without a priest
  # Allowed placeholders: {Player1}, {Player2}
  OnDivorce: []
  # Will be executed when two players get divorced through a priest
  # Allowed placeholders: {Player1}, {Player2}, {Priest}
  OnDivorceWithPriest: []

# The command that should be used if no sub-command was used.
# Options: help (/marry help), custom_help (will display the messages defined in the language file in Language.Ingame.Help.CustomHelp)
DefaultCommand: "help"
# The marriage color is used for the magic/colored heart and is set to a random value by default.
AllowPlayersToChangeMarriageColor: true

Sound:
  # Global setting if sounds should be used. Each sound effect can be disabled individually by setting it to 'DISABLED'.
  Enable: true
  Married: ORB_PICKUP
  Divorced: ORB_PICKUP

Misc:
  AutoUpdate:
    # When auto update is disabled you still can use the build in update function manually with /marry update
    Enable: true
    Channel: Release
  # Enable this option if you are in a BungeeCord environment. Please also install the plugin on your BungeeCord server to allow the data to be synchronized across all your servers.
  UseBungeeCord: false

# Config File Version. Don't touch it!
Version: 109