2018-09-25 04:09:39 +02:00
|
|
|
package com.songoda.ultimatekits.command.commands;
|
|
|
|
|
|
|
|
import com.songoda.ultimatekits.UltimateKits;
|
|
|
|
import com.songoda.ultimatekits.command.AbstractCommand;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
2019-08-06 20:48:28 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2018-09-25 04:09:39 +02:00
|
|
|
public class CommandSettings extends AbstractCommand {
|
|
|
|
|
|
|
|
public CommandSettings(AbstractCommand parent) {
|
2019-08-06 20:48:28 +02:00
|
|
|
super(parent, true, "settings");
|
2018-09-25 04:09:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected ReturnType runCommand(UltimateKits instance, CommandSender sender, String... args) {
|
2018-10-22 23:41:15 +02:00
|
|
|
instance.getSettingsManager().openSettingsManager((Player) sender);
|
2018-09-25 04:09:39 +02:00
|
|
|
return ReturnType.SUCCESS;
|
|
|
|
}
|
|
|
|
|
2019-08-06 20:48:28 +02:00
|
|
|
@Override
|
|
|
|
protected List<String> onTab(UltimateKits instance, CommandSender sender, String... args) {
|
|
|
|
return new ArrayList<>();
|
|
|
|
}
|
|
|
|
|
2018-09-25 04:09:39 +02:00
|
|
|
@Override
|
|
|
|
public String getPermissionNode() {
|
|
|
|
return "ultimatekits.admin";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getSyntax() {
|
2018-10-26 22:47:40 +02:00
|
|
|
return "/KitAdmin settings";
|
2018-09-25 04:09:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getDescription() {
|
|
|
|
return "Edit the UltimateKits Settings.";
|
|
|
|
}
|
|
|
|
}
|