config.xml
sadimusi edited this page Dec 15, 2011
·
15 revisions
This article describes the config.xml file that was introduced in SimpleServer 8.3 for permission and configuration. It can be found inside the simpleserver/ folder of your server directory.
## Syntax ### Formal definition ``` permission := | ; groups := | , | - groupEntry := | | * group := | + | - id := group ID players := | , playerEntry := | player := player name not := ! | ~ | ¬ ```* : everyone
- : nobody
3 : members of group 3
3+ : members of groups with ID 3 or higher
1-3 : members of groups with ID between 1 and 3 (including the endpoints)
1,3,5 : member of the groups 1,3 and 5
!3 : everyone except members of group 3
1-5,!3 : members of the groups 1 through 5 excluding group 3
;Notch : only Notch
;Notch,sadimusi : Notch and sadimusi
;!Notch : everyone except Notch
1+;Notch,!sadimusi : everyone in groups with ID 1 or greater plus Notch, but not sadimusi
- Make sure to properly escape values (see example).
- Unlike the properties in simpleserver.properties those can be changed while the server is running.
NOTE: syntax changed w/ update, this is a in the mean time update: use something like
<group id="8" name="Owner" color="1" ignoreChestLocks="true" showTitle="true" forwardUnknownCommands="true"/>
-
id
: Unique ID -
name
: Name displayed in chat -
color
: A color code -
ignoreChestLocks
: Group members can open and destroy all locked chests. -
ignoreAreas
: Group members can build and destroy blocks in any area. -
showTitle
: The group's name is displayed in every chat message. -
forwardUnknownCommands
: Forwards invalid commands to the server instead of displaying an error message. -
warmup
: Time in seconds teleoports are delayed. -
cooldown
: Time in seconds group members have to wait between teleports.
- It is possible to have negative group IDs.
- It is recommended to order groups by their power for easier permission management.
-
group
: The group the player is in.
- If a player matches botch a
player
and anip
tag the higher group is used.
-
name
: Internal name of a command. -
allow
: Permission to use the command with any arguments. -
rename
: New name of the command. The old name won't work anymore and can be used by other commands or server mods. -
alias
: Alias for the command. Multiple alias tags are allowed. -
argument
: Overrides the commands permission if the arguments start with the specified string. -
hidden
: The help command won't show this command. -
forward
: The command is both parsed by SimpleServer and forwarded to the real server. -
forwardonly
: The command is only forwarded to the real server.
- An argument tag for
set p
matches the command/warp set port
- Only the first matched argument is considered.
- The attributes
rename
,alias
,hidden
,forward
andforwardonly
are not parsed insidedimension
andarea
tags. -
command
tags insidedimension
andarea
tags referring to renamed commands must use the new name.
-
destroy
: Permission for destroying blocks. -
use
: Permission for using blocks. -
place
: Permission for building blocks. -
give
: Permission for giving that block using the/give
command. -
id
: A comma-separated list of single block IDs and ranges of them.
-
block
tags override theallblocks
tag. - The attributes
use
anddestroy
are not allowed inblock
tags. -
block
tags must not include IDs already defined by anotherblock
tag in the same container. - Forbidding the usage of blocks also restricts placing or destroying blocks.
-
allow
: Permission for using chests.
<dimension name="earth">
...
</dimension>
<area start="0,0,0" end="16,64,16" name="my area" priority="5">
...
</area>
allblocks
block
chests
command
area
- The y coordinate for areas can be omitted which defaults to 0 for
start
and 127 forend
. - Areas must be inside a
dimension
tag.
- A player is inside an area if he is inside the start and endpoint of said area or in any of it's child areas.
- An area defined inside another
area
tag inherits all permissions of its parent. - If in any container (
dimension
orarea
) there are multiple areas a block or player is in only the one with the highest priority is considered. If the priority is equal the one defined earlier is used.
<config>
<block id="7" place="-" />
<dimension name="earth">
<area start="0,0" end="32,32" name="A">
<block id="7" place="3+" />
<area start="24,8" end="40,24" name="C">
<chests allow="-" />
</area>
</area>
<area start="16,16" end="48,48" name="B">
<block id="7" place="*" />
</area>
</dimension>
</config>
- Placing bedrock: 3+
- Using chests: *
- Placing bedrock: *
- Using chests: *
- Placing bedrock: 3+
- Using chests: -
Areas include the blocks at the start and end coordinate.
<area start="0,0" end="0,1" name="blue" />
<area start="2,0" end="3,3" name="orange" />