mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
removed deprecated commands option
This commit is contained in:
parent
df5b72d946
commit
0c884a5303
@ -23,7 +23,6 @@ public abstract class Panel {
|
||||
private final List<String> observedPerms; // List of permissions used in conditions for a panel
|
||||
private final String command; // Command used to open the panel
|
||||
private final List<String> aliases; // Aliases for command that opens the panel
|
||||
private final List<String> commands; // DEPRECATED OLD COMMANDS LAYOUT
|
||||
private final CommandActions open; // Commands that run when panel is opened
|
||||
private final String type;
|
||||
|
||||
@ -33,7 +32,6 @@ public abstract class Panel {
|
||||
this.title = config.getString("title", "Panel");
|
||||
this.command = config.getString("command", "");
|
||||
this.aliases = config.getStringList("aliases");
|
||||
this.commands = config.getStringList("commands"); // DEPRECATED OLD COMMANDS
|
||||
this.type = config.getString("type", "inventory");
|
||||
this.observedPerms = new ArrayList<>();
|
||||
|
||||
@ -110,11 +108,6 @@ public abstract class Panel {
|
||||
return aliases;
|
||||
}
|
||||
|
||||
// DEPRECATED OLD COMMANDS
|
||||
public List<String> getCommands() {
|
||||
return commands;
|
||||
}
|
||||
|
||||
public CommandActions getOpenCommands() {
|
||||
return open;
|
||||
}
|
||||
|
||||
@ -74,16 +74,6 @@ public class DialogPanel extends Panel {
|
||||
}
|
||||
updatePanelData(ctx, player);
|
||||
|
||||
// RUN DEPRECATED PANEL COMMANDS; WILL BE REMOVED SOON
|
||||
CommandRunner runnerOld = new CommandRunner(ctx);
|
||||
if(!this.getCommands().isEmpty()){
|
||||
if(player.hasPermission("commandpanels.command.reload"))
|
||||
player.sendMessage(
|
||||
Component.text("[CommandPanels] Commands is now deprecated, use new layout Open Commands instead.",
|
||||
NamedTextColor.RED));
|
||||
}
|
||||
runnerOld.runCommands(this, player, this.getCommands());
|
||||
|
||||
// Run panel commands
|
||||
RequirementRunner requirements = new RequirementRunner(ctx);
|
||||
CommandRunner commands = new CommandRunner(ctx);
|
||||
|
||||
@ -64,16 +64,6 @@ public class FloodgatePanel extends Panel {
|
||||
}
|
||||
updatePanelData(ctx, player);
|
||||
|
||||
// RUN DEPRECATED PANEL COMMANDS; WILL BE REMOVED SOON
|
||||
CommandRunner runnerOld = new CommandRunner(ctx);
|
||||
if(!this.getCommands().isEmpty()){
|
||||
if(player.hasPermission("commandpanels.command.reload"))
|
||||
player.sendMessage(
|
||||
Component.text("[CommandPanels] Commands is now deprecated, use new layout Open Commands instead.",
|
||||
NamedTextColor.RED));
|
||||
}
|
||||
runnerOld.runCommands(this, player, this.getCommands());
|
||||
|
||||
// Run panel commands
|
||||
RequirementRunner requirements = new RequirementRunner(ctx);
|
||||
CommandRunner commands = new CommandRunner(ctx);
|
||||
|
||||
@ -91,17 +91,6 @@ public class InventoryPanel extends Panel implements InventoryHolder {
|
||||
}
|
||||
updatePanelData(ctx, player);
|
||||
|
||||
// RUN DEPRECATED PANEL COMMANDS; WILL BE REMOVED SOON
|
||||
CommandRunner runnerOld = new CommandRunner(ctx);
|
||||
if(!this.getCommands().isEmpty()){
|
||||
if(player.hasPermission("commandpanels.command.reload"))
|
||||
player.sendMessage(
|
||||
Component.text("[CommandPanels] Commands is now deprecated, use new layout Open Commands instead.",
|
||||
NamedTextColor.RED));
|
||||
}
|
||||
runnerOld.runCommands(this, player, this.getCommands());
|
||||
|
||||
|
||||
// Run panel commands
|
||||
RequirementRunner requirements = new RequirementRunner(ctx);
|
||||
CommandRunner commands = new CommandRunner(ctx);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user