removed deprecated commands option

This commit is contained in:
rockyhawk64 2025-10-21 19:24:41 +11:00
parent df5b72d946
commit 0c884a5303
4 changed files with 0 additions and 38 deletions

View File

@ -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;
}

View File

@ -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);

View File

@ -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);

View File

@ -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);