Jump to content

InteractiveChat | Show Items / Inventory in Chat | Custom Chat Keywords | Bungee & Velocity Support


Mozart

Recommended Posts

https://www.spigotmc.org/resources/interactivechat-show-items-inventory-in-chat-custom-chat-keywords-bungee-velocity-support.75870/

By the way! Check out my server at play.sunknights.fun!

[IMG] Consider donating!
It helps me keep on supporting my plugins while keeping them free! DM me and I'll put your name here! Click me!


Thank you for your donation to support me on my journey on coding plugins! (If you want your name shown as well, send me a message!)
$25 - QR
$10 - hawkfalcon
$5.7 - mindgam3s


[IMG]
Join the discord server here!

[IMG]


If you are running Paper 1.16.X (Or any fork of PaperMC) then you must use the latest DEV BUILD of ProtocolLib, especially when you have a runtime error related to packet cloning!!!!!!!

[IMG]Using DiscordSRV?
Check out this addon which lets you show placeholders and show inventories from InteractiveChat on discord!
You can also have 
images sent from discord previewed on maps and have attachments beautified into clickable and hoverable text in-game!

Spoiler: Show Addon Info and Images


About
The chat is great, players can socialize with each other. But here's the thing, why not make it even more interact-able?
With this plugin, you will be able to show your item in hand, inventory content and ender chest content with your friends! Even across servers in your global bungeecord chat!

This plugin also allows you to create your own interactive keywords for your players to use in chat!


InteractiveChat is designed to work on top of your existing chat formatting plugin, not as a replacement!

Features
Video by Server.pro featuring an older version of InteractiveChat (v2)


1. Item Display Functions
- Type [item] in chat to show off the item in your hand!
- Type [inv] in chat to show off your inventory
- Type [ender] and you guessed it! Show your ender chest!
(Each of them can be toggled in the config as well as changing their keyword)
[IMG]


[IMG] [IMG]
^ The two types of inventory display layout you can choose from (Layout 0 & 1)

2. Custom Interactive Chat Keywords
- You can create whatever placeholder you want and have them replace keywords in the chat

- Or simply just add a hover message as well as click actions to keywords
- Or both!
- Supports multiple lines of hover text

v [pos] is one of the default example custom interactive keyword

[IMG]
v The default custom placeholders that comes with the default config, can be removed or changed (1 - 3 are item display placeholders)
[IMG]

3. Interactive Player Names
- Replace all player names that appear in the chat with interactive content, such as hover messages and click actions!
(Supports Essentials Nicknames! You can create an addon through the API if you need support for your own nicknaming plugins.)

[IMG]

4. Player Mentioning
- If a player's name is mentioned by another player, they will be notified with a sound and a title message!
(Togglable in the config of course!)
[IMG]

5. Bungeecord and Velocity Supported! Everything works across your network!
If you use chat managing plugins that support bungeecord or velocity, you can enable bungeecord mode by installing the plugin on spigot and bungeecord/velocity and having the bungeecord option enabled in the config on all spigot servers!

With bungeecord enabled, all placeholders, including [item], [inv] etc. and custom ones will work across servers. Mentioning and everything else will also work between servers!

6. Easy RGB and Font[1.16 or above]
You can use RGB code in any part of the config that support colors! You can even use them in chat!

Code (Text):
&x&f&f&f&f&f&f

or

Code (Text):
[color=#ffffff]

If you have a custom resource pack that has different fonts, you can even use them like color codes! Works with any messages in the chat, even ones from other plugins.

Code (Text):
[font=myawesomefont]

7. Languages!
And of course! You will be able to modify all the messages that are sent to players to suit your server as well!
Item material names will be automatically translated to each user's client language!

The plugin changes messages on a packet level, so it should work on top of other chat plugins (that doesn't also do this).

Dependencies(These dependencies are not required on Proxies)
- ProtocolLib (Please install the latest version that is compatible for your server version)
- PlaceholderAPI
- Vault


Installation
1. Put InteractiveChat.jar into the plugins folder along with the required dependencies
(If you plan to use the plugin with bungeecord or velocity, install the plugin on bungeecord/velocity as well and enable the bungeecord option in the interactivechat config on ALL spigot servers, no dependencies are required on bungeecord, and yes, just use the same jar)
2. Start the server
3. Edit the config (if you need to)
4. Restart the server (if you changed something in the config in step 3)


Development Builds
[IMG]

Jenkins

Commands
Minecraft Server (Bukkit, Spigot etc.) Commands:
/interactivechat reload - Reloads the plugin (or /ic reload)
/interactivechat update - Check for updates (or /ic update)
/interactivechat chat - Send chat messages with placeholder and player name auto complete (or /ic chat)
/interactivechat list - List all placeholders you can use (or /ic list)
/interactivechat mentiontoggle - Toggle mentioning for yourself (or /ic mentiontoggle)
/interactivechat setinvdisplaylayout - Set your own preferred inventory display layout (or /ic setinvdisplaylayout)


Proxy Server (Bungeecord / Velocity) Commands:
/interactivechatproxy backendinfo - List all InteractiveChat information of the servers in your proxy (or /icp backendinfo)

Q&A
My placeholders don't work! They show as something like %player_name%! What do I do?

PlaceholderAPI requires you to download expansions in order to function, you can take a look at the different expansions and their placeholders here (click me).
For example, if you want %player_name% to work:
1. run /papi ecloud download player
2. run /papi reload

My players get kicked for "You are sending too many packets!", what should I do?
The kick message: You are sending too many packets! probably comes from ViaVersion.
Try increasing or setting the GLOBAL PACKET LIMITER to -1 in the ViaVersion config [Both in bungeecord/velocity (if you've installed it on that) and backend servers (e.g. spigot)]

Permissions

Spoiler: Show Permissions


API
InteractiveChat does provide an API for developers to customize or use its functions
https://github.com/LOOHP/InteractiveChat/tree/master/src/main/java/com/loohp/interactivechat/API

More descriptions are provided through this link

Here is an example of getting whether a certain placeholder is under cooldown for a specific player

Spoiler: Show Example


Here is a simple EventHandler to change the title message of the mention ping

Spoiler: Show Example


Default Config
Config in the Latest Version with Descriptions


[IMG] [IMG]
[IMG]

Report problems in the discussion, not in a review. Thanks :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...