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:
name: "EpicHoppers"
path: "/builds/$CI_PROJECT_PATH"
version: "4.1.9"
version: "4.1.10"
build:
stage: build

View File

@ -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());