# All permissions can be self defined in the config. If a permission is set to '' everybody has that permission

# MySQL is required. Most hosters provide a mysql database for free. If you are self hosting you can easily install mysql from mysql.com
MySQL:
  Host: localhost
  Port: 3306
  UseSSL: false
  Username: root
  Password: Password
  Database: friends
  TablePrefix: fr_
  Cache: true
  Pool:
    # Available options are HikariCP and C3P0. HikariCP is faster. Use C3P0 if you are having problems with HikariCP
    ConnectionPool: 'C3P0'
    # You can tweak these settings to enhance the performance. The larger the pool is the more ram is used
    # and the more cpu power is used to maintain the connections. If the pool is not large enough your
    # players may experience lags when executing commands
    #
    # InitialPoolSize, IdleConnectionTestPeriod and TestConnectionOnCheckin are only used if C3P0 is used
    InitialPoolSize: 3
    MinPoolSize: 3
    MaxPoolSize: 15
    IdleConnectionTestPeriod: 290
    # This wastes performance. Only activate it if your mysql server is configured incorrectly
    # or you expect to have connection dropouts towards your mysql server.
    TestConnectionOnCheckin: false
  # The redis cache is only used if RedisBungee is installed
  RedisCache:
    ExpirationActivated: true
    ExpirationTimeInSeconds: 86400
General:
  # Activate this if you want to customize the messages in the messages.yml.
  # The messages.yml will be generated in your under "Language" chosen language
  UseOwnLanguageFile: false
  CheckForUpdates: true
  # Available languages are English and German
  Language: English
  # Activate this if you have more than a one core cpu to enhance performance
  MultiCoreEnhancement: true
  Time:
    LanguageTag: US
    # To find out which time zones are available check out https://garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/
    TimeZone: 'SYSTEM_DEFAULT'
    # To find out which characters do what check out https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
    Format: dd/MM/yyyy HH:mm:ss
  # If enabled parties won't be moved to the server of the leader when he joins a new server
  DisableAutomaticPartyServerSwitching: false
  # A list of servers which should not be automatically be joined by the whole party if the party leader joins this server
  PartyDoNotJoinTheseServers:
    - lobby
    - lobby1
    - lobby2
  # The delay between players in a party automatically joining the server of the leader. Only enable it if you have problems with certain minigame plugins
  PartyJoinDelayInSeconds: 0
  # If a party or friend command is executed on this server an error message will be displayed to the player. Useful for login servers
  DisabledServers:
    - login1
    - login2
  # If enabled players receive a notification about open friend requests on join
  SendFriendRequestNotificationOnJoin: true
  # If you are having a server where premium players and offline players can join
  # and another plugin provides UUID injection for premium players you have to activate this.
  ForceUUIDSupportOnOfflineServers: false
  Deactivated:
    OfflineMessages: false
  # Disabling tab complete can save on performance
  TabComplete:
    General: true
    Player: true
    SubCommand: true
# Set custom names for servers. For example, you can rename bw1123 to plays Bedwars.
ServerDisplayNames:
  # When set to true more config options will be generated after a server restart
  Use: false
Party:
  MaxPlayersPerParty:
    # If the default value is set to 0 players can have unlimited many players in a party
    Default: 0
    NoLimitPermission: ''
    AddSlotsPermissions:
      # You can create as many slot permissions as you want, by adding new sections.
      # All sections have to contain the key "Permission" and "SlotsToAdd". Just make sure to not use the same name twice
      Premium:
        Permission: de.simonsator.partyandfriends.party.addslots.premium
        SlotsToAdd: 5
      SuperPremium:
        Permission: de.simonsator.partyandfriends.party.addslots.premium
        SlotsToAdd: 10
  # If this is activated all commands listed under Commands will be executed by everyone in the party when the leader
  # executes the command, if they are on the same server as the party leader. This option only exists for mini-games
  # which don't have a bungee/proxy mode. You should always prefer the bungee mode, as it uses less performance and
  # everybody in the party joins the mini-game, even if they are not on the same server.
  MiniGameStartingCommands:
    Enabled: false
    Commands:
      - /arena join blue
      - /survivalgames arena
Extensions:
  # If this option is activated supported extensions will have their config folder in the folder plugins/PartyAndFriends/extensions/EXTENSION_NAME
  UseExtensionFolderAsConfigFolder: false
GUI:
  # Should a message be sent to a player when he changes his hide mode?
  ChangedHideModeMessage: true
  # If set to false a message will be displayed that the player currently has no open friend requests
  OpenFriendRequestMenuWithoutHavingRequests: true
Commands:
  Friends:
    General:
      # Determines if the help message should be printed out when the user missuses a friend command after the error message
      PrintOutHelpOnError: true
    TopCommands:
      Friend:
        Names:
          - friend
          - friends
        Permissions: ''
        Disabled: false
      Reply:
        Names:
          - reply
          - r
        Disabled: false
        Permission: ''
      MSG:
        Names:
          - msg
          - fmsg
        Disabled: false
        Permission: ''
        MSGNonFriendsPermission: de.simonsator.partyandfriends.msg.msgnonfriends
        AllowPlayersToUseChatFormatting: true
    SubCommands:
      Accept:
        Names:
          - accept
          - approve
        Permission: ''
        Priority: 3
        SendTextIsNowOnline: true
      Add:
        Names:
          - add
          - addfriend
        Permission: ''
        Priority: 2
        FriendRequestTimeout: 0
      Deny:
        Names:
          - deny
          - reject
        Permission: ''
        Priority: 4
      Jump:
        Names:
          - jump
          - jumpto
        Disabled: false
        Permission: ''
        Priority: 6
        DisabledServers:
          - login1
          - adminlobby1
      List:
        Names:
          - list
          - info
        Disabled: false
        Permission: ''
        Priority: 0
        SortElements: true
        EntriesPerPage: 10
      MSG:
        Names:
          - msg
          - message
        Disabled: false
        Permission: ''
        Priority: 1
        ReplyCommand: /friend msg [PLAYER]
      Remove:
        Names:
          - remove
          - deleteAccount
        Permission: ''
        Priority: 5
        # If activated a message is send to the person which was removed from the friend list
        UseFriendRemovedYouMessage: false
      Settings:
        Names:
          - setting
          - settings
        Disabled: false
        Permission: ''
        Priority: 7
        Settings:
          FriendRequest:
            Names:
              - friendrequest
              - receivefriendrequests
              - friendrequests
            Enabled: true
            Permission: ''
            Priority: 0
          # This setting determines if a friend can use /friend jump to teleport to the server of the user who did set the setting
          Jump:
            Names:
              - jump
              - allowjump
            Enabled: true
            Permission: ''
            Priority: 1
          # This setting determines if a friend can see the online status of the user who did set the setting
          Offline:
            Names:
              - offline
              - alwaysoffline
            Enabled: true
            Permission: ''
            Priority: 2
          # This setting determines if the user who set this setting, receives a notification when a friend of his goes online
          NotifyOnlineStatusChange:
            Names:
              - notifyonline
              - notify
            Enabled: true
            Permission: ''
            Priority: 3
          # This setting determines if friends of the user who set this setting are able to send him a private message using /friend msg
          PM:
            Names:
              - pm
              - message
              - messages
            Enabled: true
            Permission: ''
            Priority: 4
          # This setting determines if other users are able to send the user who set this setting party invitations
          PartyInvite:
            Names:
              - invite
              - party
            Enabled: true
            Permission: ''
            Priority: 5
  Party:
    General:
      # Determines if the help message should be printed out when the user missuses a party command after the error message
      PrintOutHelpOnError: true
      # If this option is activated the player will only see the commands they can currently execute when they execute /party
      PrintOnlyExecutableSubCommandsOut: true
    TopCommands:
      Party:
        Names:
          - party
          - parties
        Permissions: ''
        Disabled: false
      PartyChat:
        Names:
          - partychat
          - p
        Permissions: ''
        Disabled: false
    SubCommands:
      Join:
        Names:
          - join
          - j
        Permissions: ''
        Priority: 0
        AutoJoinLeaderServer: true
      Deny:
        Names:
          - deny
          - decline
        Permissions: ''
        Priority: 0
        Disabled: true
      Invite:
        Names:
          - invite
          - add
        Permissions: ''
        Priority: 1
        InvitationTimeOutTimeInSeconds: 60
      InviteSetting:
        Names:
          - settings
          - setting
          - invitesetting
        Permissions: ''
        Priority: 2
        Disabled: true
      Kick:
        Names:
          - kick
          - forcedleave
        Disabled: false
        Permissions: ''
        Priority: 6
      Info:
        Names:
          - info
          - list
        Disabled: false
        Permissions: ''
        Priority: 3
      Leave:
        Names:
          - leave
          - le
        Permissions: ''
        Priority: 5
      Chat:
        Names:
          - chat
          - message
          - msg
        ReplyCommand: chat
        Disabled: false
        Permissions: ''
        Priority: 4
      Leader:
        Names:
          - leader
          - lead
        Disabled: false
        Permissions: ''
        Priority: 7
  # The pafadmin command can be only executed from the console
  PAFAdmin:
    Enabled: false
    Names:
      - pafadmin
      - adminpaf