HologramChat

Discussion in 'Plugin Requests' started by Jacktheguy, May 21, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    Jacktheguy

    Plugin category: Chat

    Minecraft version: 1.8-1.12

    Suggested name: HoloChat/HologramChat

    What I want: I would like hologram chat to make it so in chat you can hover over someones name and it shows their balance or username ect. But it should be customizable with PlaceHolderAPI.

    Ideas for commands: No commands, just config would be fine.

    Ideas for permissions: hologram.use - Allows players to see the hologram.

    When I'd like it by: ASAP
     
  2. Offline

    blobic123

    I have started on it:[​IMG]

    Need to go to sleep now, and I have 4 lectures (starting at 8am nzt) and 1 test tomorrow (6-7pm) so won't get much done until the day after.

    Progress:
    Right now there isn't full support for things that add prefixes and suffixes to the chat but coloured names appear to be working with groupmanager & essentials chat.

    I now need to work on starting the integration with PlaceHolderAPI and customization (and the permission to see the hologram but that won't take very long to do)

    EDIT:
    I don't know what Bukkit's policy is on links so I won't bother adding a link here to the file of it in its current state until I have done enough of the project for it to go on BukkitDev. :)
     
    Last edited: May 23, 2018
    Lemetne likes this.
  3. Offline

    Jacktheguy

    Ok! Thanks a lot!
     
  4. Offline

    timtower Moderator Moderator

    Dropbox and google drive links are pretty common here.
    Spigot links are also fine unless they are for paid plugins.
     
    blobic123 likes this.
  5. Offline

    blobic123

    @Jacktheguy
    Currently using the name HoverChat as HoloChat is already being used by a plugin on BukkitDev and I don't want to cause confusion with plugin names.
    [​IMG]
    This is what the default config looks like so far, adding new lines to show up in the tooltip can be done by simply adding a new line in the same format.

    What the tooltip looks like with default settings (open)
    [​IMG]
    Reminder when setting the plugin up (open)

    • You need PlaceholderAPI installed
    • You need to install the PlaceholderAPI Expansion for each group of placeholders that you want to use
    Standard Placeholders - Plugin Placeholders Pg1 - Plugin Placeholders Pg2
    Commands for PlaceholdersAPI: (The one you need to install expansions is /papi ecloud download <expansion name> )
    [​IMG]


    This won't be compatible with most plugins that modify the chat unless they use PlaceholderAPI (e.g. adding prefixes and suffixes.)

    Current permissions:
    [​IMG]

    Current Configuration System:
    • Allows you to completely customize what is shown before the message allowing you to position the users name where you want.
    • Allows you to choose whether to display their username, displayname or nickname (if using something like essentials chat)
    • Seems a little messy, I'll probably break it down into 3 parts; prefix, name and suffix
    This would change the config into something like this:
    Code:
    prefix: "[%placeholder_used_for_rank_etc%] <"
    name: "%placeholder_used_for_name_or_nickname%"
    suffix: "> [%placeholder_used_for_title_etc%]"
    I will probably also add a command to reload the config without reloading every plugin (like /reload does).

    HMU with:
    • Name of the plugin (if you want it changed from HoverChat)
    • If you think I should change the config system
    • Anything else you want
    License
    Guess I probably need to post this here until I create a BukkitDev page:
    This plugin is licensed under the GNU GPLv3 license and uses mkremins's fanciful library licensed under MIT license. License details under links.
    Links
    GitHub - Downloads - License
     
    Last edited: May 24, 2018
  6. Offline

    Jacktheguy

    Hi! This is an amazing plugin! It works perfectly except for 1 thing I would also like. It is that I have a plugin called deluxe tags and the code is {deluxetags_tag} in the essentials chat format so is it possible to add it so the tags actually work? Thanks!

    Scratch that I figued it Out :D Thanks you so much!

    Hi! So I just found out for staff chat, when you use the plugin it says chat in global and staffchat but it is only supposed to be in staffchat, same for skyblock chat aswell. Also, when you type more than 1 line and you have chatcolor on, it changes it back to white. Could you please fix that?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2018
  7. Offline

    blobic123

    @Jacktheguy
    Hi, sorry for the late reply, I've been a fair bit busy with uni.

    I looked through deluxe tags, and under the configuration section it lists the placeholders that the plugin has. To use this you need to enter the command to install the extension /papi ecloud download DeluxeTags

    The way Placeholder API works is that in order to keep it running fast, the placeholders aren't included in the plugin, meaning you need to install the placeholders you want.

    Placeholders for DeluxeTags (open)

    • %deluxetags_tag%
    • %deluxetags_identifier%
    • %deluxetags_description%
    • %deluxetags_amount%

    I think I've found what's causing the chat color to change back to white after a line. I've started working on that and I'll see what's happening with staff chat when I've done that.

    Edit:

    Details (open)
    The normal chat color codes don't appear to go over 1 line when using JSON messages, reapplying chat color codes before each word doesn't work if a word gets split up (1 part on 1 line, another part on another line). So I have to write something that takes the chat character codes
    [​IMG]
    And turns them into a JSON format.


    Edit2: Done with the color codes bit and it should now work with StaffChat, file here.
     
    Last edited: May 28, 2018
  8. Offline

    Jacktheguy

    Hi! So StaffChat dosent work with Chatcolor on but if its off staff chat works fine. Is there a way to fix that? It is only when I enable this plugin.
     
  9. Offline

    blobic123

    @Jacktheguy
    Hi, can you clarify what you mean by Chatcolor being on or off, do you mean if you use chat color in your messages, or is it an option/config for a plugin?

    There are also quite a few plugins that go by the name StaffChat, would you be able to link me to the plugin pageof the one that you have on your server?
     
  10. Offline

    Jacktheguy

Thread Status:
Not open for further replies.

Share This Page