Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ChatBubbles 1.1.7

Show players chat messages above their head!

  1. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Comedyman937 submitted a new plugin:

    ChatBubbles - Show players chat messages above their head!

    Read more about this plugin...
    Tuff likes this.
  2. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    nice . but what does it do ? . and can i use some pf your codes ( asking for permmision )
  3. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Comedyman937 likes this.
  4. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
  5. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    No.
  6. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    It basically gets rid of the default chatroom and then replaces the players name with their message for a set time. You can look at my code as a "guide" but dont just do a copy/paste :)

    Did he make that himself or is he using this plugin?
  7. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    He made it himself I think, but it seems to work with multiple lines.
    Comedyman937 likes this.
  8. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    I figured it did but I just need to find out how :p
  9. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    so is it possible to change the players gamertag ?
  10. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
  11. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Yes. You just use $player->getNameTag(); and $player->setNameTag(); but you should also use $player->getDisplayName(); depending on what you are trying to do ;)
  12. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    nice nice . that well be helpful for my villeger plugin that well make everybody in the server look like villeger ( no advertiesment )
  13. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    getDisplayName() can contain extra info. getName() is the actual player name without things added by plugins.

    Also, you can create new lines using "\n" (so for example, first line is the old nametag, then, extra messages)
    Falk, Killman2 and Comedyman937 like this.
  14. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    Also, I see that this plugin won't behave correctly under the /reload command.
    Try to remove old nametags from players onDisable() ;)
    Comedyman937 likes this.
  15. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Yeah I did that for the player name when a Chat Bubble is created. I just need to find out how to make it so it seperates the lines after a certain amount of characters.
    Example:
    Becomes something like:
    Doing that would make the bubbles less ugly ;)

    Didn't even think of that! I'll do that later. :D
  16. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Just use wordwrap().
    Comedyman937 likes this.
  17. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Update awaiting approval :)
    Falk and swagboy47 like this.
  18. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
  19. krip
    Offline

    krip New Member

    Joined:
    Apr 21, 2014
    Posts:
    12
    Minecraft User:
    John
    Nice update :p
    Comedyman937 likes this.
  20. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    Theres only a couple more things to do for the plugin. Im going to make the plugin a little more customizable and whenever colors are able to be added to nametags I will add that as an option too :p

Share This Page

Advertisement