mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
Bugfixes
This commit is contained in:
@ -87,7 +87,7 @@ public class ModsDialog extends FloatingDialog{
|
||||
void modError(Throwable error){
|
||||
ui.loadfrag.hide();
|
||||
|
||||
if(Strings.getCauses(error).contains(t -> t.getMessage() != null && (t.getMessage().contains("SSL") || t.getMessage().contains("protocol")))){
|
||||
if(Strings.getCauses(error).contains(t -> t.getMessage() != null && (t.getMessage().contains("trust anchor") || t.getMessage().contains("SSL") || t.getMessage().contains("protocol")))){
|
||||
ui.showErrorMessage("$feature.unsupported");
|
||||
}else{
|
||||
ui.showException(error);
|
||||
|
@ -653,18 +653,10 @@ public class ServerControl implements ApplicationListener{
|
||||
});
|
||||
|
||||
handler.register("unban", "<ip/ID>", "Completely unban a person by IP or ID.", arg -> {
|
||||
if(arg[0].contains(".")){
|
||||
if(netServer.admins.unbanPlayerIP(arg[0])){
|
||||
info("Unbanned player by IP: {0}.", arg[0]);
|
||||
}else{
|
||||
err("That IP is not banned!");
|
||||
}
|
||||
if(netServer.admins.unbanPlayerIP(arg[0]) || netServer.admins.unbanPlayerID(arg[0])){
|
||||
info("Unbanned player.", arg[0]);
|
||||
}else{
|
||||
if(netServer.admins.unbanPlayerID(arg[0])){
|
||||
info("Unbanned player by ID: {0}.", arg[0]);
|
||||
}else{
|
||||
err("That ID is not banned!");
|
||||
}
|
||||
err("That IP/ID is not banned!");
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user