ClanCats 图标

ClanCats

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/clancats
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: bukkit paper spigot

资源介绍

ClanCats

Time

Commands:

  • /clan:
    • alias: /c
    • subcommands:
      • create:
        • you can only run this when you aren't in a clan
        • usage: /clan create
      • disband:
        • you can only run this when you are in a clan, and you're the owner
        • usage: /clan disband
      • invite:
        • you can only run this when you have owner/admin and there's players online with no clans
        • usage: /clan invite
      • accept:
        • you can only run this when you have received any invites to any clans (can be multiple, tab complete shows it)
        • usage: /clan accept
      • promote:
        • you can only run this, when you have at least admin, and there are players in the clan with member role that you can promote
        • usage: /clan promote
      • demote:
        • you can only run this if you have owner and there are admins in the clan that you can demote
        • usage: /clan demote
      • transfer:
        • you can only use this if you are not lonely in the clan
        • usage: /clan transfer
      • kick:
        • you can only use this if there are players in the clan with lower role than you (so admin can only kick members, owner can kick both admins and regular members)
        • usage: /clan kick
      • leave:
        • you can only use this if you are in a clan
        • usage: /clan leave
      • You will also need the permission clancats.command.clan. to run the command, not just the scenario I described earlier
    • by default this opens a gui containing members of the group
    • permission: clancats.command.clan
      Features:
    • you can't hit your clanmates
    • that's it

Building:

git clone https://github.com/JGJ52/ClanCats.git
cd ClanCats
mvn clean package

Include this plugin in your project:

<repository>
    <id>jgj52-repo</id>
    <url>https://maven.jgj52.hu/repository/maven-releases/</url>
</repository>
<dependency>
    <groupId>hu.jgj52</groupId>
    <artifactId>ClanCats</artifactId>
    <version>1.0</version>
    <scope>provided</scope>
</dependency>

Example to get the name of a clan that the player "player214" is in:

import hu.jgj52.clanCats.Types.Clan;
import org.bukkit.Bukkit;

Clan clan = Clan.fromPlayer(Bukkit.getPlayer("player214")); // this can be null if player does not have a clan!
String clanName = clan.getName();

you can use this to display it behind their name etc.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
The Vanilla Expansion

价格:0 墨喵币
下载量:0

查看详情
Iguana in a Blanket

价格:0 墨喵币
下载量:0

查看详情
PortalOverrides

价格:0 墨喵币
下载量:0

查看详情
Pokémon Masters Type Icons (Pixelmon Reforged)

价格:0 墨喵币
下载量:0

查看详情