command manager fix

This commit is contained in:
jiahua.liu 2020-03-22 18:11:56 +08:00
parent 87cca55805
commit da796066c7

View File

@ -62,7 +62,7 @@ object CommandManager : Job by {
*
* 返回一个指令是否执行成功
*/
internal suspend fun processCommand(sender: CommandSender, fullCommand: String):Boolean {
private suspend fun processCommand(sender: CommandSender, fullCommand: String):Boolean {
return withContext(commandDispatcher) {
_processCommand(sender, fullCommand)
}
@ -149,7 +149,6 @@ object CommandManager : Job by {
suspend fun dispatchConsoleCommand(command: String):Boolean = dispatchCommand(ConsoleCommandSender,command)
fun dispatchCommandBlocking(sender: CommandSender,command: String):Boolean = runBlocking { dispatchCommand(sender, command) }
fun dispatchConsoleCommandBlocking(command: String):Boolean = runBlocking { dispatchConsoleCommandBlocking(command) }