1.3.6
This commit is contained in:
parent
048ba83b20
commit
bd2ef8d853
|
@ -1,7 +1,9 @@
|
||||||
package com.io.yutian.elementoriginlib.listener;
|
package com.io.yutian.elementoriginlib.listener;
|
||||||
|
|
||||||
|
import com.io.yutian.elementoriginlib.ElementOriginLib;
|
||||||
import com.io.yutian.elementoriginlib.chatinput.PlayerChatInput;
|
import com.io.yutian.elementoriginlib.chatinput.PlayerChatInput;
|
||||||
import com.io.yutian.elementoriginlib.manager.PlayerChatInputManager;
|
import com.io.yutian.elementoriginlib.manager.PlayerChatInputManager;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
|
@ -27,7 +29,7 @@ public class PlayerChatInputListener extends IListener {
|
||||||
player.sendMessage("playerchatinput.cancle");
|
player.sendMessage("playerchatinput.cancle");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
playerInput.call(string);
|
Bukkit.getScheduler().runTask(ElementOriginLib.inst(), ()-> playerInput.call(string));
|
||||||
if (playerInput.isCall() || playerInput.isCancel()) {
|
if (playerInput.isCall() || playerInput.isCancel()) {
|
||||||
PlayerChatInputManager.removeInput(player);
|
PlayerChatInputManager.removeInput(player);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: ElementOriginLib
|
name: ElementOriginLib
|
||||||
version: '1.3.5'
|
version: '1.3.6'
|
||||||
main: com.io.yutian.elementoriginlib.ElementOriginLib
|
main: com.io.yutian.elementoriginlib.ElementOriginLib
|
||||||
api-version: '1.20'
|
api-version: '1.20'
|
||||||
authors: [ SuperYuTian ]
|
authors: [ SuperYuTian ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user