mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
1 parent
078c6104d5
commit
60bc81d99c
1 file changed
+4
@@ -513,6 +513,10 @@ public class ShopManager {
|
||||
p.sendMessage(MsgUtil.getMessage("negative-amount"));
|
||||
return;
|
||||
}
|
||||
ShopPurchaseEvent e = new ShopPurchaseEvent(shop, p, amount);
|
||||
Bukkit.getPluginManager().callEvent(e);
|
||||
if (e.isCancelled())
|
||||
return; // Cancelled
|
||||
// Money handling
|
||||
if (!p.getUniqueId().equals(shop.getOwner())) {
|
||||
// Don't tax them if they're purchasing from
|
||||
|
||||
Reference in new issue
Block a user