mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 03:11:02 +01:00
Add Colored string to the alias, remove Double, use double
This commit is contained in:
parent
bac24e1c97
commit
aa079b2920
@ -51,8 +51,8 @@ public class MVWorld implements MultiverseWorld {
|
||||
|
||||
private Map<String, List<String>> 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;
|
||||
|
@ -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).
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user