-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AntiCheat Enterprise is a powerful new system to allow owners of large servers to efficiently run the plugin on their networks. I've ended the commit here because there are significant changes to the configuration methods I'd like to revise before continuing with development.
- Loading branch information
1 parent
045ac99
commit 1e42d58
Showing
5 changed files
with
113 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/main/java/net/h31ix/anticheat/util/enterprise/Database.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* AntiCheat for Bukkit. | ||
* Copyright (C) 2012-2013 AntiCheat Team | http://gravitydevelopment.net | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package net.h31ix.anticheat.util.enterprise; | ||
|
||
public class Database { | ||
|
||
public enum DatabaseType { | ||
MYSQL, | ||
} | ||
|
||
private DatabaseType type; | ||
private String hostname; | ||
private int port; | ||
private String username; | ||
private String password; | ||
private String schema; | ||
private String prefix; | ||
|
||
public Database(DatabaseType type, String hostname, int port, String username, String password, String schema, String prefix) { | ||
this.type = type; | ||
this.hostname = hostname; | ||
this.port = port; | ||
this.username = username; | ||
this.password = password; | ||
this.schema = schema; | ||
this.prefix = prefix; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# AntiCheat configuration file | ||
# Please report any bugs: http://dev.bukkit.org/server-mods/anticheat/ | ||
|
||
# Server-specific settings | ||
server: | ||
# An identifiable name for this server | ||
name: 'server-1' | ||
|
||
# Database settings | ||
database: | ||
# Type of database. | ||
type: MySQL | ||
|
||
# Address of the server | ||
hostname: '' | ||
|
||
# Port of the server | ||
port: 3306 | ||
|
||
# Username to connect with | ||
username: '' | ||
|
||
# Password for the user | ||
password: '' | ||
|
||
# Prefix for the tables | ||
prefix: 'ac_' | ||
|
||
# Database/Schema to use | ||
database: 'minecraft' | ||
|
||
logging: | ||
# Keep events in the database? | ||
enable: true | ||
# Time for actions logged to stay in the database (in days) | ||
life: 2 | ||
|
||
users: | ||
# Synchronize user's levels in the database? | ||
enable: true | ||
# How often to query the databse for synchronization? (in seconds) | ||
interval: 60 |
1e42d58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't wait to see where this goes :)