Interface administrators, moderator
2,756
edits
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
* Rules can be added in two ways: using the [[ServerConfiguration|server configuration xml]] via the <rule> tag or using the server-side scripting functions [[server.setRule|server.setRule]] and [[server.getRule|server.getRule]]. | * Rules can be added in two ways: using the [[ServerConfiguration|server configuration xml]] via the <rule> tag or using the server-side scripting functions [[server.setRule|server.setRule]] and [[server.getRule|server.getRule]]. | ||
* Setting a rule's value to null will delete the rule. Server rules are case sensitive so for example, "test" and "Test" will display as separate rules.<br> | * Setting a rule's value to null will delete the rule. Server rules are case sensitive so for example, "test" and "Test" will display as separate rules.<br> | ||
* Server.xml Example: <code><rule name=" | * Server.xml Example: <code><rule name="Owner" value="Your_Name" /></code><br> | ||
* Scripting Example: <code>server.setRule(" | * Scripting Example: <code>server.setRule("Owner", "Your_Name")</code><br> | ||
== Built-in Rules == | == Built-in Rules == |