|
27 | 27 | import org.bukkit.event.EventPriority; |
28 | 28 | import org.jetbrains.annotations.NotNull; |
29 | 29 | import org.maxgamer.quickshop.QuickShop; |
30 | | -import org.maxgamer.quickshop.api.event.*; |
| 30 | +import org.maxgamer.quickshop.api.event.ShopCreateEvent; |
| 31 | +import org.maxgamer.quickshop.api.event.ShopDeleteEvent; |
| 32 | +import org.maxgamer.quickshop.api.event.ShopInventoryCalculateEvent; |
| 33 | +import org.maxgamer.quickshop.api.event.ShopModeratorChangedEvent; |
| 34 | +import org.maxgamer.quickshop.api.event.ShopPriceChangeEvent; |
| 35 | +import org.maxgamer.quickshop.api.event.ShopPurchaseEvent; |
| 36 | +import org.maxgamer.quickshop.api.event.ShopSuccessPurchaseEvent; |
31 | 37 | import org.maxgamer.quickshop.shop.SimpleShopModerator; |
32 | 38 | import org.maxgamer.quickshop.util.Util; |
33 | | -import org.maxgamer.quickshop.util.logging.container.*; |
| 39 | +import org.maxgamer.quickshop.util.logging.container.PlayerEconomyPreCheckLog; |
| 40 | +import org.maxgamer.quickshop.util.logging.container.ShopCreationLog; |
| 41 | +import org.maxgamer.quickshop.util.logging.container.ShopModeratorChangedLog; |
| 42 | +import org.maxgamer.quickshop.util.logging.container.ShopPriceChangedLog; |
| 43 | +import org.maxgamer.quickshop.util.logging.container.ShopPurchaseLog; |
| 44 | +import org.maxgamer.quickshop.util.logging.container.ShopRemoveLog; |
34 | 45 | import org.maxgamer.quickshop.util.reload.ReloadResult; |
35 | 46 | import org.maxgamer.quickshop.util.reload.ReloadStatus; |
36 | 47 |
|
37 | | -import java.util.Objects; |
38 | | - |
39 | 48 |
|
40 | 49 | public class InternalListener extends AbstractQSListener { |
41 | 50 | private final QuickShop plugin; |
@@ -94,7 +103,7 @@ public void shopModeratorChanges(ShopModeratorChangedEvent event) { |
94 | 103 | @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) |
95 | 104 | public void shopPriceChanges(ShopPriceChangeEvent event) { |
96 | 105 | if (loggingAction) { |
97 | | - plugin.logEvent(new ShopPriceChangedLog(event.getShop().saveToInfoStorage(), event.getOldPrice(), event.getOldPrice())); |
| 106 | + plugin.logEvent(new ShopPriceChangedLog(event.getShop().saveToInfoStorage(), event.getOldPrice(), event.getNewPrice())); |
98 | 107 | } |
99 | 108 | } |
100 | 109 |
|
|
0 commit comments