diff --git a/src/main/java/me/lokka30/phantomworlds/PhantomWorlds.java b/src/main/java/me/lokka30/phantomworlds/PhantomWorlds.java index fe10a25..86dc9a0 100644 --- a/src/main/java/me/lokka30/phantomworlds/PhantomWorlds.java +++ b/src/main/java/me/lokka30/phantomworlds/PhantomWorlds.java @@ -30,7 +30,6 @@ import org.bukkit.World; import org.bukkit.WorldType; import org.bukkit.plugin.java.JavaPlugin; -import org.bukkit.potion.PotionEffectType; import org.bukkit.scheduler.BukkitTask; import java.io.File; diff --git a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java index 86726b3..d6ab0a1 100644 --- a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java +++ b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java @@ -74,7 +74,7 @@ public void onChangeWorld(PlayerChangedWorldEvent event) { } if(PhantomWorlds.instance().getConfig().contains(cfgPath + ".effects") && - PhantomWorlds.instance().getConfig().isConfigurationSection(cfgPath + ".effects")) { + PhantomWorlds.instance().getConfig().isConfigurationSection(cfgPath + ".effects") && !event.getPlayer().hasPermission("phantomworlds.world.bypass.effects")) { for(final String effName : PhantomWorlds.instance().getConfig().getConfigurationSection(cfgPath + ".effects").getKeys(false)) { final int duration = PhantomWorlds.instance().getConfig().getInt(cfgPath + ".effects." + effName, 60); diff --git a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java index 10e96c8..f6f2323 100644 --- a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java +++ b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerTeleportListener.java @@ -54,7 +54,7 @@ public void onPortal(PlayerTeleportEvent event) { return; } - if(event.getPlayer().hasPermission("phantomworlds.world.deny." + event.getTo().getWorld().getName())) { + if(!event.getPlayer().isOp() && event.getPlayer().hasPermission("phantomworlds.world.deny." + event.getTo().getWorld().getName())) { event.setCancelled(true); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b4c93d0..362f944 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,8 +5,8 @@ # / / | `.__/| / | \__/ `._.' / ' / |,' \,' `._.' / /\__ `___,' \___.' name: 'PhantomWorlds' -version: '${project.version}' -description: '${project.description}' +version: '2.05' +description: 'The Robust World Manager for Minecraft Servers' authors: [ 'creatorfromhell', 'lokka30' ] website: 'https://github.com/lokka30/PhantomWorlds'