fix world command AOOB error...

Signed-off-by: 502647092 <jtb1@163.com>
pull/2/MERGE
502647092 2015-10-19 20:56:41 +08:00
parent 910abbc116
commit 6c4009a0ce
1 changed files with 1 additions and 1 deletions

View File

@ -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());