mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-15 03:13:21 +01:00
Fixed auto selling notifications.
This commit is contained in:
parent
e20de9d800
commit
745a7e5a01
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "EpicHoppers"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "4.1.9"
|
||||
version: "4.1.10"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user