Added Qinspect subcommand to /plan and /planbungee #365

This commit is contained in:
Rsl1122 2017-12-06 16:48:44 +02:00
parent 89fdd388b6
commit f980ddca9e
3 changed files with 5 additions and 3 deletions

View File

@ -40,6 +40,7 @@ public class PlanBungeeCommand extends TreeCommand<PlanBungee> {
@Override @Override
public void addCommands() { public void addCommands() {
add( add(
new QInspectCommand(plugin),
new ReloadCommand(plugin), new ReloadCommand(plugin),
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()), new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
new ListCommand() new ListCommand()

View File

@ -42,6 +42,7 @@ public class PlanCommand extends TreeCommand<Plan> {
public void addCommands() { public void addCommands() {
add( add(
new InspectCommand(plugin), new InspectCommand(plugin),
new QInspectCommand(plugin),
new AnalyzeCommand(plugin), new AnalyzeCommand(plugin),
new SearchCommand(plugin), new SearchCommand(plugin),
new InfoCommand(plugin), new InfoCommand(plugin),

View File

@ -9,7 +9,7 @@ import com.djrapitops.plugin.settings.DefaultMessages;
import com.djrapitops.plugin.task.AbsRunnable; import com.djrapitops.plugin.task.AbsRunnable;
import com.djrapitops.plugin.task.RunnableFactory; import com.djrapitops.plugin.task.RunnableFactory;
import com.djrapitops.plugin.utilities.Verify; import com.djrapitops.plugin.utilities.Verify;
import main.java.com.djrapitops.plan.Plan; import main.java.com.djrapitops.plan.api.IPlan;
import main.java.com.djrapitops.plan.command.ConditionUtils; import main.java.com.djrapitops.plan.command.ConditionUtils;
import main.java.com.djrapitops.plan.data.PlayerProfile; import main.java.com.djrapitops.plan.data.PlayerProfile;
import main.java.com.djrapitops.plan.settings.Permissions; import main.java.com.djrapitops.plan.settings.Permissions;
@ -31,14 +31,14 @@ import java.util.UUID;
*/ */
public class QInspectCommand extends SubCommand { public class QInspectCommand extends SubCommand {
private final Plan plugin; private final IPlan plugin;
/** /**
* Class Constructor. * Class Constructor.
* *
* @param plugin Current instance of Plan * @param plugin Current instance of Plan
*/ */
public QInspectCommand(Plan plugin) { public QInspectCommand(IPlan plugin) {
super("qinspect", super("qinspect",
CommandType.PLAYER_OR_ARGS, CommandType.PLAYER_OR_ARGS,
Permissions.QUICK_INSPECT.getPermission(), Permissions.QUICK_INSPECT.getPermission(),