Plugin category: Information Suggested name: PlayerNameHover What I want: When you hover your house over a players name in the chat, it'll show their name and current balance (using vault or essentials pretty sure vault is the main economy plugin type build path). It'll show their current faction and power, use the latest updated factions/factions plus. that's it for now, if you have any suggestions possibly add it? Also could you make it all configurable, as in the colors or if that message should be enabled or not, so incase someone doesn't use factions they can turn it to false in the config and it won't even show it at all. Ideas for commands: None Ideas for permissions: None When I'd like it by: Asap.
Code:java Player player = Bukkit.getPlayer("ThePluginMaker");if (player.getBreath() < Breath.GOOD_BREATH.getValue()) { int required = Breath.GOOD_BREATH.getValue() - player.getBreath(); player.getInventory().addItem(new ItemStack(Material.MOUTH_WASH, required)); player.sendMessage("Damn that's stinky! You need some mash wash.");} I think that makes a bit more sense. Also the plugin idea is an interesting one.
ThePluginMaker Only problem with this is it will get rid of your message format, so tell me what format you want it to be in.
ThePluginMaker I was saying that the message format you currently have will not be usable if someone makes this, they will have to make there own.
ThePluginMaker Default MC chat format: <%PlayerName> %Message Custom Message Format: [%World] [%Rank] [%PlayerName] : %Message A plugin like this wont allow you to have a custom chat format, Onlineids will make this with a chat format that you want. Custom chat formats can be anyway you want, some servers like the custom format I listed above.
Onlineids Like looks like a lore type thing when you hover over their name. idk what you mean by that so yeah
ThePluginMaker Lores can be multi-lined, hes wondering how format the lore: %PlayerName - %Rank Faction: %Faction Money: %Money Likes to play on %ServerName Chat colors can also be used, but then it would be harder to read the format when typing it.
Gamecube762 oh i see lol thanks Onlineids i would like it to be %PlayerName Faction: %Faction Money: %Money Time played %TimeOnline (current time online since last login) Thanks
Set your chat event to highest priority and use the getFormat() (which will give you the formatted chat that other plugins already set) and simply append the hover to the either the entire thing or just the start of it.