Jump to content

Hey guys,

i'm new to coding in general, and i'm trying to add something to my piece of code that won't work.

If you look at the below screenshots, basically all of this will be managed by the user. He will controll inputted data like the list contents and the 'Welcome Message', and they get passed onto Minecraft which feeds them to a player when a command is used.

 

If you look at the 'Staff Command Message' string, i've got the user input past a colon, then in semicolons the user puts what he wants the player to be mesaged. In this case, it's '&2Hello &p ! Here is a list of our online staff.'

 

The '&2' part of the is important. The &2 is used in my code to represent a color code, so the maanger of the config file can color the message. 

 

However, if I try to put the lists, like Server Moderators in the same fashion using ' ' , the list is not read.

I tried putting only each individual value in quotations,didn't work.

I tried putting the whole list in quotations, starting just before the 'Server Moderators' and ending at the last value, didn't work.

I tried putting the first quotation at the first value and the last quotation on the last, didn't work.

 

What's the correct formatting here? AM I doing something stupid?

 

All help widely appriciated!:)

Screenshot of what i'm talking about :

 

66d8581034564454aac39399ba611a2a.png

Main Rig

CPU: Ryzen 2700X 
Cooler: Corsair H150i PRO RGB 360mm Liquid Cooler
Motherboard: ASUS Crosshair VII Hero
RAM: 16GB (2x8) Trident Z RGB 3200MHZ
SSD: Samsung 960 EVO NVME SSD 1TB, Intel 1TB NVME

Graphics Card: Asus ROG Strix GTX 1080Ti OC

Case: Phanteks Evolv X
Power Supply: Corsair HX1000i Platinum-Rated

Radiator Fans: 3x Corsair ML120
Case Fans: 4x be quiet! Silent Wings 3

 

 

Link to comment
https://linustechtips.com/topic/760191-formatting-for-yml/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×