getServer

This commit is contained in:
MidnightTale 2023-04-11 23:22:55 +07:00
commit 4f981489d1

View file

@ -37,7 +37,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
Location loc = entity.getLocation(); Location loc = entity.getLocation();
Vector vel = entity.getVelocity(); Vector vel = entity.getVelocity();
Block movingTo = getBlockMovingTo(loc, vel); Block movingTo = getBlockMovingTo(loc, vel);
World end = Bukkit.getWorld("world_the_end"); World end = Bukkit.getServer().getWorld("world_the_end");
Location location = new Location(end, 100, 5, 0); Location location = new Location(end, 100, 5, 0);
FoliaLib foliaLib = new FoliaLib(this); FoliaLib foliaLib = new FoliaLib(this);