Fixes encapsulation
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good

This commit is contained in:
2025-09-06 04:09:49 +02:00
parent 22ce26d273
commit e4127d37c5

View File

@@ -72,7 +72,7 @@ public abstract class ConfigCommentPlugin extends JavaPlugin {
* @param commandName <p>The name of the command to register</p> * @param commandName <p>The name of the command to register</p>
* @param executor <p>The executor to register for the command</p> * @param executor <p>The executor to register for the command</p>
*/ */
private void registerCommand(@NotNull String commandName, @NotNull CommandExecutor executor) { protected void registerCommand(@NotNull String commandName, @NotNull CommandExecutor executor) {
registerCommand(commandName, executor, null); registerCommand(commandName, executor, null);
} }
@@ -84,7 +84,7 @@ public abstract class ConfigCommentPlugin extends JavaPlugin {
* @param tabExecutor <p>The tab executor to register for the command</p> * @param tabExecutor <p>The tab executor to register for the command</p>
*/ */
@SuppressWarnings("SameParameterValue") @SuppressWarnings("SameParameterValue")
private void registerCommand(@NotNull String commandName, @NotNull CommandExecutor commandExecutor, protected void registerCommand(@NotNull String commandName, @NotNull CommandExecutor commandExecutor,
@Nullable TabExecutor tabExecutor) { @Nullable TabExecutor tabExecutor) {
PluginCommand pluginCommand = this.getCommand(commandName); PluginCommand pluginCommand = this.getCommand(commandName);
if (pluginCommand != null) { if (pluginCommand != null) {