The protected modifier for constructor should be enough.

Constructors of abstract classes can only be called in constructors of
their subclasses. So there is no point in making them public.
This commit is contained in:
tastybento 2023-01-01 09:22:41 -08:00
parent 0e5db0f41f
commit 3746349e22

View File

@ -30,7 +30,7 @@ public abstract class DefaultAdminCommand extends CompositeCommand {
*
* @param addon - GameMode addon
*/
public DefaultAdminCommand(GameModeAddon addon) {
protected DefaultAdminCommand(GameModeAddon addon) {
// Register command with alias from config.
super(addon,
addon.getWorldSettings().getAdminCommandAliases().split(" ")[0],