mirror of https://github.com/GeyserMC/Geyser.git
address some simple reviews
This commit is contained in:
parent
df15625b0f
commit
7580b8b3a7
|
@ -30,7 +30,10 @@ import org.geysermc.geyser.api.util.TriState;
|
|||
|
||||
/**
|
||||
* Fired by anything that wishes to gather permission nodes and defaults.
|
||||
* <br><br>
|
||||
* This event is not guaranteed to be fired, as certain Geyser platforms do not have a native permission system.
|
||||
* It can be expected to fire on Geyser-Spigot and Geyser-Standalone.
|
||||
* It may still be fired on other platforms due to a 3rd party.
|
||||
*/
|
||||
public interface GeyserRegisterPermissionsEvent extends Event {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
# Add any permissions here that all connections should have.
|
||||
# Permissions for builtin geyser commands do not have to be listed here.
|
||||
# Add any permissions here that all players should have.
|
||||
# Permissions for builtin Geyser commands do not have to be listed here.
|
||||
|
||||
# If an extension/plugin registers their permissions with default values, entries here are typically unnecessary.
|
||||
# If extensions don't register their permissions, permissions that everyone should have must be added here manually.
|
||||
|
|
|
@ -43,12 +43,12 @@ public abstract class GeyserCommand implements org.geysermc.geyser.api.command.C
|
|||
public static final String DEFAULT_ROOT_COMMAND = "geyser";
|
||||
|
||||
/**
|
||||
* CommandMeta to indicate that the command is only available to bedrock players. default of false.
|
||||
* CommandMeta to indicate that the command is only available to bedrock players. Default of false.
|
||||
*/
|
||||
public static final CommandMeta.Key<Boolean> BEDROCK_ONLY = CommandMeta.Key.of(Boolean.class, "bedrock-only", meta -> false);
|
||||
|
||||
/**
|
||||
* CommandMeta to indicate that the command is only available to players. default of false.
|
||||
* CommandMeta to indicate that the command is only available to players. Default of false.
|
||||
*/
|
||||
public static final CommandMeta.Key<Boolean> PLAYER_ONLY = CommandMeta.Key.of(Boolean.class, "player-only", meta -> false);
|
||||
|
||||
|
@ -113,7 +113,7 @@ public abstract class GeyserCommand implements org.geysermc.geyser.api.command.C
|
|||
this.bedrockOnly = bedrockOnly;
|
||||
}
|
||||
|
||||
public GeyserCommand(@NonNull String name, @NonNull String description, @Nullable String permission, @NonNull TriState permissionDefault) {
|
||||
public GeyserCommand(@NonNull String name, @NonNull String description, @Nullable String permission, @Nullable TriState permissionDefault) {
|
||||
this(name, description, permission, permissionDefault, true, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue