1.12.2 YAML File Problem

Discussion in 'Spigot Plugin Development' started by TheUncleBartoDev, Mar 12, 2020.

Thread Status:
Not open for further replies.
  1. Code (Text):

    LobbyBrain:
      # If you want to enable this option, then 2 sample files will be generated in the Inventory folder as inventory example
      Example: true
     
      # This will be the welcome message when a player joins to the server
      messageofwelcome: '&bWelcome &e%player_name%&b, enjoy your stay with a server running
        &6LobbyBrain!'
     
      # This will be the broadcast message that will be announced when a player with the lobbybrain.messageonjoin permission
      # join to the server
      announcementPlayerOnJoin:
        Message: '&7[&a+&7] &6%player_name% &ahas joined to the server'
        enable: true
     
      # This will be the broadcast message that will be announced when a player with the lobbybrain.messageonjoin permission
      # leave to the server
      AnnouncementOnQuit:
         Message: '&7[&c-&7] &6%player_name% &ahas quit to the server'
         enable: true
      BossBar:
        enable: true
        ticks: 20
        Tittle:
        - '&aHello'
        - '&6%player_name%'
        - '&cdid you know...'
        - '&bthis server...'
        - '&e&lRUNNING &3&LLOBBYBRAIN&B&l!?'
        barColor: BLUE
        barStyle: SEGMENTED_10
     
      # If the server is in version 1.8, then this option will be disabled
        barFlag: DARKEN_SKY
     
      # If you want a player exploding with the permission lobbybrain.particlesonjoin to cause a particle explosion, set this option to true
      ParticlesOnJoin:
        enable: true
      Scoreboard:
        enable: true
        ticks: 5
        Tittle:
        - '&A&lLobby&D&LBrain'
        - '&c&lL&A&lobby&d&lBrain'
        - '&a&lL&c&lo&A&Lbby&d&lBrain'
        - '&A&LLo&c&lb&A&Lby&d&lBrain'
        - '&a&lLob&c&lb&A&Ly&D&LBrain'
        - '&A&LLobb&c&ly&d&LBrain'
        - '&A&LLobby&9&lB&d&lrain'
        - '&A&lLobby&d&lB&9&lr&d&lain'
        - '&A&LLobby&d&lBr&9&la&d&lin'
        - '&A&LLobby&D&lBra&9&li&D&Ln'
        - '&A&LLobby&d&LBrai&9&ln'
        Scores:
        - '                  &7%server_time_dd/MM/YYYY%'
        - '      '
        - '&b&l>> &APlayer: &e%player_name%'
        - '     '
        - '&b&l>> &aPing: &b%player_ping%ms'
        - '    '
        - '&b&l>> &aServer: &5%server_name%'
        - '  '
        - '&b&l>> &aWorld: &3%player_world%'
        - ' '
        - '&b&l>> &APlayerIsOP: &d%player_is_op%'
        - ''
        - '&6==[You are using LobbyBrain plugin]=='
     
      # The Height-Prohibited option is used to prohibit a Y coordinate, that is, if the player has been thrown into the void, once his Y equals the prohibited height, then he will be teleported to the spawn
      Height-Prohibited:
       
        # What does this mean? Simple, in this case the prohibited height will be 0, so if this option contains "<"
        # then the player will be teleported to spawn once its Y coordinate is less than the Y coordinate specified here,
        # and if it contains ">" then if exceeds the Y coordinate it will be teleported to the spawn (not recommended to use ">" with the Y coordinate = 0)
        Major_Or_Minor: <
        enable: true
        Heights:
        - '0'
     
      # By default this option will be disabled, if you want you can put a spawn with / lobbybrain spawn and these will be the coordinates :D
      #  Spawn:
      #    world: undefined
      #    x: undefined
      #    y: undefined
      #    z: undefined
      #    yaw: undefined
      #    pitch: undefined
      # This is the list of particles that lobbybrain supports, if you want to remove any, you are free to do so!
      ParticlesList:
      - FIREWORK
      - FLAME
      - DRAGONBREATH
      - FORTUNE
      - COLORS
     
    I have that .yml file which when starting the plugin, it is supposed to create a file called config.yml and overwrite the data, but the problem is that, although the config.yml file and its content in some part is generated, the annotations "# Something here"
    They are not generated when writing the data.
     
Thread Status:
Not open for further replies.