CoreAPI | Languages / Holograms / Achievements / TellRaw - UUID+MySQl / 1.8+1.9 Support 0.0

CoreAPI can do nearly everything you need. You can create holograms, change your language and more!

  1. MaveCrit
    Tested Minecraft Versions:
    • 1.9
    Contributors:
    bobacadodl
    [​IMG]
    THIS PLUGIN IS NOT LONGER SUPPORTED.

    NEW

    Whats new in the newer version?
    • 31 languages
    • scoreboards
    • worldborders
    • Skin change (without losing name)
    • Player ping
    • 1.9 support
    • MORE!
    CoreAPI is a very easy and leightweight API for nearly everything, its a must have for every server/developer!


    Needed: ProtocolLib for Holograms.

    TESTPLUGIN: Click


    [​IMG]
    • Choose between 12 languages (more soon)
    • /language to switch between languages (Can be switched off)
    • Send TellRaw messages (with hover, click and colours)
    • Send holograms with multiple lines
    • Create achievements
    • MySQL database to save language and achievements
    • Config section to deactivate /language
    • Touch holograms (currently under construction)

    What is possible with CoreAPI?
    [​IMG]
    [​IMG]
    [​IMG]

    [​IMG]

    Holograms:

    1. Creating a hologram
    Code (Text):
    Hologram holo = new Hologram(location);
    2. Adding lines to the hologram
    Code (Text):
    holo.addLine("┬žeWelcome");

    holo.addLine("┬ž6"+ p.getName());    
    3. Show the hologram to the player
    For a single player:
    Code (Text):
    holo.sendToPlayer(p);
    3.1. Show the hologram to all players
    Code (Text):
    for(Player all : Bukkit.getOnlinePlayers()){
    holo.sendToPlayer(all);  }
    4. Register the hologram
    Code (Text):
    HologramResetter.register(p, holo);
    5. Remove the hologram
    Code (Text):
    holo.remove();
    5.1. Remove the hologram from one player:
    Code (Text):
    holo.removeFromPlayer(p)
    6. Remove a single line
    Code (Text):
    holo.removeLine(1)

    TellRaw Messages:

    1. Creating unclickable section of the message
    Code (Text):
    JSONChatMessage message= new JSONChatMessage("Message: ", JSONChatColor.GRAY, null);
    2. Creating clickable/hoverable section of the message
    Code (Text):
    JSONChatExtra extra= new JSONChatExtra("Clickable", JSONChatColor.GREEN, Arrays.asList(JSONChatFormat.BOLD));
    3. Set hover event
    Code (Text):
     extra.setHoverEvent(JSONChatHoverEventType.SHOW_TEXT, "This is a hovering message");
    4. Set command when clicking the message
    Code (Text):
     extra.setClickEvent(JSONChatClickEventType.RUN_COMMAND, "/command");
    5. Bind the events to the message
    Code (Text):
    message.addExtra(extra);
    6. Send the message
    Code (Text):
    message.sendToPlayer(p);

    Languages:

    1. Getting the language of a player
    Code (Text):
    LanguageAPI.getLanguage(player);
    2. Set the language of a player
    Code (Text):
    LanguageAPI.setLanguage(player, Language.POLISH);

    Achievements:

    1. Creating a new achievement
    Code (Text):
    Achievements achievement = new Achievements("FirstDeath");
    2. Check if player has achievement
    Code (Text):
    if(achievement.hasPlayer(player)){
    3. Give player the achievement
    Code (Text):
    achievement.addToPlayer(player);
    4. Remove the achievement from player
    Code (Text):
    achievement.removeFromPlayer(player);

    Titles:

    1. Set the title
    Code (Text):
    Titles title = new Titles("Im a title!", "Awesome im a subtitle!", 0, 1, 1);
    2. Set Fade in / Fade Out / Stay time
    Code (Text):
    title.setFadeInTime(20);
    title.setStayTime(20);
    title.setFadeOutTime(20);
    3. Set Title Color / Subtitle Color
    Code (Text):
    title.setTitleColor(ChatColor.RED);
    title.setSubtitleColor(ChatColor.BLUE);
    4. Send the title
    Code (Text):
    title.send(player);
    5. Clear the title
    Code (Text):
    title.clearTitle(player);

    Tab Header/Footer:

    1. Send the Tab Header/Footer
    Code (Text):
    TabTitle.sendTabTitle(p, "&aIm a Header!", "&eIm a Footer");
    //NOTE: %player% will be replaced with the players name

    Actionbar:

    1. Send the Actionbar
    Code (Text):
    Actionbar.sendBar(player, "Im a Actionbar for &a%player%");

    //NOTE: %player% will be replaced with the players name



    Donate
    I love it to develop free plugins for you but to keep them free i need donations.
    I would be very happy if i get some.

    btn_donateCC_LG.gif



    [​IMG]
    You are not allowed to:
    - Decompile the API for commercial use
    - Reupload the API
    - Make money with the API by selling it

    You are allowed to:
    - Use the API in your plugins
    - Decompile the API for private use
    - Have fun with the API

    Images

    1. ad8689c1a74a9219e161169fc4357c09.gif
    Knutimo, manuelgu, Bers_ and 4 others like this.

Recent Updates

  1. end of support
  2. TONS of updates addon
  3. 1.8/9 Support update

Recent Reviews

  1. FrankTheTank
    FrankTheTank
    5/5,
    Version: 0.0
    Can not recommend this API more, really speeds up development time. Only suggestion would be to use NametagEdit by SgtCaze
  2. Krille
    Krille
    4/5,
    Version: 1.4
    Great! Please add nametag api! (Above players head)
    .
    1. MaveCrit
      Author's Response
      Thats what i am working on since 3 days.
      I dont get it to work <.<
  3. xXkguyXx
    xXkguyXx
    5/5,
    Version: 1.1.1
    Amazing plugin keep it up, and I am a little bit lost on how to use the titles features if you don't mind explaining it a bit better(what I mean is the changing color feature)
    1. MaveCrit
      Author's Response
      Thanks :)!
      You can set the color like that:

      title.setTitleColor(ChatColor.RED); //Sets Color of main title
      title.setSubtitleColor(ChatColor.BLUE); //Sets Color of subtitle

      To get the effect from the screenshot just decompile the CoreAPI Testplugin (:
  4. PickedBroken
    PickedBroken
    5/5,
    Version: 2015-12-24
    Thank you so much for the CoreAPI! Do you think you could add titles for a possible feature? Thank you.
    1. MaveCrit
      Author's Response
      Titles added :)
  5. Snowmite
    Snowmite
    5/5,
    Version: 2015-12-24
    I just tested this plugin! It's a very good resource! I highly recommend using this plugin! I think it's very cool!
    1. MaveCrit
      Author's Response
      Thank you very much :)!