Fix LandingPad #6
@ -15,6 +15,8 @@ import org.bukkit.Location;
|
|||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
import org.bukkit.potion.PotionEffect;
|
||||||
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
@ -46,6 +48,7 @@ public class LandingPad extends SpecialItem {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean handleUse(Player p) {
|
public boolean handleUse(Player p) {
|
||||||
|
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 2, 1, false, false, false));
|
||||||
Location l = p.getLocation();
|
Location l = p.getLocation();
|
||||||
BlockVector3 paste = BlockVector3.at(l.getX() - 1, l.getY() - 5, l.getZ()).subtract(offset);
|
BlockVector3 paste = BlockVector3.at(l.getX() - 1, l.getY() - 5, l.getZ()).subtract(offset);
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren