applied code styling
This commit is contained in:
@@ -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")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user