From cd5691b819787614a154a1e12c006ec0c224ba50 Mon Sep 17 00:00:00 2001 From: IronApollo Date: Tue, 15 Sep 2020 19:07:52 -0400 Subject: [PATCH] Fix styling --- .../com/sk89q/worldedit/bukkit/BukkitPlayer.java | 12 +++++------- .../com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 6 +++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index 64b5d8389..61403b934 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -19,8 +19,6 @@ package com.sk89q.worldedit.bukkit; -import com.boydti.fawe.Fawe; -import com.boydti.fawe.bukkit.FaweBukkit; import com.boydti.fawe.config.Caption; import com.boydti.fawe.config.Settings; import com.boydti.fawe.object.RunnableVal; @@ -241,15 +239,15 @@ public class BukkitPlayer extends AbstractPlayerActor { * Permissions are used to managing WorldEdit region restrictions * - The `/wea` command will give/remove the required bypass permission */ - if(VaultResolver.perms != null){ - if(value){ - if(!VaultResolver.perms.playerAdd(player, permission)){ + if (VaultResolver.perms != null) { + if (value) { + if (!VaultResolver.perms.playerAdd(player, permission)) { player.addAttachment(plugin).setPermission(permission, value); } - }else if(!VaultResolver.perms.playerRemove(player, permission)){ + } else if (!VaultResolver.perms.playerRemove(player, permission)) { player.addAttachment(plugin).setPermission(permission, value); } - }else{ + } else { player.addAttachment(plugin).setPermission(permission, value); } } diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 5fbe2af8f..cbd3d0c83 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -133,12 +133,12 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter ChunkDeleter.runFromFile(delChunks, true); } - if(this.getDataFolder().getParentFile().listFiles(file -> { - if(file.getName().equals("DummyFawe.jar")){ + if (this.getDataFolder().getParentFile().listFiles(file -> { + if (file.getName().equals("DummyFawe.jar")) { return true; } return false; - }).length > 0){ + }).length > 0) { getLogger().warning("DummyFawe detected! This is no longer necessary. Please remove immediately and restart your server!"); } }