Booster gui command

This commit is contained in:
Shaun Bennett 2016-06-10 17:20:23 -05:00
parent e6920b4549
commit 6964b1f266
2 changed files with 26 additions and 1 deletions

View File

@ -18,11 +18,13 @@ public class BoosterCommand extends MultiCommandBase<BoosterManager>
super(plugin, Rank.DEVELOPER, "booster");
AddCommand(new AddCommand(plugin));
AddCommand(new GuiCommand(plugin));
}
@Override
protected void Help(Player caller, String[] args)
{
UtilPlayer.message(caller, F.help("booster add <servergroup>", "Add a booster to that server group", Rank.DEVELOPER));
UtilPlayer.message(caller, F.help("booster add <boostergroup>", "Add a booster to that booster group", Rank.DEVELOPER));
UtilPlayer.message(caller, F.help("booster gui", "Open Booster GUI", Rank.DEVELOPER));
}
}

View File

@ -0,0 +1,23 @@
package mineplex.core.boosters.command;
import mineplex.core.boosters.BoosterManager;
import mineplex.core.command.CommandBase;
import mineplex.core.common.Rank;
import org.bukkit.entity.Player;
/**
* @author Shaun Bennett
*/
public class GuiCommand extends CommandBase<BoosterManager>
{
public GuiCommand(BoosterManager plugin)
{
super(plugin, Rank.DEVELOPER, "gui");
}
@Override
public void Execute(Player caller, String[] args)
{
Plugin.openShop(caller);
}
}