From 6c4009a0ce861c00c151aa6938055e8759de25d6 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Mon, 19 Oct 2015 20:56:41 +0800 Subject: [PATCH] fix world command AOOB error... Signed-off-by: 502647092 --- .../java/cn/citycraft/SimpleEssential/command/CommandWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/citycraft/SimpleEssential/command/CommandWorld.java b/src/main/java/cn/citycraft/SimpleEssential/command/CommandWorld.java index cb58186..1565809 100644 --- a/src/main/java/cn/citycraft/SimpleEssential/command/CommandWorld.java +++ b/src/main/java/cn/citycraft/SimpleEssential/command/CommandWorld.java @@ -50,7 +50,7 @@ public class CommandWorld extends BaseCommand { sender.sendMessage(I18n.p("World.info", wd.getName(), wd.getEnvironment().toString(), wd.getLoadedChunks().length, wd.getEntities().size(), tileEntities, wd.getPlayers().size())); } case 1: - final World wd = Bukkit.getWorld(args[1]); + final World wd = Bukkit.getWorld(args[0]); if (wd != null) { if (sender instanceof Player) { ((Player) sender).teleport(wd.getSpawnLocation());