fabric: tweak perm defaults, #require() perms for aliases

This commit is contained in:
William committed 2023-04-13 20:16:41 +01:00
1 parent 4fddd1e8dc
commit fd3697d49d
3 files changed
+13 -7

No files matched your search

@@ -158,8 +158,10 @@ public abstract class OnlineUser extends User implements Teleportable, CommandUs
public final void playSound(@Subst(Key.MINECRAFT_NAMESPACE + "block.note_block.banjo")
@NotNull String soundEffect) throws IllegalArgumentException {
try {
getAudience().playSound(Sound.sound(Key.key(soundEffect), Sound.Source.PLAYER,
1.0f, 1.0f), Sound.Emitter.self());
getAudience().playSound(
Sound.sound(Key.key(soundEffect), Sound.Source.PLAYER, 1.0f, 1.0f),
Sound.Emitter.self()
);
} catch (InvalidKeyException e) {
throw new IllegalArgumentException("Invalid sound effect name: " + soundEffect);
}