mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-19 21:10:17 -07:00
Add shop command
This commit is contained in:
parent
ccd7cc582f
commit
dbe36b04e4
1 changed files with 11 additions and 1 deletions
|
|
@ -21,6 +21,8 @@ import org.crandor.plugin.InitializablePlugin;
|
|||
import org.crandor.plugin.Plugin;
|
||||
import org.crandor.tools.StringUtils;
|
||||
|
||||
import plugin.zone.GrandExchangeZone.CreditStore;
|
||||
|
||||
/**
|
||||
* Handles a player command.
|
||||
* @author Vexia
|
||||
|
|
@ -28,6 +30,11 @@ import org.crandor.tools.StringUtils;
|
|||
@InitializablePlugin
|
||||
public final class PlayerCommandPlugin extends CommandPlugin {
|
||||
|
||||
/**
|
||||
* The store that sells items in exchange for credits.
|
||||
*/
|
||||
private static final CreditStore CREDIT_STORE = new CreditStore();
|
||||
|
||||
@Override
|
||||
public Plugin<Object> newInstance(Object arg) throws Throwable {
|
||||
link(CommandSet.PLAYER);
|
||||
|
|
@ -48,7 +55,10 @@ public final class PlayerCommandPlugin extends CommandPlugin {
|
|||
TutorialStage.load(player, stage, false);
|
||||
break;
|
||||
*/
|
||||
|
||||
case "shop":
|
||||
CREDIT_STORE.open(player);
|
||||
break;
|
||||
|
||||
case "bankresettabs":
|
||||
for (int i = 0; i < player.getBank().getTabStartSlot().length; i++) {
|
||||
player.getBank().getTabStartSlot()[i] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue