Sueta

Clans-Api [1.8-1.13]

1.2.1

Keeps track of your clan stats, elo. wins and more.

·Plugin

header.jpg

  1. Created by Cerberus/Treona
  2. You can create/delete clans
  3. Invite/kick members
  4. And display clan stats

This library is fully uuid ready. Name changes won't break a clan or the plugin.
If you wan't the plugin on multiple servers just copy the jar and the config. All clans and members will be synced!

Commands:

  • /clan create <clan name> <clan tag>
  • /clan stats <clan name>
  • /clan invite <player>
  • /clan leave
  • /clan kick <player>
  • /clan join <clan name>
  • /clan delete

Api:
You can change a clans stats with the build in api.

//There are many ways to get a clan!
Clan clan = Clans.getClan(player);
Clan clan = Clans.getClan(uuid);
Clan clan = Clans.getClan(clanName);
Clan clan = Clans.getClan(clanId);
List<Clan> clans = Clans.getClans();

//What you can do with a clan
clan.getClanId();
clan.getClanName();
clan.getClanTag();
clan.getWins();
clan.getLosses();
clan.getMembers();
clan.getOwner();
clan.getElo();

//Add remove clan members:
Clans.updateClanMembers(clan, memberList);

//Add wins and losses
Clans.addClanWin(clan);
Clans.addClanLoss(clan);

//Change clan elo
Clans.updateClanElo(clan, elo);

//Clan scorebard, returns null if the scoreboard is disabled
Scoreboard scoreboard = Clans.getClansScoreboard()

Config:

#----------------------------------------------------
#   ______     __         ______     __   __          |
#  /\  ___\   /\ \       /\  __ \   /\ "-.\ \         |
#  \ \ \____  \ \ \____  \ \  __ \  \ \ \-.  \        |
#   \ \_____\  \ \_____\  \ \_\ \_\  \ \_\\"\_\       |
#    \/_____/   \/_____/   \/_/\/_/   \/_/ \/_/       |
#                                                     |
#                 Created by Cerberus                 |
#-----------------------------------------------------|

#Elo
eloBase: 1000

#Database settings
dbHost: 'host'
dbUser: 'user'
dbPassword: 'password'
dbDb: 'database'
dbPort: 3306

Troubleshooting:
Q:The Clan tag prefix disappears after a few seconds and or doesn't show on all players?
A: Disable the auto-team function in the ViaVersion config. (1.8-1.10 only)

Similar projects

Plugin →