Simple Voice Chat

Simple Voice Chat

31M Downloads

Add PlaceholdersAPI support for Bukkit/Spigot

c1oneman opened this issue ยท 3 comments

commented

Is your feature request related to a problem? Please describe.
I would love to be able to use talking status in the TAB list on my server or use it in scripting to send players without voicechat installed notifications to get it installed. PlaceholderAPI is a great system and used widely on spigot servers.

Describe the solution you'd like
I would like a few placeholders.
%player_isChatting%
%player_hasSimpleVoiceChatInstalled%
%player_isMuted%

commented

I added PlaceholderAPI support.
But not the way you suggested it:
Placeholders are like the name suggests placeholders, so boolean values like ismuted would make no sense here.

I added:

  • voicechat_prefix_uses_voicechat
  • voicechat_prefix_no_voicechat
  • voicechat_prefix_disabled

These are prefixes to change the color of a text. You can change the default colors in the translations.yml.

player_isChatting is not possible since this value is completely client side.

commented

Is is it possible to add a placeholder for the voicechat icons that should appear beside a player's name tag?
image
I'm using the TAB plugin, and the "unlimited-nametag-mode" overrides the player's name tag, which effectively hides the icon.
From my knowledge on PAPI, I believe it would have to be a relational placeholder since it should also check if the player looking at another player has the mod installed.

commented

Or, at least, placeholder to access a value that represents the current icon that would have to be displayed, and another one that returns whether or not a player has voicechat installed