Add a couple of permissions

This commit is contained in:
NotMyFault 2021-03-06 20:22:39 +01:00
parent 7a0dc39eb7
commit 99ea64fa4e
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
2 changed files with 8 additions and 1 deletions

View File

@ -426,6 +426,12 @@ public class AsyncBlock implements Block {
throw new UnsupportedOperationException("FAWE does not support this yet"); 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 @Nonnull
@Override @Override
public BoundingBox getBoundingBox() { public BoundingBox getBoundingBox() {

View File

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