Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java.lang.NoSuchFieldError: spawnX
- at com.earth2me.essentials.Spawn.getSpawn(Spawn.java:100)
- at com.earth2me.essentials.spawn.EssentialsSpawnPlayerListener.onPlayerR
- espawn(EssentialsSpawnPlayerListener.java:16)
- at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.ja
- va:140)
- at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
- a:59)
- at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
- ava:225)
- at net.minecraft.server.ServerConfigurationManager.d(ServerConfiguration
- Manager.java:182)
- at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:754)
- at net.minecraft.server.Packet9Respawn.a(SourceFile:10)
- at net.minecraft.server.NetworkManager.a(SourceFile:230)
- at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
- at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
- at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
- at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
- at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
- Code that calls it:
- String worldId = config.getString(group + ".world", "");
- World world = server.getWorlds().get(server.getWorlds().size() > 1 ? 1 : 0);
- for (World w : server.getWorlds())
- {
- if (w.getEnvironment() != Environment.NORMAL) continue;
- world = w;
- break;
- }
- for (World w : server.getWorlds())
- {
- if (!w.getName().equals(worldId)) continue;
- world = w;
- break;
- }
- //WorldServer wh = ((CraftWorld)world).getHandle();
- double x = config.getDouble(group + ".x", config.getDouble("default.x", 0)); // wh.spawnX
- double y = config.getDouble(group + ".y", config.getDouble("default.y", 128)); // wh.spawnY
- double z = config.getDouble(group + ".z", config.getDouble("default.z", 0)); // wh.spawnZ
- float yaw = (float)config.getDouble(group + ".yaw", config.getDouble("default.yaw", 0));
- float pitch = (float)config.getDouble(group + ".pitch", config.getDouble("default.pitch", 0));
- return new Location(world, x, y, z, yaw, pitch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement