mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 23:38:10 +07:00
Bugfixes
This commit is contained in:
@ -87,7 +87,7 @@ public class ModsDialog extends FloatingDialog{
|
|||||||
void modError(Throwable error){
|
void modError(Throwable error){
|
||||||
ui.loadfrag.hide();
|
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");
|
ui.showErrorMessage("$feature.unsupported");
|
||||||
}else{
|
}else{
|
||||||
ui.showException(error);
|
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 -> {
|
handler.register("unban", "<ip/ID>", "Completely unban a person by IP or ID.", arg -> {
|
||||||
if(arg[0].contains(".")){
|
if(netServer.admins.unbanPlayerIP(arg[0]) || netServer.admins.unbanPlayerID(arg[0])){
|
||||||
if(netServer.admins.unbanPlayerIP(arg[0])){
|
info("Unbanned player.", arg[0]);
|
||||||
info("Unbanned player by IP: {0}.", arg[0]);
|
|
||||||
}else{
|
|
||||||
err("That IP is not banned!");
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
if(netServer.admins.unbanPlayerID(arg[0])){
|
err("That IP/ID is not banned!");
|
||||||
info("Unbanned player by ID: {0}.", arg[0]);
|
|
||||||
}else{
|
|
||||||
err("That ID is not banned!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user