public abstract class IndividualVariable extends Variable
| Constructor and Description |
|---|
IndividualVariable(java.lang.String placeholder)
Creates a new Variable Object with the specified Placeholder
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(org.bukkit.entity.Player p,
java.lang.String string)
Returns the specified String with this Variable appplied to it
|
abstract java.lang.String |
getVariable(org.bukkit.entity.Player p)
Sets the String which will replace the placeholder
|
public IndividualVariable(java.lang.String placeholder)
placeholder - The String which will get replaced by the Variablepublic abstract java.lang.String getVariable(org.bukkit.entity.Player p)
p - The Player who this Variable refers topublic java.lang.String apply(org.bukkit.entity.Player p,
java.lang.String string)
p - The Player this Variable refers tostring - The String which this Variable will be applied to