fixed teleports removing you from the game
This commit is contained in:
parent
39faf35409
commit
185b182061
@ -137,7 +137,7 @@ public class Fix extends AModule
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//Teleport
|
//Teleport
|
||||||
Teleport().TP(event.getPlayer(), UtilWorld.locMerge(event.getPlayer().getLocation(), block.getLocation().add(0.5, 0, 0.5)));
|
event.getPlayer().teleport(UtilWorld.locMerge(event.getPlayer().getLocation(), block.getLocation().add(0.5, 0, 0.5)));
|
||||||
|
|
||||||
//Inform
|
//Inform
|
||||||
UtilPlayer.message(event.getPlayer(), F.main(_moduleName, "Block Climb Prevented."));
|
UtilPlayer.message(event.getPlayer(), F.main(_moduleName, "Block Climb Prevented."));
|
||||||
|
@ -191,7 +191,7 @@ public class Blink extends SkillActive
|
|||||||
done = true;
|
done = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Factory.Teleport().TP(player, target);
|
player.teleport(target);
|
||||||
|
|
||||||
player.setFallDistance(0);
|
player.setFallDistance(0);
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ public class Evade extends SkillActive
|
|||||||
(float)(Math.random() - 0.5), (float)(Math.random() * 1.4), (float)(Math.random() - 0.5), 0, 10);
|
(float)(Math.random() - 0.5), (float)(Math.random() * 1.4), (float)(Math.random() - 0.5), 0, 10);
|
||||||
|
|
||||||
//Action
|
//Action
|
||||||
Factory.Teleport().TP(damagee, target);
|
damagee.teleport(target);
|
||||||
|
|
||||||
//Cloak
|
//Cloak
|
||||||
if (damagee.isSneaking())
|
if (damagee.isSneaking())
|
||||||
|
@ -144,7 +144,7 @@ public class Flash extends SkillActive
|
|||||||
Location loc = player.getLocation().add(player.getLocation().getDirection().multiply(curRange).add(new Vector(0, 0.4, 0)));
|
Location loc = player.getLocation().add(player.getLocation().getDirection().multiply(curRange).add(new Vector(0, 0.4, 0)));
|
||||||
|
|
||||||
if (curRange > 0)
|
if (curRange > 0)
|
||||||
Factory.Teleport().TP(player, loc);
|
player.teleport(loc);
|
||||||
|
|
||||||
player.setFallDistance(0);
|
player.setFallDistance(0);
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public class Recall extends Skill
|
|||||||
Location current = player.getLocation();
|
Location current = player.getLocation();
|
||||||
Location target = locs.getLast();
|
Location target = locs.getLast();
|
||||||
|
|
||||||
Factory.Teleport().TP(player, target);
|
player.teleport(target);
|
||||||
|
|
||||||
//Inform
|
//Inform
|
||||||
UtilPlayer.message(player, F.main(GetClassType().name(), "You used " + F.skill(GetName(level)) + "."));
|
UtilPlayer.message(player, F.main(GetClassType().name(), "You used " + F.skill(GetName(level)) + "."));
|
||||||
|
@ -144,7 +144,7 @@ public class FissureData
|
|||||||
//Teleport
|
//Teleport
|
||||||
if (cur.getLocation().getBlock().equals(block))
|
if (cur.getLocation().getBlock().equals(block))
|
||||||
{
|
{
|
||||||
Host.Factory.Teleport().TP(cur, cur.getLocation().add(0, 1, 0));
|
cur.teleport(cur.getLocation().add(0, 1, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Damage
|
//Damage
|
||||||
|
@ -74,7 +74,7 @@ public class RootingAxe extends Skill
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//Action
|
//Action
|
||||||
Factory.Teleport().TP(damagee, damagee.getLocation().add(0, -0.9, 0));
|
damagee.teleport(damagee.getLocation().add(0, -0.9, 0));
|
||||||
|
|
||||||
//Effect
|
//Effect
|
||||||
damagee.getWorld().playEffect(damagee.getLocation().add(0, 1, 0), Effect.STEP_SOUND, damagee.getLocation().getBlock().getTypeId());
|
damagee.getWorld().playEffect(damagee.getLocation().add(0, 1, 0), Effect.STEP_SOUND, damagee.getLocation().getBlock().getTypeId());
|
||||||
|
Loading…
Reference in New Issue
Block a user