Set ApplianceCommand to public so override-methods don't have to change the visibility manually

This commit is contained in:
Elias Müller 2023-10-24 21:28:45 +02:00
parent b1097b747d
commit 8ef3164eae

View File

@ -53,7 +53,7 @@ public abstract class ApplianceCommand<T extends Appliance> implements Appliance
public static abstract class PlayerChecked<T extends Appliance> extends ApplianceCommand<T> {
private Player player;
private Component notPlayerMessage = Component.text("This command can only be executed as an Player!").color(NamedTextColor.RED);
protected PlayerChecked(String command) {
public PlayerChecked(String command) {
super(command);
}
@ -61,7 +61,7 @@ public abstract class ApplianceCommand<T extends Appliance> implements Appliance
super(command, errorMessage);
}
protected PlayerChecked(String command, @Nullable Component errorMessage, Component notPlayerMessage) {
public PlayerChecked(String command, @Nullable Component errorMessage, Component notPlayerMessage) {
super(command);
this.errorMessage = Optional.ofNullable(errorMessage).orElse(this.errorMessage);
this.notPlayerMessage = notPlayerMessage;