diff --git a/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java b/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java index edd6ff650..c5629a425 100644 --- a/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java +++ b/quickshop-bukkit/src/main/java/com/ghostchu/quickshop/util/envcheck/EnvironmentChecker.java @@ -510,6 +510,18 @@ public final class EnvironmentChecker { @EnvCheckEntry(name = "Virtual DisplayItem Support Test", priority = 7, stage = EnvCheckEntry.Stage.AFTER_ON_ENABLE) public ResultContainer virtualDisplayWorkingTest() { + if (!plugin.isDisplayEnabled()) { + + return new ResultContainer(CheckResult.PASSED, "The display are disabled."); + + } + + if (AbstractDisplayItem.getNowUsing() != DisplayType.VIRTUALITEM) { + + return new ResultContainer(CheckResult.PASSED, "The display type is not virtual item."); + + } + if (plugin.getVirtualDisplayItemManager() == null) { AbstractDisplayItem.setVirtualDisplayDoesntWork(true);