mirror of https://github.com/GeyserMC/Geyser.git
Undo some changes, some legacy compat for suggestedOpOnly
This commit is contained in:
parent
94d3f6229c
commit
4b893e6475
|
@ -89,18 +89,14 @@ public interface Command {
|
|||
*
|
||||
* @return if this command is executable on console
|
||||
*/
|
||||
default boolean isExecutableOnConsole() {
|
||||
return true;
|
||||
}
|
||||
boolean isExecutableOnConsole();
|
||||
|
||||
/**
|
||||
* Used to send a deny-message to Java players if this command can only be used by Bedrock players.
|
||||
*
|
||||
* @return true if this command can only be used by Bedrock players.
|
||||
*/
|
||||
default boolean isBedrockOnly() {
|
||||
return false;
|
||||
}
|
||||
boolean isBedrockOnly();
|
||||
|
||||
/**
|
||||
* Gets the subcommands associated with this
|
||||
|
|
|
@ -100,6 +100,10 @@ public class ExtensionCommandBuilder<T extends CommandSource> implements Command
|
|||
@Override
|
||||
public Command.Builder<T> suggestedOpOnly(boolean suggestedOpOnly) {
|
||||
this.suggestedOpOnly = suggestedOpOnly;
|
||||
if (suggestedOpOnly) {
|
||||
// the most amount of legacy/deprecated behaviour I'm willing to support
|
||||
this.permissionDefault = TriState.NOT_SET;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue