Files - PaulTDD-MC/Kingdoms GitHub Wiki

Kingdoms files

Get an explanation of the files


Config file (top)

# Default config for Kingdoms
# 
# Kingdoms
# Default config for Kingdoms
# 
# Kingdoms
settings:

  use-kingdoms-prefix: true
  
  # Enabled worlds
  enabled-worlds:
  - world
  - world_nether
  - world_the_end
  
  # Sign lines
  signs:
    teleport:
      line-one: '&3[Kingdoms]'
      line-two: '&7%kingdom%'
    protect:
      line-one: '&3[Kingdoms]'
      line-two: '&9%allowance%'
      line-three: '&8%player%'
      
  # Configurable rank names
  rank-names:
    king: king
    duke: duke
    general: general
    soldier: soldier
    peasant: peasant
  
  # Chat prefixes
  prefixes:
    king: '&f[&3&lKing&f]&8'
    duke: '&f[&3&lDuke&f]&8'
    general: '&f[&3&lGeneral&f]&8'
    soldier: '&f[&3&lSoldier&f]&8'
    message: '&f'
    
  # Scoreboard update time in seconds
  scoreboard-update: 6
  
  # Date format, for user file
  date-format: dd-MM-yyyy HH:mm:ss
  
  # Playtime format for on the scoreboard
  playtime-format: '%days%d, %hours%h, %minutes%m'
  
  # Cooldown section in seconds
  cooldowns:
    kd-spawn: 3600
    spy-class: 60
    knight-class: 120
  
  # Tablist settings
  tablist:
    use-tablist: true
    prefixes:
      king: "&9&lKing &9> &8"
      duke: "&9&lDuke &9> &8"
      general: "&9&lGeneral &9> &8"
      soldier: "&9&lSoldier &9> &8"
      peasant: "&9&lPeasant &9> &8"
      default: "&8"
    suffixes:
      king: " &b%kingdom%"
      duke: " &b%kingdom%"
      general: " &b%kingdom%"
      soldier: " &b%kingdom%"
      peasant: " &b%kingdom%"
      default: ""
  
  # Broadcast new name
  broadcast-name-change: true
  
  # Chests section
  chests:
    # Enable protected chests
    allow-protected-chests: true
    automatic-chest-protection: false
    # amount of chests per rank, -1 for infinite
    max-amount:
      king: -1
      duke: 5
      general: 4
      soldier: 2
      peasant: 0
      default: 0
  
  # Armor blocker
  click-blocker:
    enabled: true
    king:
    - DIAMOND_HELMET
    duke:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    general:
    - GOLDEN_HELMET 
    - DIAMOND_HELMET
    soldier:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    peasant:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    - DIAMOND_CHESTPLATE
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    default:
        all: true
        items: []
   
  # Craft blocker
  craft-blocker:
    enabled: true
    king:
    - DIAMOND_HELMET
    duke:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    general:
    - GOLDEN_HELMET 
    - DIAMOND_HELMET
    soldier:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    peasant:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    - DIAMOND_CHESTPLATE
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    default:
        all: true
        items: []
        
  # Inventory blocker
  inventory-blocker:
    enabled: true
    king:
    - DIAMOND_HELMET
    duke:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    general:
    - GOLDEN_HELMET 
    - DIAMOND_HELMET
    soldier:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    peasant:
    - GOLDEN_HELMET
    - DIAMOND_HELMET
    - DIAMOND_CHESTPLATE
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    default:
        all: true
        items: []

Kingdom file (top)

# Here are all kingdoms stored

kingdoms:
  test:
    king: ''
    dukes: ''
    generals: ''
    soldiers: ''
    peasants: []
    prefix: ''
    allies: []
    enemies: []
    description: ''
    spawn-point:
      x: 0
      y: 0
      z: 0
      world: default

Messages file (top)

messages:
    kingdom-created: "&aKingdom %kingdom% has succesfully been created!"
    kingdom-removed: "&aKingdom %kingdom% has succesfully been removed!"
    kingdom-already-exists: "&cKingdom %kingdom% already exists!"
    # Rank set
    king-set: "&a%player% has been set as king for %kingdom% succesfully"
    duke-set: "&a%player% has been set as duke for %kingdom% succesfully"
    general-set: "&a%player% has been set as general for %kingdom% succesfully"
    soldier-set: "&a%player% has been set as soldier for %kingdom% succesfully"
    peasant-set: "&a%player% has been set as peasant for %kingdom% succesfully"
    # Interaction set
    ally-set: "&aAlly %ally% has been set for %kingdom% succesfully"
    enemy-set: "&aEnemy %enemy% has been set for %kingdom% succesfully"
    enemy-declared: "&aSuccesfully made %kingdom% as an enemy"
    new-enemy: "&aYou are not an enemy with %kingdom%"
    # Already rank
    player-already-duke: "&c%player% is already a duke"
    player-already-general: "&c%player% is already a general"
    player-already-soldier: "&c%player% is already a soldier"
    player-already-peasant: "&c%player% is already a peasant"
    player-already-rank: "&c%player% already has the rank %rank%"
    # Already interaction
    kingdom-already-ally: "&c%ally% is already an ally"
    kingdom-already-enemy: "&c%enemy% is already an enemy"
    # Not rank
    player-not-duke: "&c%player% isn't a duke"
    player-not-general: "&c%player% isn't a general"
    player-not-soldier: "&cT%player% isn't a soldier"
    player-not-peasant: "&c%player% isn't a peasant"
    # Not interaction
    kingdom-not-ally: "&cKingdom %kingdom% isn't an ally"
    kingdom-not-enemy: "&cKingdom %kingdom% isn't an enemy"
    # Removed rank
    king-removed: "&aKing %player% has been removed for %kingdom% succesfully"
    duke-removed: "&aDuke %player% has been removed for %kingdom% succesfully"
    general-removed: "&aGeneral %player% has been removed for %kingdom% succesfully"
    soldier-removed: "&aSoldier %player% has been removed for %kingdom% succesfully"
    peasant-removed: "&aPeasant %player% has been removed for %kingdom% succesfully"
    # Removed interaction
    ally-removed: "&aAlly %ally% has been removed succesfully"
    enemy-removed: "&aEnemy %enemy% has been removed succesfully"
    # New rank
    new-rank-king: "&aYou are the king of %kingdom% now"
    new-rank-duke: "&aYou are a duke of %kingdom% now"
    new-rank-general: "&aYou are a general of %kingdom% now"
    new-rank-soldier: "&aYou are a soldier of %kingdom% now"
    new-rank-peasant: "&aYou are a peasant of %kingdom% now"
    new-rank-succesfull: "&aSuccesfully set the new rank of %player% to %rank%"
    player-is-king: "&cYou are the king, use '/kd makeking' first"
    # Requests
    request-send: "&aYou have send an request to %kingdom%"
    request-accepted: "&aYour request has been accepted by %kingdom%"
    request-accepting: "&aYou have accepted %kingdom%'s request"
    request-denied: "&cYour request has been denied by %kingdom%"
    request-deniing: "&aYou have denied %kingdom%'s request"
    invite-accepted: "&aYour request has been accepted by %player%"
    invite-accepting: "&aYou accepted %kingdom%'s accept"
    invite-denied: "&cYour request has been denied by %player%"
    invite-deniing: "&aYou have denied %kingdom%'s invite"
    ally-request-recieved: "&aKingdom %kingdom% has send you an ally request"
    neutral-request-recieved: "&aKingdom %kingdom% has send you a neutral request"
    neutral-succesfull: "&aYour kingdom is now neutral with %kingdom%"
    cannot-request-self: "&cYou can not request your own kingdom"
    already-requesting: "&cYou already send a request to %kingdom%"
    already-inviting: "&cYou already send a request to %player%"
    already-neutral: "&c%kingdom% is already neutral to your kingdom"
    request-not-found: "&cYou haven't recieved an request from %kingdom%"
    kingdom-neutral: "&aSuccesfully made %kingdom% neutral"
    joined-kingdom: "&aYou have joined %kingdom%"
    kicked-player: "&aSuccesfully kicked %player%"
    kicked: "&cYou have been kicked from the kingdom %kingdom%"
    not-allowed-to-wear: "&cYou are not allowed to wear this"
    not-allowed-to-craft: "&cYou are not allowed to craft this"
    left: "&aYou left %kingdom% succesfully"
    not-in-kingdom: "&cYou are not in a kingdom"
    # Spare messages
    prefix-set: "&aPrefix has been set succesfully to %prefix%"
    description-set: "&aDescription has been set succesfully to %description%"
    kingdom-not-found: "&cKingdom %kingdom% couldn't be found!"
    player-not-found: "&c%player% couldn't be found!"
    insufficient-arguments: "&cInsufficient arguments!"
    no-permission: "&cYou are not allowed to use this command."
    command-does-not-exist: "&cThis command doesn't exist"
    must-be-king: "&cYou must be the king of %kingdom% to use this command"
    player-not-in-same-kingdom: "&c%player% must be in the same kingdom as you (%kingdom%)"
    player-not-in-kingdom: "&c%player% must be in the kingdom %kingdom% first"
    player-already-in-kingdom: "&c%player% is already in the kingdom %kingdom%"
    inviting: "&aYou have invited %player% to %kingdom%"
    invited: "&aYou have been invited by %kingdom%"
    changed-chat-color: "&aYou changed your chat color to %color%this"
    sign-created: "&aYou have succesfully created a sign"
    sign-invalid: "&cThis sign is not set-up correctly"
    teleported: "&aYou have been teleported to the spawn of %kingdom%"
    on-cooldown: "&cThis command is on cooldown &e(%cooldown% minutes)"
    spawnpoint-set: "&aSpawnpoint for %kingdom% has been set to %location%"
    spawn-not-set: "&cThe spawn for %kingdom% hasn't been set yet"
    spawnpoint-removed: "&aThe spawnpoint for the kingdom %kingdom% has been removed"
    chest-protected: '&cThis chest is protected'
    chest-removed: "&aChest removed"
    nickname-set: "&aYour nickname has been set to %nickname%"    
    max-chests: "&cYou have reached the max amount of protected chests"
    cant-hurt: "&cYou can't hurt %target%!"
    error: "&cERROR!"
    player-not-free: "&cPlayer %target% is already in a kingdom"
    player-not-rank: "&cThat player doesn't have the rank %rank%"
    on-cooldown: "&cThis command is on cooldown, %cooldown% minutes left"
    player-rename: "&6%player% has a new name: %name%"
    world-not-enabled: "&cThe world you are in is not enabled in the config file"
    king-offline: "&cThe king of the kingdom %kingdom% is offline, so nobody can accept your request. Please try again later"
    skill-on-cooldown: "&cYour skill is on cooldown, %cooldown% seconds left"
    user-list: "&9These are all the users:"
    user-about:
       header: "&7Here is all info about &b%player%"
       rank: "&9Rank: &7%rank%"
       kingdom: "&9Kingdom: &7%kingdom%"
       uuid: "&9UUID: &7%uuid%"
       last-logout: "&9Last logout: &7%logout%"
       logout-location: "&9Logout location: &7%location%"
       play-time: "&9Play time: &7%days% days, %hours% hours & %minutes% minutes"
# Help menu
help-menu:
   kingdom:
      kingdom-true:
         header:
            - ""
            - "&b&m----------&b[&7Kingdoms Help &4(%page%/5)&b]&b&m----------"
         footer:
            - ""
            - "&7Type &9/kd help %next% &7for page %next% of the help menu."
         1:
            - "&9/kd help <page> &f- &7Display the help menu"
            - "&9/kd invite <player> &f- &7Invite the player to your kingdom"
            - "&9/kd spawn &f- &7Teleport to your kingdoms' spawn"
            - "&9/kd info &f- &7Show the info of your kingdom"
            - "&9/kd leave &f- &7Leave your current kingdom"
         2:
            - "&9/kd makeking <player> &f- &7Make the player the king"
            - "&9/kd makeduke <player> &f- &7Make the player a duke"
            - "&9/kd makegeneral <player> &f- &7Make the player a general"
            - "&9/kd makesoldier <player> &f- &7Make the player a soldier"
            - "&9/kd makepeasant <player> &f- &7Make the player a peasant"
         3:
            - "&9/kd removeduke <player> &f- &7Remove the player as a duke"
            - "&9/kd removegeneral <player> &f- &7Remove the player as a general"
            - "&9/kd removesoldier <player> &f- &7Remove the player as a soldier"
            - "&9/kd removepeasant <player> &f- &7Remove the player as a peasant"
            - "&9/kd kick <player> &f- &7Kick the player from your kingdom"
         4:
            - "&9/kd setspawn &f- &7Set the spawnpoint to your current location"
            - "&9/kd delspawn &f- &7Remove the spawnpoint of your kingdom"
            - "&9/kd requestally <kingdom> &f- &7Request to be an ally with the kingdom"
            - "&9/kd acceptally <kingdom> &f- &7Accept to be an ally with the kingdom"
            - "&9/kd denyally <kingdom> &f- &7Deny to be an ally with the kingdom"
         5:
            - "&9/kd declareenemy <kingdom> &f- &7Declare the kingdom as an enemy"
            - "&9/kd requestneutral <kingdom> &f- &7Request to be neutral with the kingdom"
            - "&9/kd acceptneutral <kingdom> &f- &7Accept to be neutral with the kingdom"
            - "&9/kd denyneutral <kingdom> &f- &7Deny to be neutral with the kingdom"
      kingdom-false:
         header:
            - ""
            - "&b&m----------&b[&7Kingdoms Help &4(%page%/1)&b]&b&m----------"
         1:
            - "&9/kd acceptinvite <kingdom> &f- &7Accept the invite from the kingdom"
            - "&9/kd denyinvite <kingdom> &f- &7Deny the invite from the kingdom"
   admin:
      header:
         - ""
         - "&b&m----------&b[&7KDAdmin Help &4(%page%/6) &b]&b&m----------"
      footer:
         - ""
         - "&7Type &9/kda help %next% &7for page %next% of the help menu"
      1:
         - "&9/kda help <page> &f- &7Displays the help menu"
         - "&9/kda kingdoms &f- &7List all kingdoms"
         - "&9/kda createkingdom <kingdom> &f- &7Create a kingdom"
         - "&9/kda removekingdom <kingdom> &f- &7Remove a kingdom"
         - "&9/kda info <kingdom> &f- &7Show all info about the kingdom"
      2:
         - "&9/kda setking <player> <kingdom> &f- &7Set the king of the kingdom"
         - "&9/kda addduke <player> <kingdom> &f- &7Add a duke for the kingdom"
         - "&9/kda addgeneral <player> <kingdom> &f- &7Add a general for the kingdom"
         - "&9/kda addsoldier <player> <kingdom> &f- &7Add a soldier for the kingdom"
         - "&9/kda addpeasant <player> <kingdom> &f- &7Add a peasant for the kingdom"
      3:
         - "&9/kda removeking <player> <kingdom> &f- &7Remove the king of the kingdom"
         - "&9/kda removeduke &f- &7Remove a duke from the kingdom"
         - "&9/kda removegeneral &f- &7Remove a general from the kingdom"
         - "&9/kda removesoldier &f- &7Remove a soldier from the kingdom"
         - "&9/kda removepeasant &f- &7Remove a peasant from the kingdom"
      4:
         - "&9/kda setkingprefix <prefix> &f- &7Set the king prefix"
         - "&9/kda setdukeprefix <prefix> &f- &7Set the duke prefix"
         - "&9/kda setgeneralprefix <prefix> &f- &7Set the general prefix"
         - "&9/kda setsoldierprefix <prefix> &f- &7Set the soldier prefix"
         - "&9/kda setmessageprefix <prefix> &f- &7Set the message prefix"
      5:
         - "&9/kda addally &f- &7Add an ally for the kingdom"
         - "&9/kda addenemy &f- &7Add an enemy for the kingdom"
         - "&9/kda removeally &f- &7Remove an ally for the kingdom"
         - "&9/kda removeenemy &f- &7Remove an enemy for the kingdom"
         - "&9/kda users list/about &f- &7All info about users"
      6:
         - "&9/kda reload &f- &7Reload all files"
         - "&9/kda setspawn <kingdom> &f- &7Set the spawnpoint of the kingdom"
         - "&9/kda delspawn <kingdom> &f- &7Remove the spawnpoint of the kingdom"
         - "&9/kda spawn <kingdom> &f- &7Teleport to the kingdom's spawn"
         - "&9/kda settings &f- &7Display the settings menu"

Users file (top)

# Users file

users:
  63ccd124-160e-417f-85a7-fea1eb1a31aa:
    player-name: PaulTDD
    rank: king
    kingdom: test
    total-play-time:
      days: 0
      hours: 13
      minutes: 23
    prefix: '&f'
    chests: 0
    last-logout: 06-05-2017 15:24:32
    logout-location: world, -14, 87, 233

Commands file (top)

# Commands file

command:
  makeking: "makeking"
  makeduke: "makeduke"
  makegeneral: "makegeneral"
  makesoldier: "makesoldier"
  makepeasant: "makepeasant"
  #
  removeking: "removeking"
  removeduke: "removeduke"
  removegeneral: "removegeneral"
  removesoldier: "removesoldier"
  removepeasant: "removepeasant"
  #
  kick: "kick"
  leave: "leave"
  invite: "invite"
  acceptinvite: "acceptinvite"
  denyinvite: "denyinvite"
  #
  requestally: "requestally"
  acceptally: "acceptally"
  denyally: "denyally"
  declareenemy: "declareenemy"
  requestneutral: "requestneutral"
  acceptneutral: "acceptneutral"
  denyneutral: "denyneutral"
  #
  spawn: "spawn"
  setspawn: "setspawn"
  delspawn: "delspawn"
  #
  disband: "disband"
  setprefix: "setprefix"
  setdesc: "setdesc"
  info: "info"
  #
  kingdoms: "kingdoms"
  #
  createkingdom: "createkingdom"
  removekingdom: "removekingdom"
  #
  setkingprefix: "setkingprefix"
  setdukeprefix: "setdukeprefix"
  setgeneralprefix: "setgeneralprefix"
  setsoldierprefix: "setsoldierprefix"
  setmessageprefix: "setmessageprefix"
  #
  setking: "setking"
  addduke: "addduke"
  addgeneral: "addgeneral"
  addsoldier: "addsoldier"
  addpeasant: "addpeasant"
  #
  removeking: "removeking"
  removeduke: "removeduke"
  removegeneral: "removegeneral"
  removesoldier: "removesoldier"
  removepeasant: "removepeasant"
  # 
  addally: "addally"
  addenemy: "addenemy"
  removeally: "removeally"
  removeenemy: "removeenemy"

⚠️ **GitHub.com Fallback** ⚠️