<1.0.5> Fixed EaglerXVelocity always reported as "cracked"
This commit is contained in:
parent
0827a320cd
commit
ad3579659d
Binary file not shown.
|
@ -168,6 +168,7 @@ public class EaglerXVelocity {
|
|||
EaglerCommand.register(this, new CommandConfirmCode());
|
||||
EaglerCommand.register(this, new CommandDomain());
|
||||
EaglerAuthConfig authConf = conf.getAuthConfig();
|
||||
conf.setCracked(!proxy.getConfiguration().isOnlineMode() || !authConf.isEnableAuthentication());
|
||||
if(authConf.isEnableAuthentication() && authConf.isUseBuiltInAuthentication()) {
|
||||
if(!proxy.getConfiguration().isOnlineMode()) {
|
||||
logger.error("Online mode is set to false! Authentication system has been disabled");
|
||||
|
@ -293,6 +294,7 @@ public class EaglerXVelocity {
|
|||
if(conf == null) {
|
||||
throw new IOException("Config failed to parse!");
|
||||
}
|
||||
conf.setCracked(!proxy.getConfiguration().isOnlineMode() || !conf.getAuthConfig().isEnableAuthentication());
|
||||
HttpWebServer.regenerate404Pages();
|
||||
} catch (IOException e) {
|
||||
throw new IllegalStateException(e);
|
||||
|
|
|
@ -17,13 +17,13 @@ package net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity;
|
|||
*/
|
||||
public class EaglerXVelocityVersion {
|
||||
|
||||
public static final String NATIVE_VELOCITY_BUILD = "3.3.0-SNAPSHOT:07f1f9e7:b396";
|
||||
public static final String NATIVE_VELOCITY_BUILD = "3.3.0-SNAPSHOT:e60e2063:b399";
|
||||
|
||||
public static final String ID = "EaglerXVelocity";
|
||||
public static final String PLUGIN_ID = "eaglerxvelocity";
|
||||
public static final String NAME = "EaglercraftXVelocity";
|
||||
public static final String DESCRIPTION = "Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks";
|
||||
public static final String VERSION = "1.0.4";
|
||||
public static final String VERSION = "1.0.5";
|
||||
public static final String[] AUTHORS = new String[] { "lax1dude", "ayunami2000" };
|
||||
|
||||
}
|
||||
|
|
|
@ -276,6 +276,7 @@ public class EaglerVelocityConfig {
|
|||
private final Set<String> disableVoiceOnServers;
|
||||
private final boolean disableFNAWSkinsEverywhere;
|
||||
private final Set<String> disableFNAWSkinsOnServers;
|
||||
private boolean isCrackedFlag;
|
||||
Property[] eaglerPlayersVanillaSkinCached = new Property[] { isEaglerProperty };
|
||||
|
||||
public String getServerName() {
|
||||
|
@ -402,7 +403,11 @@ public class EaglerVelocityConfig {
|
|||
}
|
||||
|
||||
public boolean isCracked() {
|
||||
return true;
|
||||
return isCrackedFlag;
|
||||
}
|
||||
|
||||
public void setCracked(boolean cracked) {
|
||||
isCrackedFlag = cracked;
|
||||
}
|
||||
|
||||
public EaglerAuthConfig getAuthConfig() {
|
||||
|
|
|
@ -77,7 +77,6 @@ public class QueryManager {
|
|||
json.addProperty("brand", "lax1dude");
|
||||
json.addProperty("vers", EaglerXVelocityVersion.ID + "/" + EaglerXVelocityVersion.VERSION);
|
||||
json.addProperty("cracked", conf.isCracked());
|
||||
json.addProperty("secure", false);
|
||||
json.addProperty("time", System.currentTimeMillis());
|
||||
json.addProperty("uuid", conf.getServerUUID().toString());
|
||||
return json;
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"id":"eaglerxvelocity","name":"EaglercraftXVelocity","version":"1.0.4","description":"Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks","authors":["lax1dude", "ayunami2000"],"dependencies":[],"main":"net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity.EaglerXVelocity"}
|
||||
{"id":"eaglerxvelocity","name":"EaglercraftXVelocity","version":"1.0.5","description":"Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks","authors":["lax1dude", "ayunami2000"],"dependencies":[],"main":"net.lax1dude.eaglercraft.v1_8.plugin.gateway_velocity.EaglerXVelocity"}
|
|
@ -1 +1 @@
|
|||
1.0.4
|
||||
1.0.5
|
Loading…
Reference in New Issue
Block a user