Solved Chat/Text Component API

Discussion in 'Plugin Development' started by BizeaxPvP, Aug 6, 2019.

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

    BizeaxPvP

    Hello, i was wondering how i could have my regular text and my Chat Component API together in one line. Here is my code:
    Code:
                p.sendMessage(Utils.chat("&aJoin our Discord server by "));
                p.spigot().sendMessage(discordtext);
    it's currently seperated and idk how to make it into 1 line
     
  2. Offline

    Kars

    Put it in a function.
     
  3. Offline

    BizeaxPvP

    example please im not familiar with functions.
     
  4. Offline

    CraftCreeper6

    @BizeaxPvP
    A function is like so:
    Code:
    public void function()
    {
    }
     
  5. Offline

    Dai_Kunai

    function equivalent to method, if that maybe helps...
     
  6. Offline

    BizeaxPvP

    ive never used this before.. can u show me how?
     
  7. Offline

    KarimAKL

    @BizeaxPvP I think this should explain it well enough.
    You have, the onEnable, the onCommand, etc.
     
  8. Offline

    BizeaxPvP

    thanks
     
  9. Offline

    Kars

    @BizeaxPvP there's also such a thing as google, you know.
    I'm usually all for helping but this is the most basic of the basic stuff.
     
  10. Offline

    BizeaxPvP

    i googled "bukkit function" and i didn't find anything, sorry!
     
  11. Offline

    KarimAKL

    @BizeaxPvP Because functions/methods is a Java thing, not a Bukkit thing.
     
Thread Status:
Not open for further replies.

Share This Page