3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 01:50:06 +01:00
Dieser Commit ist enthalten in:
IronApollo 2020-09-15 19:07:52 -04:00
Ursprung 64a71600f9
Commit cd5691b819
2 geänderte Dateien mit 8 neuen und 10 gelöschten Zeilen

Datei anzeigen

@ -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);
}
}

Datei anzeigen

@ -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!");
}
}