v++
This commit is contained in:
@@ -7,15 +7,16 @@ public class ShutdownTestingServer extends TestingServerSSHPass {
|
||||
return "/icons/Stop25.png";
|
||||
}
|
||||
@Override
|
||||
public String getButtonText() {
|
||||
return "";
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
return passes.get(PassCode_2021.PingTestingServer).Do();
|
||||
if (passes.get(PassCode_2021.PingTestingServer).Do(true)){
|
||||
return true;
|
||||
}else {
|
||||
Log.Writeln_("Сервер уже неактивен!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void ServerAction() throws Exception {
|
||||
Shutdown();
|
||||
ShutdownServer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user