Dieser Commit ist enthalten in:
Commit
7ba1ef5324
@ -98,7 +98,7 @@ public class WarpCommand extends SWCommand implements Disable, Enable {
|
|||||||
|
|
||||||
@Register("delete")
|
@Register("delete")
|
||||||
public void deleteWarp(Player player, Warp warp) {
|
public void deleteWarp(Player player, Warp warp) {
|
||||||
if (permissionCheck(player)) return;
|
if (!permissionCheck(player)) return;
|
||||||
warp.delete();
|
warp.delete();
|
||||||
BauSystem.MESSAGE.send("WARP_DELETED", player, warp.getName());
|
BauSystem.MESSAGE.send("WARP_DELETED", player, warp.getName());
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,7 @@ public class WarpListener implements Listener {
|
|||||||
if (vector.getX() * vector.getX() + vector.getZ() * vector.getZ() < 25) {
|
if (vector.getX() * vector.getX() + vector.getZ() * vector.getZ() < 25) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
vector.setY(0);
|
||||||
|
|
||||||
Vector position = event.getPlayer().getLocation().toVector().clone().add(vector.normalize().multiply(5));
|
Vector position = event.getPlayer().getLocation().toVector().clone().add(vector.normalize().multiply(5));
|
||||||
position.setY(event.getPlayer().getLocation().getY() - 1);
|
position.setY(event.getPlayer().getLocation().getY() - 1);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren