Player Name Hover

Discussion in 'Archived: Plugin Requests' started by ThePluginMaker, Jul 28, 2014.

  1. Offline

    ThePluginMaker

    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.
     
  2. Offline

    JuicyDev

    Code:java
    1. Player player = Bukkit.getPlayer("ThePluginMaker");
    2. if (player.getBreath() < Breath.GOOD_BREATH.getValue()) {
    3. int required = Breath.GOOD_BREATH.getValue() - player.getBreath();
    4. player.getInventory().addItem(new ItemStack(Material.MOUTH_WASH, required));
    5. player.sendMessage("Damn that's stinky! You need some mash wash.");
    6. }

    I think that makes a bit more sense.

    Also the plugin idea is an interesting one.
     
  3. Offline

    Onlineids

    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.
     
  4. Offline

    ThePluginMaker

    Onlineids
    Message format? what do you mean? uhh i use essentials chat if that helps?
     
  5. Offline

    Onlineids

    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.
     
  6. Offline

    Gamecube762

    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 likes this.
  7. Offline

    ThePluginMaker

    Onlineids
    <%prefix%player>%suffix %message using chatmanager
     
  8. Offline

    Onlineids

    ThePluginMaker And what do you want the popup(tooltip) to be? Line for line.
     
  9. Offline

    ThePluginMaker

    Onlineids
    Like looks like a lore type thing when you hover over their name. idk what you mean by that so yeah :p
     
  10. Offline

    Gamecube762

    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.
     
  11. Offline

    ThePluginMaker

    Gamecube762 oh i see lol thanks :p
    Onlineids
    i would like it to be
    %PlayerName
    Faction: %Faction
    Money: %Money
    Time played %TimeOnline (current time online since last login)
    Thanks :)
     
  12. Offline

    ThePluginMaker

  13. Offline

    ThePluginMaker

  14. Offline

    ThePluginMaker

  15. Offline

    ThePluginMaker

  16. Offline

    RingOfStorms

    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.
     

Share This Page