Skip to content

Commit

Permalink
[2.0.1] 版本更新
Browse files Browse the repository at this point in the history
- [F] 修复MoeTeleport指令错误的问题。
  • Loading branch information
CarmJos committed Feb 18, 2022
1 parent 9ee18d0 commit 8bc2f0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 8bc2f0d

Please sign in to comment.