mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-06-26 06:14:44 +02:00
Fix the message spam
This commit is contained in:
parent
387961d242
commit
6d601fd2bf
|
@ -18,6 +18,10 @@ public class ShopRemovalLogger implements Listener {
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public static void onShopRemoval(final ShopDestroyedEvent event) {
|
public static void onShopRemoval(final ShopDestroyedEvent event) {
|
||||||
|
if (event.getDestroyer() != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ChestShop.getBukkitServer().getScheduler().runTaskAsynchronously(ChestShop.getPlugin(), new Runnable() {
|
ChestShop.getBukkitServer().getScheduler().runTaskAsynchronously(ChestShop.getPlugin(), new Runnable() {
|
||||||
@Override public void run() {
|
@Override public void run() {
|
||||||
String shopOwner = event.getSign().getLine(NAME_LINE);
|
String shopOwner = event.getSign().getLine(NAME_LINE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user