Skip to content

kamcio96/KGildieAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KGildieAPI

API do pluginu na gildie :)


####Przykładowe użycie:

public void onEnable(){
    KGildieAPI.getGuildByName("tag").get();
}

Tagi nad głową

public void onEnable(){
    KGildieAPI.setVisible(context -> {
        context.setPrefix(ChatColor.GREEN + "[" + context.getNamedGuildPlayer().getGuild().getTag() + "] ");
        if (context.getNamedGuildPlayer().isOwner()) {
            context.setSuffix("**");
        }
    }, VisibleType.OWN);
}

Eventy:

    @EventHandler
    public void onGuildCreated(GuildCreatedEvent event) {
        Guild g = event.getGuild();
        String tag = g.getTag();
        ...
    }

About

API do pluginu na gildie :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages