Add a couple of permissions

Dieser Commit ist enthalten in:
NotMyFault 2021-03-06 20:22:39 +01:00
Ursprung 7a0dc39eb7
Commit 99ea64fa4e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C
2 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -426,6 +426,12 @@ public class AsyncBlock implements Block {
throw new UnsupportedOperationException("FAWE does not support this yet");
}
@Nonnull
@Override
public float getDestroySpeed(@Nonnull ItemStack itemStack, boolean considerEnchants) {
throw new UnsupportedOperationException("FAWE does not support this yet");
}
@Nonnull
@Override
public BoundingBox getBoundingBox() {

Datei anzeigen

@ -178,7 +178,7 @@ public class WorldEditCommands {
name = "cui",
desc = "Complete CUI handshake (internal usage)"
)
@CommandPermissions()
@CommandPermissions(value = "worldedit.cui", queued = false)
public void cui(Player player, LocalSession session) {
session.setCUISupport(true);
session.dispatchCUISetup(player);
@ -188,6 +188,7 @@ public class WorldEditCommands {
name = "tz",
desc = "Set your timezone for snapshots"
)
@CommandPermissions(value = "worldedit.timezone", queued = false)
public void tz(Actor actor, LocalSession session,
@Arg(desc = "The timezone to set")
String timezone) {