mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-09 18:08:27 +01:00
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:
parent
0e5db0f41f
commit
3746349e22
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user