diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39abf4f..5f749d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicHoppers" path: "/builds/$CI_PROJECT_PATH" - version: "4.1.9" + version: "4.1.10" build: stage: build diff --git a/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java b/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java index bda14bf..48e85aa 100644 --- a/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java +++ b/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleAutoSell.java @@ -88,7 +88,7 @@ public class ModuleAutoSell extends Module { if (updateComparators) HopTask.updateAdjacentComparators(hopper.getLocation()); - if (totalValue != 0 && player.isOnline()) { + if (totalValue != 0 && player.isOnline() && isNotifying(hopper)) { plugin.getLocale().getMessage("event.hopper.autosell") .processPlaceholder("items", amountSold) .processPlaceholder("amount", Methods.formatEconomy(totalValue)).sendPrefixedMessage(player.getPlayer());