mirror of
https://github.com/CarmJos/MoeTeleport.git
synced 2026-06-04 07:48:16 +08:00
docs(badge): 添加标签
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user