1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Middle Text?

Discussion in 'Development' started by Teamblocket, Apr 16, 2017.

Thread Status:
Not open for further replies.
  1. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    Hey , i saw on some servers that when you join they have messages right in the middle that are big , how can i get that?
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    I assume you are talking about titles. If you want to do it with a plugin, you can use this function:
    PHP:
     /** @var Player $player */
     
    $player->addTitle("Title""Subtitle"$fadeIn 20$duration 60$fadeOut 20); 
    All times must be in ticks.

    Also, this currrently only works on the api3/network branch of PMMP.
     
  3. Miste

    Miste Baby Zombie

    Messages:
    109
    GitHub:
    Misteboss
  4. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
  5. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
  6. Primus

    Primus Zombie Pigman

    Messages:
    749
  7. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    jasonwynn10 and Matthew like this.
  8. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    So basically every answer on stackoverflow that suggests a library is wrong? Libraries make things easier and add extra functionality. The main purpose of my plugin is to add an API with animation support, and to add commands to easily broadcast titles and actionbars.

    I saw somebody advertise, so I decided to as well.
     
    Matthew likes this.
  9. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    So if someone jumps off a bridge you will do it too?
     
    HimbeersaftLP and Irish like this.
  10. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    If there is already a method to do it, why would you use a different plugin and access the API that way. No, just no.
     
    HimbeersaftLP and Matthew like this.
  11. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    Why make a BMW if there is already a Ford?

    (Car reference)
     
    HimbeersaftLP and jasonwynn10 like this.
  12. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    I can tell that it's a car reference, but it doesn't change the fact you're making something so easy using only one method into a whole different plugin. It's illogical. If there is something magical inside of your plugin that makes it 100x better than the methods PMMP has, then nice. The point being that advertising your own plugins when he's asking for development help, not different plugins, is idiotic.
     
    SOFe and jasonwynn10 like this.
  13. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    If you want to introduce your plugin's API, there is the Plugin/Virion API forum for you.
    It's acceptable to show a plugin example for how to do something, but to disclaim yourself from advertising, it's more advisable to show the actual line(s) of code that answer(s) the question.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.