Skip to content

Commit

Permalink
+ [2.0.0-PRE-10] Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFlicker committed Jun 9, 2022
1 parent d399cbf commit 5942c2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package me.arasple.mc.trchat.module.internal.hook.ext

import me.arasple.mc.trchat.module.internal.script.js.JavaScriptAgent
import me.arasple.mc.trchat.util.Internal
import me.arasple.mc.trchat.util.getSession
import org.bukkit.entity.Player
Expand Down Expand Up @@ -28,7 +27,7 @@ object HookPlaceholderAPI : PlaceholderExpansion {
val session = player.getSession()

return when (params[0].lowercase()) {
"js" -> if (params.size > 1) JavaScriptAgent.eval(player, args.substringAfter('_')).get() else ""
// "js" -> if (params.size > 1) JavaScriptAgent.eval(player, args.substringAfter('_')).get() else ""
"filter" -> session.isFilterEnabled
"channel" -> session.channel?.id
"toplayer" -> session.lastPrivateTo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package me.arasple.mc.trchat.module.internal.script.kether

import me.arasple.mc.trchat.module.display.channel.Channel
import me.arasple.mc.trchat.util.Internal
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
import taboolib.library.kether.LocalizedException
import taboolib.module.kether.*
import java.util.concurrent.CompletableFuture
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package me.arasple.mc.trchat.module.internal.script.kether

import me.arasple.mc.trchat.util.Internal
import me.arasple.mc.trchat.util.proxy.bungee.Bungees
import taboolib.common.platform.Platform
import taboolib.common.platform.PlatformSide
import taboolib.library.kether.ArgTypes
import taboolib.library.kether.ParsedAction
import taboolib.module.kether.*
Expand Down

0 comments on commit 5942c2c

Please # to comment.