Fixed auto selling notifications.

This commit is contained in:
Brianna 2019-08-02 06:24:56 -04:00
parent e20de9d800
commit 745a7e5a01
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ stages:
variables: variables:
name: "EpicHoppers" name: "EpicHoppers"
path: "/builds/$CI_PROJECT_PATH" path: "/builds/$CI_PROJECT_PATH"
version: "4.1.9" version: "4.1.10"
build: build:
stage: build stage: build

View File

@ -88,7 +88,7 @@ public class ModuleAutoSell extends Module {
if (updateComparators) if (updateComparators)
HopTask.updateAdjacentComparators(hopper.getLocation()); HopTask.updateAdjacentComparators(hopper.getLocation());
if (totalValue != 0 && player.isOnline()) { if (totalValue != 0 && player.isOnline() && isNotifying(hopper)) {
plugin.getLocale().getMessage("event.hopper.autosell") plugin.getLocale().getMessage("event.hopper.autosell")
.processPlaceholder("items", amountSold) .processPlaceholder("items", amountSold)
.processPlaceholder("amount", Methods.formatEconomy(totalValue)).sendPrefixedMessage(player.getPlayer()); .processPlaceholder("amount", Methods.formatEconomy(totalValue)).sendPrefixedMessage(player.getPlayer());