diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-04-19 11:24:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 11:24:36 +0200 |
| commit | f8efe9effd27bee18bced64385fc1ad9b05b68bd (patch) | |
| tree | 1429920226fc79af8bae814bb7596b9e65e0cf7e /src/main/java/at/hannibal2/skyhanni/features/commands | |
| parent | 7feb5c67fbc1c9f63118952f1bea649ada1dccd6 (diff) | |
| download | skyhanni-f8efe9effd27bee18bced64385fc1ad9b05b68bd.tar.gz skyhanni-f8efe9effd27bee18bced64385fc1ad9b05b68bd.tar.bz2 skyhanni-f8efe9effd27bee18bced64385fc1ad9b05b68bd.zip | |
Feature + Fix: Player Chat Rework (#1483)
Co-authored-by: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/commands')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt index b2de36a7a..8ead93fcf 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/PartyChatCommands.kt @@ -4,7 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.features.misc.PartyCommandsConfig import at.hannibal2.skyhanni.data.FriendAPI import at.hannibal2.skyhanni.data.PartyAPI -import at.hannibal2.skyhanni.events.PartyChatEvent +import at.hannibal2.skyhanni.data.hypixel.chat.event.PartyChatEvent import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.LorenzUtils import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -60,9 +60,9 @@ object PartyChatCommands { @SubscribeEvent fun onPartyCommand(event: PartyChatEvent) { - if (event.text.firstOrNull() !in commandBeginChars) + if (event.message.firstOrNull() !in commandBeginChars) return - val commandLabel = event.text.substring(1).substringBefore(' ') + val commandLabel = event.message.substring(1).substringBefore(' ') val command = indexedPartyChatCommands[commandLabel.lowercase()] ?: return if (event.author == LorenzUtils.getPlayerName()) { return |
