
ClansPlus - A clan plugin 2.1
A minecraft plugin that allows players to create and manage their own clan.

This plugin was published and got updated on a Vietnamese Minecraft Forum (minecraftvn) before it got translated and now ready to be published on polymart & spigotMC!
Description
A Minecraft plugin that allows players to create and manage their own clan.
System requirements
This software runs on Spigot and NMS.
Spigot forks without compiled NMS code are not supported.
Officially supported servers are spigot, paper, and folia.
You must use Java 11 or newer.
Main feature
- A lot of options for players to manage and control their clan.
- Automatically updating files if there is a new update.
- Configurable messages, GUI, etc.
- Clan skills management.
- Custom clan icon including Material and Custom head
- Supporting Discord
- Supporting API.
- Supporting GUI.
- Supporting Hex Color.
- Supporting BossBar.
- Supporting Floodgate (GeyserMC).
- Easily managing plugin database.
Images
[/SPOILER]
Soft-depend plugins
You might need these plugins to utilize all plugin features:
- PlaceholderAPI
- Clan Info Placeholders:
- %clanplus_clan_name%
- %clanplus_clan_customname%
- %clanplus_clan_formatname%
- %clanplus_clan_owner%
- %clanplus_clan_message%
- %clanplus_clan_score%
- %clanplus_clan_warpoint%
- %clanplus_clan_warning%
- %clanplus_clan_maxmembers%
- %clanplus_clan_createddate%
- %clanplus_clan_format_createddate%
- %clanplus_clan_members%
- %clanplus_clan_allies%
- %clanplus_clan_skilllevel_%
- %clanplus_clan_subjectpermission_%
- %clanplus_clan_format_subjectpermission_%
- %clanplus_clan_discordchannelid%
- %clanplus_clan_discordjoinlink%
- Clan Info Placeholders:
Player Info Placeholders:
- %clanplus_player_rank%
- %clanplus_player_format_rank%
- %clanplus_player_joindate%
- %clanplus_player_format_joindate%
- %clanplus_player_scorecollected%
- %clanplus_player_lastactivated%
- %clanplus_player_format_lastactivated%
PlayerPointsVaultVaultUnlocked (for Folia Servers)
CAUTION:
If your server uses Folia, Vault will cause errors. Use VaultUnlocked and BetterEconomy instead.
If your server uses Folia, Vault will cause errors. Use VaultUnlocked and BetterEconomy instead.
Commands & Permissions
- /clansplus
- Main command for players:
- create
- accept
- reject
- leave
- spawn
- list
- menu
- chat
- pvp
- event
- info
- setting
- upgrade
- invite
- kick
- setspawn - clanplus.setspawn
- seticon - clanplus.seticon
- setpermission - clanplus.setpermission
- setowner
- setmanager
- removemanager
- requestally
- setcustomname - clanplus.setcustomname
- setmessage - clanplus.setmessage
- disband
IMPORTANT:
Each clan has its own permission system. Clan owners manage member capabilities.
NOTE:
Only clan owners can disband clans and manage clan permissions.
- /clansplusadmin - clanplus.admin
- Admin commands:
- reload
- transferPluginDatabaseType
- setClanData
- setClanSkillData
- setPlayerData
- event
- backup
- delete
- chatspy
- clanresetall
Update History
2.0
-
Fixed: Console spam when shutting down the server.
-
Fixed: Bossbar for clan war events not showing to players who just joined the server.
-
Fixed: Clan war score history was retained even when players left the clan or the clan was deleted. This fix also resolves related bugs such as data errors and score bugs.
-
Fixed: Items in the icon type material menu not displaying properly and causing console spam. Unavailable items will now display as "N/A" and can be customized in the inventory config.
-
Fixed: Console spam when players use END_CRYSTAL.
-
Optimization: Switched to Paper's async chat system to optimize features using chat boxes.
-
Feature Added: Option to toggle join notifications, including clan war and player clan announcements.
-
Feature Added: Configurable delay for the two notifications above when a player joins the server.
-
Command Added: /clanadmin clanresetall (type) to reset all clan stats including score, war points, and warnings.
-
Behavior Change: Due to Folia API limitations, chat box input for inventory list searches has been replaced with a sign-based input method and player timeout.
-
Localization: Prepared "inventory" data for setup, but not yet implemented due to complexity (update time is uncertain ).
-
Optimization: Further code refactoring and cleanup in several areas.
-
Hot fix 1: Fixed sign input does not work properly
-
Hot fix 2: Fixed event to handle player shooting not working properly
1.9
-
Fixed: Players using the default clan name can still use spaces and the & character.
-
Fixed: Several issues that caused excessive console spam.
-
Fixed: Menu errors in the latest Minecraft server versions.
-
Fixed: Server crashes or lag caused by using Discord webhooks.
-
Fixed: Clan members (non-leaders) were able to upgrade clan slots.
-
Fixed: /clan deny could not be used to reject invitations.
-
Optimization: Refactored and optimized code in several areas.
-
Localization: Translated some parts of the plugin/interface to English.
1.8
-
Support for Folia (Folia on PaperMC) (Related PR) (Thanks to @TypicalShavonne)
-
Restored support for some particles
-
Utilized async teleportation, which makes teleporting smoother and reduces server lag
-
Added English (en) language file
-
Support for SuperVanish and other vanish plugins: Players who are vanished will no longer appear in the invite list and will be shown as OFFLINE in the member list if they are vanished. Added an option in config.yml to toggle this feature (vanish-settings)
-
Fixed: Stats from previous clan wars no longer carry over into new clan wars
-
Fixed: Players using ender pearls or other throwable items (except arrows) could previously damage clan members — this is now resolved
-
Fixed: A display bug where transferring manager role incorrectly said "leader role transferred"
-
Fixed: The %by% placeholder not working when transferring the manager role
1.7
-
Fixed the %rank% placeholder not working when upgrading clans
-
Added /clan upgrade point button in the upgrade interface
-
Added a config option to disable using chat boxes with a keyword
-
Fixed PlaceholderAPI being spammed: https://mclo.gs/MZzRTyy
-
Fixed error: https://mclo.gs/Z6LN5Ka (from @tepriu)
-
Fixed issue where creating a clan did not cost moneyFixed several other minor bugs
1.6
-
Added clanplus.setspawn permission to allow setting the clan spawn.
-
If a player had set a spawn in a blacklisted world before this update, they will not be able to teleport to that world.
-
Fixed a bug where players could shoot and damage members of their own clan or allied clans with a bow, even if PvP was disabled for them (Thanks to @HenShino)
-
Added PlaceholderAPI support for clan ranking placeholders:
-
%clanplus_top_score_name_% – Gets the name of the clan in the top rank.
-
%clanplus_top_score_value_% – Gets the score of the clan in the top rank.
-
Players will not be able to set spawn in worlds that are blacklisted.
-
Added a blacklist for worlds when setting spawn (configurable in the config file).
1.5
-
Dropped DiscordSRV support in favor of Webhooks.
1.4
-
Fixed an error that causes money is not given for floodgate player-
-
Fixed the issue where faction war did not grant points for mobs and MythicMobs.
-
Fixed the issue where the console was spammed, and the faction war event could not be ended using a command or when the time ran out (Error log) (Reported by @HenShino).
-
Fixed the issue where the console was spammed during combat when a faction war event was active (Error log) (Reported by @HenShino).
-
Added support for all the latest Minecraft versions and updated the API.
-
Added new permissions:
- clanplus.setpermission - Customize faction permissions.
- clanplus.setmessage - Customize faction messages.
- clanplus.seticon - Customize faction icons.
- clanplus.setcustomname - Customize faction custom names.
API Usage
Maven Repository Setup
Maven Dependency
Usage Example
Maven Repository Setup
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.CortezRomeo</groupId>
<artifactId>ClansPlus</artifactId>
<version>VERSION</version>
</dependency>
// Initialize plugin API
ClanPlus clansPlusAPI = Bukkit.getServicesManager().getRegistration(ClanPlus.class).getProvider();
String clanName = "HelloClan";
if(!clansPlusAPI.getPluginDataManager().getClanDatabase().containsKey(clanName))
clansPlusAPI.getPluginDataManager().loadClanDatabase(clanName);
IClanData clanData = clanPlusAPI.getPluginDataManager().getClanDatabase(clanName);
String playerName = "Cortez_Romeo";
clansPlusAPI.getClanManager().addPlayerToAClan(playerName, clanName, false);
clansPlusAPI.getPluginDataManager().getPlayerDatabase(playerName).setRank(Rank.LEADER);
clanData.setOwner(playerName);
clanData.setMessage("This is the first message of this clan!");
clanData.setCustomName("&bSuper Clan");
clansPlusAPI.getClanManager().alertClan(clanName, "Have a good day!");
clansPlusAPI.getPluginDataManager().saveClanDatabaseToStorage(clanName, clanData);