Undo some changes, some legacy compat for suggestedOpOnly

This commit is contained in:
Konicai 2023-09-01 23:17:56 -04:00
parent 94d3f6229c
commit 4b893e6475
No known key found for this signature in database
GPG Key ID: 710D09287708C823
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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;
}