Open chriscn opened 4 years ago
This JSON approach that works.
{
"channel": [{
"name": "staff",
"format": "&e[STAFF]"
},
{
"name": "admin",
"format": "&c[ADMIN]"
}
]
}
const json_file = require('./test.json');
//console.log(json_file);
let channels = json_file['channel'];
for (let channel of channels) {
console.log("Channel name: " + channel.name + " with format " + channel.format);
}
It would be nice to allow users to define as many custom or
VirtualChannel
as they'd like. I was thinking about acomplishing this through a list in the config. However that is proving more difficult.However that is proving to be very difficult in Java with YAML. Maybe I should use JSON?