This is not the original Plugin!!!
To the original Plugin: Click
This API is inspired by the original. Why i made a new Version of
GitHub:
https://github.com/labymod
How to use this Plugin:
Example Class:
Code (Java):
public
class Example
implements Listener
{
/* Register the API in your Class */
public
static LabyModAPI labyModAPI
=
new LabyModAPI
(
)
;
/* When player joins he gets an subtitle */
public
void joinevent
(PlayerJoinEvent event
)
{
Player player
= event.
getPlayer
(
)
;
UUID uuid
= player.
getUniqueId
(
)
;
String subtitle
=
"This is a Example"
;
/* receiver = Player => The player that gets the subtitle */
/* subtitlePlayer = UUID => of the player that gets the subtitle */
/* value = String => Text stands under the playername */
/* labyModAPI.setSubtitle(reciever, subtitlePlayer, value); */
labyModAPI.
setSubtitle
(player, uuid, subtitle
)
;
}
}
![[IMG]](/proxy/image?url=https%3A%2F%2Fbstats.org%2Fsignatures%2Fbukkit%2FLabyModAPI.svg)