mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Fix structure manager with paper & worldedit
This commit is contained in:
parent
2348d4a855
commit
a607a6a137
@ -42,6 +42,10 @@ public class IrisSettings
|
||||
@Desc("Useful information when creating iris worlds. Shows object loads & more.")
|
||||
public boolean verbose = false;
|
||||
|
||||
@DontObfuscate
|
||||
@Desc("If true, will not use world edit even if its on the server")
|
||||
public boolean ignoreWorldEdit = false;
|
||||
|
||||
@DontObfuscate
|
||||
@Desc("System Effects")
|
||||
public boolean systemEffects = true;
|
||||
|
@ -8,6 +8,7 @@ import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.world.WorldUnloadEvent;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.IrisSettings;
|
||||
import com.volmit.iris.edit.BlockEditor;
|
||||
import com.volmit.iris.edit.BukkitBlockEditor;
|
||||
import com.volmit.iris.edit.WEBlockEditor;
|
||||
@ -15,6 +16,8 @@ import com.volmit.iris.util.FastBlockData;
|
||||
import com.volmit.iris.util.KMap;
|
||||
import com.volmit.iris.util.M;
|
||||
|
||||
import io.papermc.lib.PaperLib;
|
||||
|
||||
public class EditManager implements Listener
|
||||
{
|
||||
private KMap<World, BlockEditor> editors;
|
||||
@ -85,7 +88,7 @@ public class EditManager implements Listener
|
||||
|
||||
BlockEditor e = null;
|
||||
|
||||
if(Bukkit.getPluginManager().isPluginEnabled("WorldEdit"))
|
||||
if(Bukkit.getPluginManager().isPluginEnabled("WorldEdit") && !PaperLib.isPaper() && !IrisSettings.get().isIgnoreWorldEdit())
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user