forked from xjboss/KCauldronX
Some portion of optimizations:
* Clear outgoing packet queue after player disconnect * Disable sleep between chunk saving * Put 2x4096 bytes instead 2048x4 bytes for region file aligment * Using map to search player by name instead iterating over all players * Some tweaks for decorations (item frames, maps)
This commit is contained in:
@ -41,6 +41,8 @@ public class KCauldron {
|
||||
sGroup = manifest.getProperty("KCauldron-Group");
|
||||
sBranch = manifest.getProperty("KCauldron-Branch");
|
||||
sChannel = manifest.getProperty("KCauldron-Channel");
|
||||
sLegacy = Boolean.parseBoolean(manifest.getProperty("KCauldron-Legacy"));
|
||||
sOfficial = Boolean.parseBoolean(manifest.getProperty("KCauldron-Official"));
|
||||
break;
|
||||
}
|
||||
manifest.clear();
|
||||
@ -99,6 +101,18 @@ public class KCauldron {
|
||||
parseManifest();
|
||||
return sChannel;
|
||||
}
|
||||
|
||||
private static boolean sLegacy, sOfficial;
|
||||
|
||||
public static boolean isLegacy() {
|
||||
parseManifest();
|
||||
return sLegacy;
|
||||
}
|
||||
|
||||
public static boolean isOfficial() {
|
||||
parseManifest();
|
||||
return sOfficial;
|
||||
}
|
||||
|
||||
public static File sNewServerLocation;
|
||||
public static String sNewServerVersion;
|
||||
|
Reference in New Issue
Block a user