Developer API
Build Tool Stuff
<repository>
<id>glares-repo</id>
<url>https://repo.glaremasters.me/repository/public/</url>
</repository>
<dependency>
<groupId>me.glaremasters</groupId>
<artifactId>guilds</artifactId>
<version>VERSION</version>
</dependency>repositories {
maven {
url = 'https://repo.glaremasters.me/repository/public/'
}
}
dependencies {
compileOnly 'me.glaremasters:guilds:VERSION'
}repositories {
maven("https://repo.glaremasters.me/repository/public/")
}
dependencies {
compileOnly("me.glaremasters:guilds:versions")
}Hooking Into the API
Obtaining the instance of the API is pretty simple by using the singleton that provides static access to the class. You can obtain the instance of the API through the main Guilds class.
Using the API
The API can be used for obtaining a bunch of information from the plugin. You can browse over the following section to see what all is provided.
Getting a Guild object
We provide a few ways to obtain a Guild object, so feel free to use what is easiest for you.
Getting a GuildMember object
Getting a Guild Vault
Getting a GuildRole
Getting the GuildHandler
The GuildHandler will give you access to anything you might need in the plugin. Please use caution with this method as the content it lets you access to can break the plugin if you use it incorrectly.
Custom Events
In the plugin we offer a bunch of custom events that you can listen to and modify as you see fit.
Base GuildEvent
GuildAddAllyEvent
GuildBuffEvent
GuildCreateEvent
GuildDepositMoneyEvent
GuildInviteEvent
GuildJoinEvent
GuildLeaveEvent
GuildKickEvent
GuildPrefixEvent
GuildRemoveAllyEvent
GuildRemoveEvent
GuildRenameEvent
GuildSetHomeEvent
GuildTransferEvent
GuildWithdrawMoneyEvent
GuildUpgradeEvent
GuildWarAcceptEvent
GuildWarChallengeEvent
GuildWarDeclineEvent
GuildWarEndEvent
GuildWarStartEvent
Last updated
Was this helpful?