mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-22 10:05:16 +01:00
Clean up Economable a bit
This commit is contained in:
parent
ee8f8aa428
commit
5ce54d7779
@ -13,7 +13,7 @@ public interface Economable {
|
||||
return new EconomablePlayer(player);
|
||||
}
|
||||
|
||||
static Economable wrap(String playerName) {
|
||||
return () -> "wtf:" + playerName;
|
||||
static Economable wrap(String identifier) {
|
||||
return new EconomableGeneric("generic:" + identifier);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,18 @@
|
||||
package org.appledash.saneeconomy.economy.economable;
|
||||
|
||||
/**
|
||||
* Created by appledash on 7/19/16.
|
||||
* Blackjack is still best pony.
|
||||
*/
|
||||
public class EconomableGeneric implements Economable {
|
||||
private String uniqueIdentifier;
|
||||
|
||||
public EconomableGeneric(String uniqueIdentifier) {
|
||||
this.uniqueIdentifier = uniqueIdentifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUniqueIdentifier() {
|
||||
return uniqueIdentifier;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user