Buggy code:
private Integer hologramTaskId = null ; private boolean hologramIsVisible = false ; private Map < Integer , ItemStack > respawnInventory ; private Map < Integer , ItemStack > respawnArmor ; private List < ItemStack > restoreInventory ; private boolean restoreOpenWand ; private Float restoreExperience ; private Integer restoreLevel ; private String destinationWarp ; public Mage ( String id , MagicController controller ) { } public void setCostReduction ( float reduction ) { } public boolean hasStoredInventory ( ) { } @ Override public Set < Spell > getActiveSpells ( ) { } public Inventory getStoredInventory ( ) { } public void setLocation ( Location location ) { } public void setLocation ( Location location , boolean direction ) { } public void clearCache ( ) { } public void setCooldownReduction ( float reduction ) { } public void setPowerMultiplier ( float mutliplier ) { } public boolean usesMana ( ) { } public boolean addToStoredInventory ( ItemStack item ) { } public boolean cancel ( ) { } public void onPlayerQuit ( PlayerEvent event ) { } public void onPlayerDeath ( EntityDeathEvent event ) { } public void onPlayerCombust ( EntityCombustEvent event ) { } protected void callEvent ( Listener listener , Event event ) { } public void onPlayerDamage ( EntityDamageEvent event ) { } public void setActiveWand ( Wand activeWand ) { } public long getBlockPlaceTimeout ( ) { } public void castMessage ( String message ) { } @ Override public void sendMessage ( String message ) { } public void clearBuildingMaterial ( ) { } @ Override public void playSoundEffect ( SoundEffect soundEffect ) { } public UndoQueue getUndoQueue ( ) { } @ Override public UndoList getLastUndoList ( ) { } public boolean prepareForUndo ( UndoList undoList ) { } public boolean registerForUndo ( UndoList undoList ) { } @ Override public void addUndoBatch ( UndoBatch batch ) { } protected void setPlayer ( Player player ) { } protected void setEntity ( Entity entity ) { } protected void setCommandSender ( CommandSender sender ) { } protected void onLoad ( MageData data ) { } protected void finishLoad ( MageData data ) { } @ Override public boolean load ( MageData data ) { try { if ( data == null ) { finishLoad ( data ) ; return true ; } boundWands . clear ( ) ; Map < String , ItemStack > boundWandItems = data . getBoundWands ( ) ; if ( boundWandItems != null ) { for ( ItemStack boundWandItem : boundWandItems . values ( ) ) { Wand boundWand = new Wand ( controller , boundWandItem ) ; boundWands . put ( boundWand . getTemplateKey ( ) , boundWand ) ; } } this . data = data . getExtraData ( ) ; com . elmakers . mine . bukkit . api . wand . Wand apiWand = data . getSoulWand ( ) ; if ( apiWand instanceof Wand ) { this . soulWand = ( ( Wand ) ( apiWand ) ) ; } cooldownExpiration = data . getCooldownExpiration ( ) ; fallProtectionCount = data . getFallProtectionCount ( ) ; fallProtection = data . getFallProtectionDuration ( ) ; if ( ( ( fallProtectionCount ) > 0 ) && ( ( fallProtection ) > 0 ) ) { fallProtection = ( System . currentTimeMillis ( ) ) + ( fallProtection ) ; } isNewPlayer = false ; playerName = data . getName ( ) ; lastDeathLocation = data . getLastDeathLocation ( ) ; lastCast = data . getLastCast ( ) ; destinationWarp = data . getDestinationWarp ( ) ; if ( ( destinationWarp ) != null ) { if ( ! ( destinationWarp . isEmpty ( ) ) ) { Location destination = controller . getWarp ( destinationWarp ) ; if ( destination != null ) { Plugin plugin = controller . getPlugin ( ) ; controller . info ( ( ( ( ( "Warping<seq2seq4repair_space>" + ( getEntity ( ) . getName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( destinationWarp ) ) + "<seq2seq4repair_space>on<seq2seq4repair_space>login" ) ) ; <START_BUG> TeleportTask task = new TeleportTask ( getController ( ) , getEntity ( ) , destination , 4 , true , null ) ; <END_BUG> Bukkit . getScheduler ( ) . scheduleSyncDelayedTask ( plugin , task , 1 ) ; } else { controller . info ( ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>warp<seq2seq4repair_space>" + ( getEntity ( ) . getName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( destinationWarp ) ) + "<seq2seq4repair_space>on<seq2seq4repair_space>login,<seq2seq4repair_space>warp<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist" ) ) ; } } destinationWarp = null ; } getUndoQueue ( ) . load ( data . getUndoData ( ) ) ; respawnInventory = data . getRespawnInventory ( ) ; respawnArmor = data . getRespawnArmor ( ) ; restoreOpenWand = data . isOpenWand ( ) ; BrushData brushData = data . getBrushData ( ) ; if ( brushData != null ) { brush . load ( brushData ) ; } if ( controller . isInventoryBackupEnabled ( ) ) { restoreInventory = data . getStoredInventory ( ) ; restoreLevel = data . getStoredLevel ( ) ; restoreExperience = data . getStoredExperience ( ) ; } } catch ( Exception ex ) { controller . getLogger ( ) . warning ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>player<seq2seq4repair_space>data<seq2seq4repair_space>for<seq2seq4repair_space>" + ( playerName ) ) + ":<seq2seq4repair_space>" ) + ( ex . getMessage ( ) ) ) ) ; return false ; } finishLoad ( data ) ; return true ; } @ Override public boolean save ( MageData data ) { } public boolean checkLastClick ( long maxInterval ) { } protected void removeActiveEffects ( ) { } public void sendMessageKey ( String key ) { } public Wand checkWand ( ItemStack itemInHand ) { } @ Override public Wand checkWand ( ) { } public void tick ( ) { } public int processPendingBatches ( int maxBlockUpdates ) { } public void setLastHeldMapId ( int mapId ) { }

Fix:
TeleportTask task = new TeleportTask ( getController ( ) , getEntity ( ) , destination , 4 , true , true , null ) ;