mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Update InternalListener.java
Former-commit-id: 4375a316c40972326dd598f63cceed2bde7c4814
This commit is contained in:
1 parent
4bf0fc7f2a
commit
e07a286d5c
1 file changed
+3
-2
@@ -27,6 +27,7 @@ import org.maxgamer.quickshop.Event.*;
|
||||
import org.maxgamer.quickshop.Listeners.ListenerHelper;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
import org.maxgamer.quickshop.QuickShop.Shop.Shop;
|
||||
import org.maxgamer.quickshop.Shop.ShopType;
|
||||
|
||||
@AllArgsConstructor
|
||||
public class InternalListener implements Listener {
|
||||
@@ -70,12 +71,12 @@ public class InternalListener implements Listener {
|
||||
if (ListenerHelper.isDisabled(event.getClass())) {
|
||||
return;
|
||||
}
|
||||
if (Shop.getShopType() == SELLING(0)){
|
||||
if (event.type == ShopType.SELLING){
|
||||
plugin.log("Player " + event.getPlayer().getName() + " bought " + event.getShop().ownerName() + " shop "+event.getShop()+" for items x" + event
|
||||
.getAmount() + " for " + plugin.getEconomy().format(event.getBalance()) + " (" + plugin.getEconomy()
|
||||
.format(event.getTax()) + " tax).");
|
||||
}
|
||||
if (Shop.getShopType() == BUYING(1)){
|
||||
if (event.type == ShopType.BUYING){
|
||||
plugin.log("Player " + event.getPlayer().getName() + " sold " + event.getShop().ownerName() + " shop "+event.getShop()+" for items x" + event
|
||||
.getAmount() + " for " + plugin.getEconomy().format(event.getBalance()) + " (" + plugin.getEconomy()
|
||||
.format(event.getTax()) + " tax).");
|
||||
|
||||
Reference in new issue
Block a user