diff --git a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/helpers/ChattyPermissions.kt b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/helpers/ChattyPermissions.kt index 2c4b5f6..e0c70e6 100644 --- a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/helpers/ChattyPermissions.kt +++ b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/helpers/ChattyPermissions.kt @@ -24,7 +24,7 @@ object ChattyPermissions { Permission("chatty.tags.hover") to StandardTags.hoverEvent(), Permission("chatty.tags.reset") to StandardTags.reset(), Permission("chatty.tags.shift") to ChattyTags.SHIFT_RESOLVER, - Permission("chatty.tags.head") to ChattyTags.HEAD_RESOLVER, - Permission("chatty.tags.skin") to ChattyTags.SKIN_RESOLVER, + //Permission("chatty.tags.head") to ChattyTags.HEAD_RESOLVER, + //Permission("chatty.tags.skin") to ChattyTags.SKIN_RESOLVER, ) } diff --git a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/PlayerListener.kt b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/PlayerListener.kt index 658e986..32426fb 100644 --- a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/PlayerListener.kt +++ b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/PlayerListener.kt @@ -4,7 +4,6 @@ import com.mineinabyss.chatty.chatty import com.mineinabyss.chatty.components.ChannelData import com.mineinabyss.chatty.components.HideJoinLeave import com.mineinabyss.chatty.helpers.parseTags -import com.mineinabyss.chatty.helpers.refreshSkinInCaches import com.mineinabyss.chatty.helpers.translatePlaceholders import com.mineinabyss.chatty.helpers.verifyPlayerChannel import com.mineinabyss.geary.papermc.tracking.entities.toGeary @@ -37,7 +36,7 @@ class PlayerListener : Listener { @EventHandler fun PlayerQuitEvent.onDisconnect() { // Remove player incase they switch skins - player.refreshSkinInCaches() + //player.refreshSkinInCaches() if (chatty.config.leave.enabled && !player.toGeary().has()) quitMessage(translatePlaceholders(player, chatty.messages.joinLeave.leaveMessage)) diff --git a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/placeholders/Placeholders.kt b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/placeholders/Placeholders.kt index cfae12e..95e7995 100644 --- a/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/placeholders/Placeholders.kt +++ b/chatty-paper/src/main/kotlin/com/mineinabyss/chatty/placeholders/Placeholders.kt @@ -4,7 +4,9 @@ import com.mineinabyss.chatty.chatty import com.mineinabyss.chatty.components.SpyOnChannels import com.mineinabyss.chatty.components.chattyData import com.mineinabyss.chatty.components.chattyNickname -import com.mineinabyss.chatty.helpers.* +import com.mineinabyss.chatty.helpers.getAllChannelNames +import com.mineinabyss.chatty.helpers.getChannelFromId +import com.mineinabyss.chatty.helpers.getChannelFromPlayer import com.mineinabyss.geary.papermc.tracking.entities.toGeary import com.mineinabyss.idofront.font.Space import com.mineinabyss.idofront.textcomponents.miniMsg @@ -43,8 +45,8 @@ fun chattyPlaceholders(player: Player?, string: String? = null) : Map return if (args.hasNext()) Tag.selfClosingInserting( + /*HEAD -> return if (args.hasNext()) Tag.selfClosingInserting( args.popOr("A player name is needed").value().toPlayer()?.translatePlayerHeadComponent() ?: Component.empty() ) else Tag.selfClosingInserting(Component.empty()) @@ -46,7 +43,7 @@ object ChattyTags { SKIN -> return if (args.hasNext()) Tag.selfClosingInserting( args.popOr("A player name is needed").value().toPlayer()?.translateFullPlayerSkinComponent() ?: Component.empty() - ) else Tag.selfClosingInserting(Component.empty()) + ) else Tag.selfClosingInserting(Component.empty())*/ } return Tag.inserting(Component.empty())