Code:
package org.matrix.utils;
import java.math.BigInteger;
import org.matrix.node.map.Location;
/**
* Holds the constants for this server.
* @author Apache Ah64
*/
public class Constants {
/**
* The server name.
*/
public final static String SERVER_NAME = "Matrix";
/**
* The server port.
*/
public final static int GAME_PORT = 43594;
/**
* The client build.
*/
public static final int CLIENT_BUILD = 731;
/**
* The client sub build.
*/
public static final int CLIENT_SUB_BUILD = 1;
/**
* If developer mode is supposed to be active {@code true}.
*/
public static final boolean DEVELOPER_MODE = true;
/**
* The player save path.
*/
public static final String PLAYER_SAVE_PATH = "data/characters/";
/**
* The cache path.
*/
public static final String CACHE_PATH = "data/cache/";
/**
* The plugins path.
*/
public static final String PLUGINS_PATH = "data/plugins";
/**
* The punishments path.
*/
public static final String PUNISHMENTS_PATH = "data/punishments.mx";
/**
* The maximum amount of players.
*/
public static final int MAX_PLAYERS = 2048;
/**
* The maximum amount of players in the friendschat.
*/
public static final int MAX_FRIENDS_CHAT_PLAYERS = 100;
/**
* The maximum amount of channels in the friendschat.
*/
public static final int MAX_FRIENDS_CHANNELS = 100;
/**
* The maximum amount of friends/ignores in the friends/ignores list.
*/
public static final int MAX_FRIENDS_IGNORES = 200;
/**
* The maximum amount of NPC's.
*/
public static final int MAX_NPCS = 32767;
/**
* The default player location.
*/
public static final Location DEFAULT_PLAYER_LOCATION = Location.create(3093, 3107, 0);
/**
* The receive data limit.
*/
public static final int RECEIVE_DATA_LIMIT = 7500;
/**
* The RSA update server exponent.
*/
public static final BigInteger UPDATE_SERVER_MODULUS = new BigInteger("120939379545801108457092146136811590420117523610064329653999963622953411640892324098339081283171912438928542907153945666535787774120650877051372580500361985127885543638857782912119058293779031071351842051170733225061372133137112279533742782156137403056226682880755263648445207569855678164101699535411202797793");
/**
* The RSA update server module.
*/
public static final BigInteger UPDATE_SERVER_EXPONENT = new BigInteger("116004886039759144924823894633541160086361107263064741368072992557329757480223601473883297476296381153369317984839380600812353736737209150313264789782783070454203314363903974971831420929231516330529864396566068512185632885056062640327840641734302009883004782591064275287500533212626993040798901609596793942785");
/**
* The RSA login exponent.
*/
public static final BigInteger LOGIN_EXPONENT = new BigInteger("101521344376230457116763561496333896118695200540835390012618067855812374446350530514392703350814315018503110480442155922899944749721401059449237430604591161867291224191408527439687174591056126248154359079088357096501314949835473694915241698749310876797275868196620118592705041178439340344507921261568334113727");
/**
* The RSA login module.
*/
public static final BigInteger LOGIN_MODULUS = new BigInteger("97986368593595336449957719798748807528389534312076271346692034762339010720721162208949302690934273715541057012685484121992706488603799746943886868072896419858554730745006745702106841094486101183626653010817229035482795500077179203008407982492006628927520348330563549085690263875487431928517959476709053202513");
/**
* The grab server keys.
*/
public static final int[] GRAB_SERVER_KEYS = {1441,78700,44880,39771,363186,44375,0,16140,7316 ,271148,810710,
216189,379672,454149,933950,21006,25367,17247,1244,1,14856,1494,119,882901,1818764,3963,3618};
/**
* The server token.
*/
public static final String SERVER_TOKEN = "tTV1IqwcDf3dBRuoX+3/+eB0Kafa2rMW";
/**
* The second server token.
*/
public static final String SECOND_SERVER_TOKEN = "wwGlrZHF5gKT9J40b*IknPyblWPzbLzKKmc7smulyiQ";
/**
* The packet sizes.
*/
public static final int[] PACKET_SIZES = new int[104];
static {
PACKET_SIZES[0] = -1;
PACKET_SIZES[1] = 8;
PACKET_SIZES[2] = -2;
PACKET_SIZES[3] = 8;
PACKET_SIZES[4] = 2;
PACKET_SIZES[5] = 18;
PACKET_SIZES[6] = 1;
PACKET_SIZES[7] = -1;
PACKET_SIZES[8] = 16;
PACKET_SIZES[9] = 9;
PACKET_SIZES[10] = -1;
PACKET_SIZES[11] = 3;
PACKET_SIZES[12] = 3;
PACKET_SIZES[13] = 5;
PACKET_SIZES[14] = 8;
PACKET_SIZES[15] = 7;
PACKET_SIZES[16] = -2;
PACKET_SIZES[17] = 8;
PACKET_SIZES[18] = 2;
PACKET_SIZES[19] = 8;
PACKET_SIZES[20] = 4;
PACKET_SIZES[21] = 3;
PACKET_SIZES[22] = 3;
PACKET_SIZES[23] = 8;
PACKET_SIZES[24] = 7;
PACKET_SIZES[25] = 3;
PACKET_SIZES[26] = -1;
PACKET_SIZES[27] = 2;
PACKET_SIZES[28] = 0;
PACKET_SIZES[29] = 8;
PACKET_SIZES[30] = 8;
PACKET_SIZES[31] = 7;
PACKET_SIZES[32] = 9;
PACKET_SIZES[33] = 8;
PACKET_SIZES[34] = -1;
PACKET_SIZES[35] = -1;
PACKET_SIZES[36] = 3;
PACKET_SIZES[37] = 6;
PACKET_SIZES[38] = 9;
PACKET_SIZES[39] = 9;
PACKET_SIZES[40] = 4;
PACKET_SIZES[41] = 3;
PACKET_SIZES[42] = 4;
PACKET_SIZES[43] = -1;
PACKET_SIZES[44] = 17;
PACKET_SIZES[45] = -2;
PACKET_SIZES[46] = 4;
PACKET_SIZES[47] = 2;
PACKET_SIZES[48] = 7;
PACKET_SIZES[49] = 9;
PACKET_SIZES[50] = -1;
PACKET_SIZES[51] = 0;
PACKET_SIZES[52] = 6;
PACKET_SIZES[53] = 3;
PACKET_SIZES[54] = 1;
PACKET_SIZES[55] = 16;
PACKET_SIZES[56] = 3;
PACKET_SIZES[57] = -1;
PACKET_SIZES[58] = 4;
PACKET_SIZES[59] = -1;
PACKET_SIZES[60] = 0;
PACKET_SIZES[61] = 3;
PACKET_SIZES[62] = 3;
PACKET_SIZES[63] = 3;
PACKET_SIZES[64] = 9;
PACKET_SIZES[65] = -1;
PACKET_SIZES[66] = -1;
PACKET_SIZES[67] = 4;
PACKET_SIZES[68] = 8;
PACKET_SIZES[69] = 4;
PACKET_SIZES[70] = 1;
PACKET_SIZES[71] = -1;
PACKET_SIZES[72] = -1;
PACKET_SIZES[73] = -1;
PACKET_SIZES[74] = 4;
PACKET_SIZES[75] = -1;
PACKET_SIZES[76] = -2;
PACKET_SIZES[77] = 3;
PACKET_SIZES[78] = -1;
PACKET_SIZES[79] = 7;
PACKET_SIZES[80] = -1;
PACKET_SIZES[81] = -2;
PACKET_SIZES[82] = 11;
PACKET_SIZES[83] = 7;
PACKET_SIZES[84] = -1;
PACKET_SIZES[85] = 6;
PACKET_SIZES[86] = 7;
PACKET_SIZES[87] = -1;
PACKET_SIZES[88] = -1;
PACKET_SIZES[89] = 4;
PACKET_SIZES[90] = 1;
PACKET_SIZES[91] = 12;
PACKET_SIZES[92] = 11;
PACKET_SIZES[93] = -1;
PACKET_SIZES[94] = 3;
PACKET_SIZES[95] = 3;
PACKET_SIZES[96] = 3;
PACKET_SIZES[97] = -1;
PACKET_SIZES[98] = 3;
PACKET_SIZES[99] = 9;
PACKET_SIZES[100] = -2;
PACKET_SIZES[101] = 15;
PACKET_SIZES[102] = -2;
PACKET_SIZES[103] = -2;
}
}