1
0
mirror of https://e.coding.net/circlecloud/SimpleEssential.git synced 2024-11-17 01:18:47 +00:00

fix world command AOOB error...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-10-19 20:56:41 +08:00
parent 910abbc116
commit 6c4009a0ce

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