mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 10:45:54 +01:00
Simplify code
This commit is contained in:
parent
b40afbe167
commit
b71a5e79e9
@ -55,8 +55,7 @@ public class Teleport implements Listener {
|
||||
Config config = fileManager.getConfig(new File(plugin.getDataFolder(), "language.yml"));
|
||||
FileConfiguration configLoad = config.getFileConfiguration();
|
||||
|
||||
if(worldManager.isIslandWorld(event.getFrom().getWorld())
|
||||
|| (event.getTo() != null && worldManager.isIslandWorld(event.getTo().getWorld()))) {
|
||||
if(worldManager.isIslandWorld(event.getFrom().getWorld()) || worldManager.isIslandWorld(event.getTo().getWorld())) {
|
||||
Bukkit.getScheduler().runTaskLater(plugin, () -> islandManager.updateFlight(player), 1L);
|
||||
}
|
||||
islandManager.loadPlayer(player);
|
||||
|
Loading…
Reference in New Issue
Block a user