Skip to content

Instantly share code, notes, and snippets.

@deoxxa
Created December 12, 2010 07:41
Show Gist options
  • Save deoxxa/737913 to your computer and use it in GitHub Desktop.
Save deoxxa/737913 to your computer and use it in GitHub Desktop.
mcj@mini:~/mineserver/config$ cat default.cfg
# Network options
core.net.host = "192.168.0.1";
core.net.port = "25565";
core.name = "My test server!";
# Plugins
core.plugins += ("kit", "admin", "chat");
# Kits
plugin.kit.kits.starter = ("contents":("torch":"12", "stonepickaxe":"1", "stoneaxe":"1", "stonespade":"1"), "levels":("user"));
plugin.kit.kits.better = ("contents":("torch":"24", "ironpickaxe":"1", "ironaxe":"1", "ironspade":"1"), "levels":("user", "admin"));
mcj@mini:~/mineserver/config$ ./app
About to parse...
Got an entity/label: core.net.host
Got an assignment operator
Got a string: 192.168.0.1
Got an entity/label: core.net.port
Got an assignment operator
Got a string: 25565
Got an entity/label: core.name
Got an assignment operator
Got a string: My test server!
Got an entity/label: core.plugins
Got a list initiator
Got a string: kit
Got a string: admin
Got a string: chat
Got a list terminator
Got an entity/label: plugin.kit.kits.starter
Got an assignment operator
Got a list initiator
Got an entity/label: contents
Got a list initiator
Got an entity/label: torch
Got a string: 12
Got an entity/label: stonepickaxe
Got a string: 1
Got an entity/label: stoneaxe
Got a string: 1
Got an entity/label: stonespade
Got a string: 1
Got a list terminator
Got an entity/label: levels
Got a list initiator
Got a string: user
Got a list terminator
Got a list terminator
Got an entity/label: plugin.kit.kits.better
Got an assignment operator
Got a list initiator
Got an entity/label: contents
Got a list initiator
Got an entity/label: torch
Got a string: 24
Got an entity/label: ironpickaxe
Got a string: 1
Got an entity/label: ironaxe
Got a string: 1
Got an entity/label: ironspade
Got a string: 1
Got a list terminator
Got an entity/label: levels
Got a list initiator
Got a string: user
Got a string: admin
Got a list terminator
Got a list terminator
Parsing finished.
list:
core =>
list:
name =>
string: My test server!
net =>
list:
host =>
string: 192.168.0.1
port =>
string: 25565
plugins =>
list:
0 =>
string: kit
1 =>
string: admin
2 =>
string: chat
plugin =>
list:
kit =>
list:
kits =>
list:
better =>
list:
contents =>
list:
ironaxe =>
string: 1
ironpickaxe =>
string: 1
ironspade =>
string: 1
torch =>
string: 24
levels =>
list:
0 =>
string: user
1 =>
string: admin
starter =>
list:
contents =>
list:
stoneaxe =>
string: 1
stonepickaxe =>
string: 1
stonespade =>
string: 1
torch =>
string: 12
levels =>
list:
0 =>
string: user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment