diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/configuration/contextual/ConfigItem.java b/eternalcore-core/src/main/java/com/eternalcode/core/configuration/contextual/ConfigItem.java index a07c8a411..9bf4a2b14 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/configuration/contextual/ConfigItem.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/configuration/contextual/ConfigItem.java @@ -17,7 +17,6 @@ public class ConfigItem { public String texture = "none"; public boolean glow = false; public int slot = 0; - @Description("What command should be executed when the item is clicked? If it is not to be performed, leave it blank") public List commands = new ArrayList<>(); public ConfigItem(String name, List lore, Material material, String texture, boolean glow, int slot, List commands) { diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpCommand.java b/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpCommand.java index 2787a083b..198f1ac90 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpCommand.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpCommand.java @@ -2,10 +2,10 @@ import com.eternalcode.annotations.scan.command.DescriptionDocs; import com.eternalcode.core.configuration.implementation.PluginConfiguration; +import com.eternalcode.core.feature.teleport.TeleportTaskService; import com.eternalcode.core.injector.annotations.Inject; import com.eternalcode.core.notice.NoticeService; import com.eternalcode.core.shared.PositionAdapter; -import com.eternalcode.core.feature.teleport.TeleportTaskService; import com.eternalcode.core.user.User; import dev.rollczi.litecommands.argument.Arg; import dev.rollczi.litecommands.command.execute.Execute; diff --git a/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpInventory.java b/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpInventory.java index d1d5f7380..80efdfd43 100644 --- a/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpInventory.java +++ b/eternalcore-core/src/main/java/com/eternalcode/core/feature/warp/WarpInventory.java @@ -70,6 +70,11 @@ private Gui createInventory(Language language) { player.closeInventory(); + if (player.hasPermission("eternalcore.warp.bypass")) { + this.teleportTaskService.createTeleport(player.getUniqueId(), PositionAdapter.convert(player.getLocation()), warp.getPosition(), Duration.ZERO); + return; + } + this.teleportTaskService.createTeleport( player.getUniqueId(), PositionAdapter.convert(player.getLocation()),