🔰
Clans
This is an open-source project and has not been assigned to the public.
If you are interested in contributing to the project, make a Pull Request
.
📚
For Developers
Take a look at the class ClanAPI/UserAPI or and handle cancelable ClanEvents/UserEvents.
Examples
Returning a User or a Clan object.
User
// Getting user by Universal Unique ID
User user = UserAPI.getById(UUID);
// Getting user by player's name
User user = UserAPI.getByName("name");
// If "user" is null = probably the player never entered the server
// You can verify if player has clan or rank
if (user.hasClan()) { }
if (user.hasRank()) { }
// If "clan" is null = player is not a user of any clan.
Clan clan = user.getClan();
Clan
// Getting clan by Universal Unique ID
Clan clan = ClanAPI.getById(UUID);
// Getting clan by tag
Clan clan = ClanAPI.getByTag("tag");
// Getting clan by name
Clan clan = ClanAPI.getByName("name");
// If "clan" is null = probably the clan doesn't exists
👉
How to use
Download
Releases
Download a stable or developing release (.jar file).
Then
- Compile the source into a .jar file or download a release.
- Put the file in your "/plugins" folder.
- Set up the "config.yml" file as you want.
- Turn on the server, enter and give "/clan".
Contributors
ViiictorXD |