mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix styling
This commit is contained in:
parent
64a71600f9
commit
cd5691b819
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user