All settings in PartyCraft consist of two items: a key and a value. For example, the value for Message of the Day is stored with the key of server.mtod. All of these values can be changed at runtime with the setting command. In addition, all of these settings are also stored in XML files. All XML files in the same directory as PartyCraft (and all subdirectories) will be parsed for any settings. They are loaded in a special way, where each setting's in-game name is the same as it's hierarchy in XML. For example, to set server.motd from XML, use the following:
<?xml version="1.0" ?>
<PartyCraft>
  <server>
    <motd>Message of the day!</motd>
  </server>
</PartyCraft>
The message of the day has a key of server.motd. You can set server properties as an attribute:
<?xml version="1.0" ?>
<PartyCraft>
  <server mode="creative">
    <motd>Message of the day!</motd>
  </server>
</PartyCraft>

All PartyCraft settings are case-insensitive. MoTD is the same as moTd to PartyCraft.

Last edited Jan 24, 2012 at 4:54 AM by sircmpwn, version 8

Comments

No comments yet.