applied code styling

This commit is contained in:
2024-08-24 11:02:28 +02:00
parent 78ba105291
commit 3dc25d63fd
56 changed files with 554 additions and 490 deletions

View File

@@ -10,12 +10,12 @@ public class ConfigUtil {
public static class Position {
public static Location paseLocation(ConfigurationSection section) {
return new Location(
Bukkit.getWorld(Optional.ofNullable(section.getString("world")).orElse("world")),
section.getDouble("x"),
section.getDouble("y"),
section.getDouble("z"),
(float) section.getDouble("yaw"),
(float) section.getDouble("pitch")
Bukkit.getWorld(Optional.ofNullable(section.getString("world")).orElse("world")),
section.getDouble("x"),
section.getDouble("y"),
section.getDouble("z"),
(float) section.getDouble("yaw"),
(float) section.getDouble("pitch")
);
}

View File

@@ -19,7 +19,7 @@ public class Configuration {
public static void saveChanges() {
try {
cfg.save(configFile);
} catch (Exception e) {
} catch(Exception e) {
Bukkit.getLogger().warning("Could not save configuration: " + e.getMessage());
}
}