Refactor configuration system (again) to allow for SQL-based configuration files.

This commit contains breaking, unmigrated changes to events.yml. There may be code to upgrade old files to the new format in the future, but there is none as of yet. You have been warned.
This commit is contained in:
h31ix committed 2013-10-11 01:21:27 -04:00
1 parent 0c6db1fed9
commit ca4406809b
25 files changed
+852 -357

No files matched your search

+15 -7
View File
@@ -20,13 +20,21 @@ database:
prefix: 'ac_'
# Database/Schema to use
database: 'minecraft'
logging:
# Keep events in the database?
# Logging settings
log:
# Upload cheat logs to the database?
enable: true
# Time for actions logged to stay in the database (in days)
# Time for logs to stay in the database (in days)
life: 2
# How often to upload events to the database (in minutes)
# How often to upload logs to the database (in minutes)
interval: 5
users:
# Synchronize user's levels in the database?
enable: true
# Syncing settings
sync:
# Keep user's levels synced in the database?
users: true
# Configuration settings
config:
# Load events configuration from the database?
events: true
# Load rules configuration from the database?
rules: true
+4 -8
View File
@@ -1,13 +1,9 @@
# AntiCheat configuration file
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/
levels:
- 'Medium : 20 : YELLOW'
- 'High : 50 : RED'
- 'Custom : -1 : GREEN'
actions:
- 'Medium: WARN'
- 'High: KICK'
- 'Custom: COMMAND[ban &player;say hello world]'
events:
- 'Medium : 20 : YELLOW : WARN'
- 'High : 50 : RED : KICK'
- 'Custom : -1 : GREEN : COMMAND[ban &player;say hello world]'
rules:
# if spider check is less than 0, set level to 20. otherwise, do nothing
- 'Check_SPIDER < 0 ? Player.KICK : null'