forked from 2009Scape/Server
update database, default clan, sql stuff
This commit is contained in:
parent
13171d3d78
commit
0c326b548e
7 changed files with 130 additions and 329 deletions
File diff suppressed because one or more lines are too long
|
|
@ -12,13 +12,6 @@ import org.crandor.tools.mysql.Database;
|
|||
*/
|
||||
public final class ServerConstants {
|
||||
|
||||
/**
|
||||
* The administrators.
|
||||
*/
|
||||
public static final String[] ADMINISTRATORS = {
|
||||
"RedSparr0w",
|
||||
};
|
||||
|
||||
/**
|
||||
* The cache path.
|
||||
*/
|
||||
|
|
@ -150,15 +143,16 @@ public final class ServerConstants {
|
|||
/**
|
||||
* The string of donation messages displayed on an interface.
|
||||
*/
|
||||
public static final String[] MESSAGES = new String[] {"Welcome!" };
|
||||
public static final String[] MESSAGES = new String[] { "Welcome!" };
|
||||
|
||||
public static final String[] DATABASE_NAMES = {
|
||||
"server", "global"
|
||||
"server",
|
||||
"global",
|
||||
};
|
||||
|
||||
|
||||
public static final Database[] DATABASES = {
|
||||
new Database((SQLManager.LOCAL ? "localhost" : "redsparr0w.com"), (SQLManager.LOCAL ? "server" : DATABASE_NAMES[0]), (SQLManager.LOCAL ? "root" : "username"), (SQLManager.LOCAL ? "" : "password")),
|
||||
new Database((SQLManager.LOCAL ? "localhost" : "redsparr0w.com"), (SQLManager.LOCAL ? "global" : DATABASE_NAMES[1]), (SQLManager.LOCAL ? "root" : "username"), (SQLManager.LOCAL ? "" : "password"))
|
||||
new Database(SQLManager.SQL_SERVER_ADDRESS, DATABASE_NAMES[0], (SQLManager.LOCAL ? "root" : "username"), (SQLManager.LOCAL ? "" : "password")),
|
||||
new Database(SQLManager.SQL_SERVER_ADDRESS, DATABASE_NAMES[1], (SQLManager.LOCAL ? "root" : "username"), (SQLManager.LOCAL ? "" : "password"))
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -21,21 +21,23 @@ public final class SQLManager {
|
|||
*/
|
||||
public static final boolean LOCAL = true;
|
||||
|
||||
public static final String SQL_SERVER_ADDRESS = LOCAL ? "127.0.0.1" : "mywebsite.com";
|
||||
|
||||
/**
|
||||
* The username of the user.
|
||||
*/
|
||||
private static final String USERNAME = LOCAL ? "root" : "username";
|
||||
|
||||
/**
|
||||
* The password of the user.
|
||||
*/
|
||||
private static final String PASSWORD = LOCAL ? "" : "password";
|
||||
|
||||
/**
|
||||
* The database URL.
|
||||
*/
|
||||
public static final String DATABASE_URL = (LOCAL ? "127.0.0.1" : "keldagrim.org") + ":3306/"+ (LOCAL ? "global" : ServerConstants.DATABASE_NAMES[1]);
|
||||
public static final String DATABASE_URL_SERVER = (LOCAL ? "127.0.0.1" : "keldagrim.org") + ":3306/"+ (LOCAL ? "server" : ServerConstants.DATABASE_NAMES[0]);
|
||||
|
||||
/**
|
||||
* The username of the user.
|
||||
*/
|
||||
private static final String USERNAME = (LOCAL ? "root" : "keldagr1_ethan");
|
||||
|
||||
/**
|
||||
* The password of the user.
|
||||
*/
|
||||
private static final String PASSWORD = (LOCAL ? "" : "2jf4wkz$");
|
||||
public static final String DATABASE_URL = SQL_SERVER_ADDRESS + ":3306/" + ServerConstants.DATABASE_NAMES[1];
|
||||
public static final String DATABASE_URL_SERVER = SQL_SERVER_ADDRESS + ":3306/" + ServerConstants.DATABASE_NAMES[0];
|
||||
|
||||
/**
|
||||
* IF the sql manager is initialized.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue