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

Send Tip

Comments in 'Plugin Development' started by Skullex, Nov 23, 2015.

  1. Skullex
    Offline

    Skullex Active Member

    Joined:
    Nov 14, 2015
    Posts:
    212
    Minecraft User:
    Skullex
    How would I change this to a TIP

    $event->getPlayer()->sendMessage(TextFormat::RED . "Please specify a valid arena name!");

    Is this correct??

    $event->getPlayer()->sendTip(TextFormat::RED . "Please specify a valid arena name!");
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    How about testing it out? It should work, depends on the other part of the code.
    Last edited: Nov 23, 2015
  3. Kripak
    Offline

    Kripak New Member

    Joined:
    Jul 17, 2015
    Posts:
    45
    Minecraft User:
    Kripak
    $player->sendTip("Text");
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Well, that's what he did.
    PEMapModder likes this.
  5. TutoGamerWalid
    Offline

    TutoGamerWalid Active Member

    Joined:
    Jun 11, 2015
    Posts:
    69
    Minecraft User:
    TutoGamerWalid
    There
    PHP:
    $player $event->getPlayer();
      
    $player->sendTip("Test");
    Skullex likes this.
  6. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Why do people make a thread to ask if something would work before they even test it?
    Seems kinda pointless to me.
  7. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    That's still the same..
    PEMapModder likes this.
  8. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    For me, I'm lazy to test xD (I need to go to my phone, join the server and test it? :p Asking a people is easier...
  9. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Yeah but you still have to wait for replies, which could take longer than actually testing it without making the thread.
  10. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    I personally think community is awesome that reply is very quick :p
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Because they just have to create a thread. They don't need to wait. They can just go back and play three hours of Minecraft then come back and wait for our replies. It costs them very little time.
    Hotshot_9930 and Vaivez66 like this.
  12. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Time is Money

Share This Page

Advertisement