Async send message to player

Former-commit-id: a24df3f83f824e279892814341755007bfe7e923 [formerly b0f9021e290aeaa7d47e2c4a1c17cd36f0e664d8]
Former-commit-id: 75b97eedd1edf9aeb5500afe6a23a5067f76ce4c
This commit is contained in:
Ghost_chu committed 2019-07-14 18:28:58 +08:00
1 parent 49191cb546
commit e4dda45d50
1 file changed
+1 -2
@@ -198,11 +198,10 @@ public class PlayerListener implements Listener {
public void onJoin(PlayerJoinEvent e) {
// Notify the player any messages they were sent
if (plugin.getConfig().getBoolean("shop.auto-fetch-shop-messages")) {
Bukkit.getScheduler().runTaskLater(QuickShop.instance, new Runnable() {
Bukkit.getScheduler().runTaskLaterAsynchronously(QuickShop.instance, new Runnable() {
@Override
public void run() {
MsgUtil.flush(e.getPlayer());
Util.inventoryCheck(e.getPlayer().getInventory());
}
}, 60);
}