mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-22 18:16:11 +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);
|
return new EconomablePlayer(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Economable wrap(String playerName) {
|
static Economable wrap(String identifier) {
|
||||||
return () -> "wtf:" + playerName;
|
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