diff --git a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java index 6d550df6..0b06a40c 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java +++ b/src/main/java/com/onarandombox/MultiverseCore/MVWorld.java @@ -51,8 +51,8 @@ public class MVWorld implements MultiverseWorld { private Map> masterList; - private Double scaling; // How stretched/compressed distances are - private Double price; // How much does it cost to enter this world + private double scaling; // How stretched/compressed distances are + private double price; // How much does it cost to enter this world private int currency = -1; // What is the currency private boolean hunger = true; private Permission permission; diff --git a/src/main/java/com/onarandombox/MultiverseCore/api/MultiverseWorld.java b/src/main/java/com/onarandombox/MultiverseCore/api/MultiverseWorld.java index 9af8bc37..8cce9ae6 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/api/MultiverseWorld.java +++ b/src/main/java/com/onarandombox/MultiverseCore/api/MultiverseWorld.java @@ -135,6 +135,15 @@ public interface MultiverseWorld { */ public ChatColor getColor(); + /** + * Tells you if someone entered a valid color. + * + * @param color A string that may translate to a color. + * + * @return True if it is a color, false if not. + */ + public boolean isValidAliasColor(String color); + /** * Returns a very nicely colored string (using Alias and Color if they are set). *