Skip to content

Config Setup

Zoon20X edited this page Apr 20, 2024 · 10 revisions

Config.yml

The default config.yml file is not reloadable, this file holds cruical settings that require a reboot to take affect


CrossNetworkStorage - CNS

NetworkShare:
  CrossNetworkStorage: #CNS is a custom network storage solution developed by me, with LPS in-mind
    Enabled: false #disable or enable the NetworkShare - REQUIRES A RESTART
    Address: 127.0.0.1 #this is the binding address of the proxy, this is how the server will communicate
    Port: 3000 #this is a additional port you need to open if the proxy is on a different network/machine to the server
    ServerID: #this server ID is generated on boot, this will be tagged by the CNS proxy

Lang.yml

This file holds all messages except a few debug messages that the plugin utilizes. All messages in this file can be customized This file can be reloaded and does not require a restart!


Progressbar:
  MinStep: 1
  MaxStep: 5
  VisualBorder: "&8┃"
  VisualCompletedStep: "&a░"
  VisualUncompletedStep: "&7░"

Lang:
  Reload:
    Enabled: true
    CenterText: false
    Message: '&3LevelPoints>> &bReload Complete'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
  Help:
    Enabled: true
    CenterText: false
    Message:
      - '&3&l&n_____LevelPoints____'
      - ''
      - '&b/lps &f-Displays this message'
      - '&b/lps info (player) &f-Displays player info'
      - '&b/lps top (page) &f-Displays top players'
      - ''
      - '&b() optional, <> required'
      - '&3--------------------------------'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
  HelpAdmin:
    Enabled: true
    CenterText: false
    Message:
      - '&3&l&n_____LevelPoints-Admin____'
      - ''
      - '&b/adminlps &f-Displays this message'
      - '&b/adminlps reload &f-Reloads the plugin'
      - '&b/adminlps exp (add,remove,set) <player> <exp> &f-Modify a players exp'
      - '&b/adminlps level (add,remove,set) <player> <level> &f-Modify a players level'
      - '&b/adminlps prestige (add,remove,set) <player> <prestige> &f-Modify a players prestige'
      - ''
      - '&b() optional, <> required'
      - '&3--------------------------------'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
  Info:
    Enabled: true
    CenterText: false
    Message:
      - '&3&l&n_____Player Info____'
      - ''
      - '&bName: &f{player}'
      - '&bLevel: &f{lps_level}'
      - '&bPrestige: &f{lps_prestige}'
      - '&bExp: &f{lps_exp}&b/&f{lps_required_exp}'
      - '&bIs Maxed: &f{lps_max}'
      - ''
      - '&3________________'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
  Top:
    Enabled: true
    CenterText: false
    Message:
      - '&3&l&m----&3Top Players&m----'
      - '&3{lps_top_position}. &b{player} &3- &b{lps_level}'
      - ''
      - '&b{lps_top_page}/{lps_top_page_max}'
      - '&3&l&m------------------------'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
      RequiredNumber:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but this requires a number input!'
  Exp:
    Enabled: true
    CenterText: false
    Message: '&3LevelPoints>> &bUpdated player data for &f{player}'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
    RequiredNumber:
      Enabled: true
      Message: '&4LevelPoints>> &cSorry but this requires a number input!'
  Level:
    Enabled: true
    CenterText: false
    Message: '&3LevelPoints>> &bUpdated player data for &f{player}'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
      RequiredNumber:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but this requires a number input!'
  Prestige:
    Enabled: true
    CenterText: false
    Message: '&3LevelPoints>> &bUpdated player data for &f{player}'
    Children:
      NoPermission:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but you do not have permission'
      RequiredNumber:
        Enabled: true
        Message: '&4LevelPoints>> &cSorry but this requires a number input!'
MessageEvents:
  OnExp:
    Enabled: true
    Type: ACTIONBAR
    Message: '&3Level: &b{lps_level} &3|&b {lps_exp}/{lps_required_exp}'
  BreakLevelRequirement:
    Enabled: true
    Type: ACTIONBAR
    Message: '&cSorry but you must be level &4{lps_required_level} &cto break this block'
  PlaceLevelRequirement:
    Enabled: true
    Type: ACTIONBAR
    Message: '&cSorry but you must be level &4{lps_required_level} &cto place this block'
  FarmLevelRequirement:
    Enabled: true
    Type: ACTIONBAR
    Message: '&cSorry but you must be level &4{lps_required_level} &cto farm this block'
  AttackLevelRequirement:
    Enabled: true
    Type: ACTIONBAR
    Message: '&cSorry but you must be level &4{lps_required_level} &cto attack this mob'

LevelSettings.yml

This file is where you can change starting exp,level,prestige and change the experience formula for how much exp it takes to level up This file can be reloaded and does not require a restart!


Starting:
  Level: 1
  Experience: 0
  Prestige: 0
Max:
  Level: 100
  Prestige:
    Enabled: true
    Value: 10

Experience:
  Formula: 50 * {lps_level}

TopSettings.yml

This file is where you can setup all top player settings, such as pages, how many users per page, and how often the toplist updates This file can be reloaded and does not require a restart!


Enabled: true

MaxPages: 3
MaxSlotsPerPage: 10
UpdateIteration: 60

BlockSettings.yml

This file is where you can allow players to gain exp for breaking blocks, but also limit what levels can break and place blocks This file can be reloaded and does not require a restart!


Blocks:
  Enabled: true
  Settings:
    GRASS_BLOCK:
      Exp: 1000.0
      RequiredLevel:
        Break: 0
        Place: 2

MobSettings.yml

This file is where you can allow players to gain exp for killing mobs, but also limit what levels can damage mobs This file can be reloaded and does not require a restart!


Mobs:
  Enabled: true
  Settings:
    ZOMBIE:
      Exp: 1.0
      RequiredLevel:
        Attack: 2

Clone this wiki locally