Add seperate credits command

This commit is contained in:
RedSparr0w 2019-09-21 12:16:34 +12:00
parent 182754f7ff
commit 12f598768a

View file

@ -57,10 +57,14 @@ public final class PlayerCommandPlugin extends CommandPlugin {
*/
case "shop":
case "credits":
CREDIT_STORE.open(player);
break;
case "credits":
int credits = CREDIT_STORE.getPoints(player);
player.sendMessage("<col=CC0000>You currently have " + credits + " credits to spend.");
break;
case "bankresettabs":
for (int i = 0; i < player.getBank().getTabStartSlot().length; i++) {
player.getBank().getTabStartSlot()[i] = 0;