1
mirror of https://github.com/CarmJos/MoeTeleport.git synced 2024-09-19 21:35:56 +00:00

[2.0.1] 版本更新

- [F] 修复MoeTeleport指令错误的问题。
This commit is contained in:
Carm Jos 2022-02-18 20:59:02 +08:00
parent 9ee18d0f3c
commit 8bc2f0dba5

View File

@ -11,7 +11,7 @@ public class MoeTeleportCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command,
@NotNull String s, @NotNull String[] args) {
if (args[0].equalsIgnoreCase("reload")) {
if (args.length == 1 && args[0].equalsIgnoreCase("reload")) {
commandSender.sendMessage("Reloading config...");
ConfigManager.reload();
commandSender.sendMessage("Config reloaded.");