更多版本支持
- 现已理论支持1.13及以上所有版本 - 但是作者仅在1.16及以上进行过完整测试,1.13~1.15仅进行了启动测试
This commit is contained in:
parent
1932598988
commit
581aac178d
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>deercloud</groupId>
|
||||
<artifactId>LiveBot</artifactId>
|
||||
<version>1.1-SNAPSHOT</version>
|
||||
<version>1.2</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>LiveBot</name>
|
||||
@ -69,7 +69,7 @@
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.19.2-R0.1-SNAPSHOT</version>
|
||||
<version>1.13-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -6,13 +6,11 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.TabExecutor;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
import java.util.*;
|
||||
|
||||
public class Commands implements TabExecutor {
|
||||
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) {
|
||||
if (Objects.equals(args[0], "reload")) {
|
||||
if (sender instanceof Player) {
|
||||
@ -170,7 +168,6 @@ public class Commands implements TabExecutor {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ParametersAreNonnullByDefault
|
||||
public List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) {
|
||||
if (args.length == 1) {
|
||||
return Arrays.asList("reload", "setBot", "away", "setTime", "setPattern", "setCanBeMoved", "stop", "start", "skipAFK");
|
||||
|
@ -1,10 +1,10 @@
|
||||
name: LiveBot
|
||||
version: '${project.version}'
|
||||
main: deercloud.livebot.LiveBot
|
||||
api-version: 1.19
|
||||
api-version: 1.13
|
||||
prefix: LiveBot
|
||||
load: STARTUP
|
||||
authors: [ Luming ]
|
||||
authors: [ Luming, DeerCloud, ColdeZhang ]
|
||||
description: 将机器人玩家切换为旁观模式并自动跟随其他玩家。
|
||||
website: https://blog.deercloud.site
|
||||
commands:
|
||||
|
Loading…
Reference in New Issue
Block a user