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

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

⬇ Download on Spigot
[​IMG]
THIS PLUGIN IS NOT LONGER SUPPORTED.

NEW

Whats new in the newer version?
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]

What is possible with CoreAPI?
Spoiler: Screenshots
[​IMG]
[​IMG]
[​IMG]

[​IMG]

Holograms:

Spoiler: Hologram usage
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:

Spoiler: TellRaw usage
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:

Spoiler: Language usage
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:

Spoiler: Achievements usage
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:

Spoiler: Title usage
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:

Spoiler: Tab usage
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:

Spoiler: Actionbar usage
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

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CoreAPI | Languages / Holograms / Achievements / TellRaw - UUID+MySQl / 1.8+1.9 Support is a free Minecraft Java mod. Compatible with Minecraft 1.9. Downloaded 1,621 times (via Spigot). Download it and open it directly in the game.

Explore more