Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MrXiaoM/SweetAutoResidence

Open more actions menu

Repository files navigation

SweetAutoResidence

Minecraft 领地自动圈地道具插件

简介

你可以通过这个插件,定义多个用于自动圈地的道具。使用道具后,道具会扣除,然后按照配置中的大小进行自动圈地,不会扣除玩家的金币。

你可以添加一定的使用要求,比如要求玩家的已圈地数量为 0,要求玩家需要到达什么等级,要求玩家需要拥有什么权限,等等。

兼容性

目前支持使用以下领地插件

更多插件可通过编写附属去兼容,详见 SweetAutoResidence#checkAdapter

命令

根命令为 /sweetautoresidence,别名为 /sautoresidence, /sautores, /sares, /sar
<> 包裹的为必选参数,以 [] 包裹的为可选参数。

所有命令均只能由管理员执行。

命令 描述
/sares give <物品> [数量] [玩家] [-b] 给予自己或某人指定圈地道具,若输入 -b,则这个道具只能该玩家使用
/sares reload 重载插件配置文件

变量

本插件向 PlaceholderAPI 注册了以下变量

%sares_residence_count%       玩家当前领地数量
%sares_residence_max_count%   玩家当前最大领地数量限制
%sares_random_<字典名>%        随机生成一个名字,详见 config.yml

开发者

jitpack

repositories {
    maven("https://jitpack.io")
}
dependencies {
    compileOnly("com.github.MrXiaoM:SweetAutoResidence:$VERSION")
}

编写领地适配器附属

编写一个类,实现 top.mrxiaom.sweet.autores.api.IResidenceAdapter,可参考内置的 AdapterResidence

这个类必须要有一个满足条件的构造函数:有且仅有一个类型为 SweetAutoResidence (本插件主类) 的参数。

package org.example;

import top.mrxiaom.sweet.autores.SweetAutoResidence;
import top.mrxiaom.sweet.autores.api.IResidenceAdapter;

public class MyAdapter implements IResidenceAdapter {
    public MyAdapter(SweetAutoResidence plugin) {
        // TODO
    }
}

然后添加资源文件 residence-adapter.yml 到 jar,写入如下内容

class: '你实现的类的引用路径,例如 org.example.MyAdapter'

将编译后的领地适配器附属 jar 文件放到 plugins/SweetAutoResidence/libraries/ 目录中,重启服务器即可使用。

About

Minecraft 领地自动圈地道具插件

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.