Added logging for total amount of money added/removed from econ per material using VillagerUI
This commit is contained in:
1 parent
647fcd389a
commit
af5fb054cc
4 files changed
+162
-5
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package com.alttd.events;
|
||||
|
||||
import com.alttd.logging.LogInOut;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
public class SpawnShopListener implements Listener {
|
||||
|
||||
private final LogInOut log;
|
||||
public SpawnShopListener(LogInOut log) {
|
||||
this.log = log;
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onSpawnShopEvent(SpawnShopEvent event) {
|
||||
log.log(event.item().name(), event.price());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user