use of com.djrapitops.plan.exceptions.EnableException in project Plan by plan-player-analytics.
the class NetworkSettingManager method createServerSettingsFolder.
private File createServerSettingsFolder() {
try {
File serverConfigFolder = files.getFileFromPluginFolder("serverConfiguration");
Path dir = serverConfigFolder.toPath();
if (!Files.isSymbolicLink(dir))
Files.createDirectories(dir);
return serverConfigFolder;
} catch (IOException e) {
throw new EnableException("Could not initialize NetworkSettingManager: " + e.getMessage(), e);
}
}
use of com.djrapitops.plan.exceptions.EnableException in project Plan by plan-player-analytics.
the class Theme method enable.
@Override
public void enable() {
try {
themeConfig = new ThemeConfig(files, config, logger);
themeConfig.save();
} catch (IOException e) {
throw new EnableException("theme.yml could not be saved.", e);
}
}
use of com.djrapitops.plan.exceptions.EnableException in project Plan by plan-player-analytics.
the class VelocityServerInfo method createServerObject.
/**
* @throws EnableException
*/
private Server createServerObject() {
ServerUUID serverUUID = generateNewUUID();
String accessAddress = addresses.getAccessAddress().orElseThrow(() -> new EnableException("Velocity can not have '0.0.0.0' or '' as an address. Set up 'Server.IP' setting."));
return new Server(-1, serverUUID, "Velocity", accessAddress, true);
}
use of com.djrapitops.plan.exceptions.EnableException in project Plan by plan-player-analytics.
the class BungeeServerInfo method createServerObject.
/**
* @throws EnableException
*/
private Server createServerObject() {
ServerUUID serverUUID = generateNewUUID();
String accessAddress = addresses.getAccessAddress().orElseThrow(() -> new EnableException("Velocity can not have '0.0.0.0' or '' as an address. Set up 'Server.IP' setting."));
return new Server(-1, serverUUID, "BungeeCord", accessAddress, true);
}
use of com.djrapitops.plan.exceptions.EnableException in project Plan by plan-player-analytics.
the class ProxyServerInfo method createServerObject.
private Server createServerObject() {
ServerUUID serverUUID = generateNewUUID();
String accessAddress = addresses.getAccessAddress().orElseThrow(() -> new EnableException("Velocity can not have '0.0.0.0' or '' as an address. Set up 'Server.IP' setting."));
return new Server(-1, serverUUID, "BungeeCord", accessAddress, true);
}
Aggregations