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

Solved Just another FloatingText question

Comments in 'Plugin Development' started by Tim // robske Büba, Mar 4, 2016.

  1. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    I'm currently developing an FloatingText plugin.
    EVERYTHING Works fine, i can remove it set it do stuff with it...
    But I've one question
    Why is there setTitle() and setText() i just want to know what the difference between them is.
    At the moment I'm splitting the msg i want to display up with this algorithm
    PHP:
    $msg "An \n Example \n Text"
    //After some  messing with the strings i have two strings like these:
    $FloatingTextObject->setTitle("An")
    $FloatingTextObject->setTitle("Example \n Text")
    But do i need to do that? Or can i just use setText or setTitle
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
  3. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    I see, thanks!
    I can just use setText ;)
    But why that useless thingy? (setTitle)
  4. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
    Title has transparent, black background and text does not. Text is under title
    PEMapModder likes this.

Share This Page

Advertisement