From bd2ef8d85308319f560305948dc3e8c69fe63bee Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Thu, 8 Aug 2024 04:54:50 +0800 Subject: [PATCH] 1.3.6 --- .../elementoriginlib/listener/PlayerChatInputListener.java | 4 +++- src/main/resources/plugin.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/io/yutian/elementoriginlib/listener/PlayerChatInputListener.java b/src/main/java/com/io/yutian/elementoriginlib/listener/PlayerChatInputListener.java index 7dbdc6b..d7ba65a 100644 --- a/src/main/java/com/io/yutian/elementoriginlib/listener/PlayerChatInputListener.java +++ b/src/main/java/com/io/yutian/elementoriginlib/listener/PlayerChatInputListener.java @@ -1,7 +1,9 @@ package com.io.yutian.elementoriginlib.listener; +import com.io.yutian.elementoriginlib.ElementOriginLib; import com.io.yutian.elementoriginlib.chatinput.PlayerChatInput; import com.io.yutian.elementoriginlib.manager.PlayerChatInputManager; +import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; @@ -27,7 +29,7 @@ public class PlayerChatInputListener extends IListener { player.sendMessage("playerchatinput.cancle"); return; } - playerInput.call(string); + Bukkit.getScheduler().runTask(ElementOriginLib.inst(), ()-> playerInput.call(string)); if (playerInput.isCall() || playerInput.isCancel()) { PlayerChatInputManager.removeInput(player); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f97ce76..fb0dbb6 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: ElementOriginLib -version: '1.3.5' +version: '1.3.6' main: com.io.yutian.elementoriginlib.ElementOriginLib api-version: '1.20' authors: [ SuperYuTian ]