Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
This plugin allows you to integrate a powerful and flexible clan system into your server.
π Discord: https://discord.com/invite/FaHcQnunFp
π Placeholders (PlaceholderAPI)
%clansystem_member_rank% - Displays the clan rank of a member.
%clansystem_tag% - Displays the clan tag.
%clansystem_name% - Displays the clan name.
%clansystem_member_count% - Displays the clan member count.
π¦ API Integration
β οΈ Don't forget to depend my plugin in your plugin.yml if you want to use the API:
name: YourPlugin
main: path
version: 1.0
description: Info
depend: [ClanSystem]
π» Code Example
// Example usage of the ClanCreator class
ClanCreator clanCreator = new ClanCreator();
clanCreator.setClanName("Warriors");
clanCreator.setClanMaxMemberSize(50);
clanCreator.setClanMaxModeratorSize(5);
clanCreator.setClanOwner("player-uuid", 123);
clanCreator.setTag("WRR");
ClanCreatorStatus status = clanCreator.create();
switch (status) {
case SUCCESS:
System.out.println("Clan created successfully!");
break;
case PLAYER_HAS_OWN_CLAN:
System.out.println("Player already owns a clan.");
break;
case PLAYER_IS_INSIDE_A_CLAN:
System.out.println("Player is already part of another clan.");
break;
case CLAN_ALREADY_EXIST:
System.out.println("A clan with this name or tag already exists.");
break;
case ERROR:
System.out.println("An error occurred while creating the clan.");
break;
}
βοΈ Commands
Command | Permission |
---|---|
/clan create <name> |
system.commands.clan.create |
/clan invite <player> |
system.commands.clan.invite |
/clan kick <player> |
system.commands.clan.kick |
/clan leave |
system.commands.clan.leave |
/clan info [name] |
system.commands.clan.info & system.commands.clan.info.others |
/clan config reload |
system.commands.clan.reload.config |
/clan admin | system.commands.clan.admin |
β Features
- β MySQL & JSON file support
- β PlaceholderAPI integration
- β Clean and fast Clan API
- β Fully customizable messages
- β Auto-config update after plugin updates
- β Pay limit, tag system & member caps
π§ͺ Event Example
@EventHandler
public void onClanCreated(ClanCreatedEvent event) {
Bukkit.getConsoleSender().sendMessage("ClanCreatedEvent triggered!");
Clan clan = event.getClan();
Player owner = Bukkit.getPlayer(event.getOwnerUUID());
Bukkit.getConsoleSender().sendMessage("[LOG] Clan '" + clan.getName() + "' created by " + owner.getName() + ".");
}
πΉ Video Tutorials
π Terms of Service
- β You are not allowed to publish my code in any other form.
- β Do not report issues via reviews β use Discord or discussion.
- β You are not permitted to sell, give or redistribute this plugin.
- β You can't claim this plugin as your own.