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:
parent
910abbc116
commit
6c4009a0ce
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user