mirror of
https://github.com/CarmJos/MoeTeleport.git
synced 2024-09-19 13:25:56 +00:00
docs(badge): 添加标签
This commit is contained in:
parent
d391364b96
commit
5abf09cf22
19
README.md
19
README.md
@ -8,6 +8,13 @@
|
||||
|
||||
# MoeTeleport 喵喵传送
|
||||
|
||||
[![CodeFactor](https://www.codefactor.io/repository/github/carm-outsource/MoeTeleport/badge?s=b76fec1f64726b5f19989aace6adb5f85fdab840)](https://www.codefactor.io/repository/github/carm-outsource/MoeTeleport)
|
||||
![CodeSize](https://img.shields.io/github/languages/code-size/carm-outsource/MoeTeleport)
|
||||
[![Download](https://img.shields.io/github/downloads/carm-outsource/MoeTeleport/total)](https://github.com/carm-outsource/MoeTeleport/releases)
|
||||
[![Java CI with Maven](https://github.com/carm-outsource/MoeTeleport/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/carm-outsource/MoeTeleport/actions/workflows/maven.yml)
|
||||
![Support](https://img.shields.io/badge/Minecraft-Java%201.13--Latest-blue)
|
||||
![](https://visitor-badge.glitch.me/badge?page_id=userprefix.readme)
|
||||
|
||||
开源的传送插件,包含数个功能,并根据用户需求持续更新添加新功能。
|
||||
|
||||
项目代码符合开发规范,适合新手开发者学习Bukkit,制作属于自己的插件。
|
||||
@ -124,18 +131,6 @@
|
||||
|
||||
支持 [MineDown 语法](https://wiki.phoenix616.dev/library:minedown:syntax),详见源文件。
|
||||
|
||||
### 玩家数据配置文件 (data/\<UUID\>.yml)
|
||||
|
||||
本插件采用 `YAML格式` 存储玩家数据。
|
||||
|
||||
```yaml
|
||||
# 玩家的家位置记录
|
||||
# 格式为 world;x;y;z;yaw;pitch
|
||||
homes:
|
||||
"name": "world;112.21;45;21.241245552;92.5512;-11"
|
||||
|
||||
```
|
||||
|
||||
## 使用统计
|
||||
|
||||
[![bStats](https://bstats.org/signatures/bukkit/MoeTeleport.svg)](https://bstats.org/plugin/bukkit/MoeTeleport/14459)
|
||||
|
@ -34,7 +34,6 @@ public class PluginMessages extends ConfigurationRoot {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public static final ConfiguredMessageList<BaseComponent[]> NO_PERMISSION = list().defaults(
|
||||
"&c&l抱歉!&f但您没有足够的权限使用该指令。"
|
||||
).build();
|
||||
@ -108,7 +107,6 @@ public class PluginMessages extends ConfigurationRoot {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static class RELOAD extends ConfigurationRoot {
|
||||
|
||||
public static final ConfiguredMessageList<BaseComponent[]> START = list().defaults(
|
||||
|
@ -3,6 +3,7 @@ package cc.carm.plugin.moeteleport.manager;
|
||||
import cc.carm.plugin.moeteleport.Main;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.SimpleCommandMap;
|
||||
import org.bukkit.plugin.SimplePluginManager;
|
||||
@ -36,9 +37,9 @@ public class CommandManager {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Map<String, org.bukkit.command.Command> getKnownCommands() {
|
||||
protected Map<String, Command> getKnownCommands() {
|
||||
try {
|
||||
return (Map<String, org.bukkit.command.Command>) knownCommandsFiled.get(commandMap);
|
||||
return (Map<String, Command>) knownCommandsFiled.get(commandMap);
|
||||
} catch (IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -49,8 +50,7 @@ public class CommandManager {
|
||||
return this.plugin.getName().toLowerCase() + " ";
|
||||
}
|
||||
|
||||
|
||||
public SimpleCommandMap getCommandMap() {
|
||||
protected SimpleCommandMap getCommandMap() {
|
||||
return commandMap;
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ public class CommandManager {
|
||||
registeredCommands.clear();
|
||||
}
|
||||
|
||||
public static class AliasCommand extends org.bukkit.command.Command {
|
||||
public static class AliasCommand extends Command {
|
||||
|
||||
protected final CommandManager commandManager;
|
||||
protected final String targetCommand;
|
||||
@ -90,7 +90,7 @@ public class CommandManager {
|
||||
this.targetCommand = targetCommand;
|
||||
}
|
||||
|
||||
public SimpleCommandMap getCommandMap() {
|
||||
protected SimpleCommandMap getCommandMap() {
|
||||
return this.commandManager.getCommandMap();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user