mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-10-03 10:07:34 +02: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 Map<String, List<String>> masterList;
|
||||||
|
|
||||||
private Double scaling; // How stretched/compressed distances are
|
private double scaling; // How stretched/compressed distances are
|
||||||
private Double price; // How much does it cost to enter this world
|
private double price; // How much does it cost to enter this world
|
||||||
private int currency = -1; // What is the currency
|
private int currency = -1; // What is the currency
|
||||||
private boolean hunger = true;
|
private boolean hunger = true;
|
||||||
private Permission permission;
|
private Permission permission;
|
||||||
|
@ -135,6 +135,15 @@ public interface MultiverseWorld {
|
|||||||
*/
|
*/
|
||||||
public ChatColor getColor();
|
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).
|
* Returns a very nicely colored string (using Alias and Color if they are set).
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user