dmulloy2 / SwornRPG

The mcMMO alternative!
http://dev.bukkit.org/bukkit-plugins/swornrpg/
GNU General Public License v3.0
6 stars 3 forks source link

/srpg lb cannot be shown on a command triggered holographic display. #24

Closed MithrandirCraft closed 9 years ago

MithrandirCraft commented 9 years ago

Hello, I have sort of an issue when trying to display ''/srpg lb'' ranking on a hologram, using the HolographicScoreboard plugin.

When the hologram tries to display the command output a player would get, all it shows is the ''Updating ranking... please wait'' message. As the hologram cannot display the second output of the command.

Could you give me some idea on how to get through this issue? Or maybe you could make the process of showing the ranking quicker, therefore not needing the use of this first loading message?

I haven't tried disabling the message myself... But I'm quite sure that by doing this I would get a blank display in the hologram.

dmulloy2 commented 9 years ago

I don't know how HolographicScoreboard works, but there isn't a good way to speed up the leaderboard without causing massive server lag.

MithrandirCraft commented 9 years ago

Understood I guess it's asking too much. This plugin already works quite well for me to be asking for a compatibility solution. I will try removing the message. It might help.

dmulloy2 commented 9 years ago

Anything new on this?

MithrandirCraft commented 9 years ago

I tried removing the message completely as I said, but Holographic Displays still can't show the experience ranking because a message appears before (Even if there is no message, a blank space still appears) The plugin will ignore the second output and pass it on to nearby players instead, the result is that when you are near the hologram you see nothing, and you get the ranking on chat every configured amount of update time.

This could provably be solved by removing the message itself completely... I think I only removed the message output, what would happen if I removed the message itself from the messages file?

dmulloy2 commented 9 years ago

@MithrandirCraft What do you mean by remove the message?

MithrandirCraft commented 9 years ago

Well, If I'm not mistaken, your messages file located inside the jar has a similar format to this:

MessageOnCommand= Something

What I have done is removing just the message, not the whole line:

MessageOnCommand=

What would happen if I remove the whole line?

dmulloy2 commented 9 years ago

If you were to remove the whole line, it would throw a NullPointerException, which doesn't fix the issue.

MithrandirCraft commented 9 years ago

I won't then. That leaves me whith no solution.