Fixed custom client inversion
This commit is contained in:
@@ -98,7 +98,7 @@ public class NetServer extends Module{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(packet.version == -1 && Version.build != -1 && admins.allowsCustomClients()){
|
if(packet.version == -1 && Version.build != -1 && !admins.allowsCustomClients()){
|
||||||
kick(id, KickReason.customClient);
|
kick(id, KickReason.customClient);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,11 +43,12 @@ public class Administration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean allowsCustomClients(){
|
public boolean allowsCustomClients(){
|
||||||
return Settings.getBool("kick-custom", headless);
|
return Settings.getBool("allow-custom", !headless);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCustomClients(boolean allowed){
|
public void setCustomClients(boolean allowed){
|
||||||
Settings.getBool("kick-custom", allowed);
|
Settings.putBool("allow-custom", allowed);
|
||||||
|
Settings.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidateReplace(){
|
public boolean isValidateReplace(){
|
||||||
|
|||||||
Reference in New Issue
Block a user