forked from zhdev/griefus
Fixed item frame & armor stand logging under Folia
This commit is contained in:
parent
7170e29452
commit
ace870b930
13 changed files with 95 additions and 75 deletions
|
|
@ -1,7 +1,9 @@
|
|||
package net.coreprotect.paper;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.block.Sign;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
|
|
@ -62,4 +64,9 @@ public class PaperAdapter implements PaperInterface {
|
|||
return sign.getLine(line);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void teleportAsync(Entity entity, Location location) {
|
||||
entity.teleport(location);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
package net.coreprotect.paper;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.entity.Entity;
|
||||
|
||||
public class PaperHandler extends PaperAdapter implements PaperInterface {
|
||||
|
||||
|
|
@ -9,4 +11,9 @@ public class PaperHandler extends PaperAdapter implements PaperInterface {
|
|||
return server.isStopping();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void teleportAsync(Entity entity, Location location) {
|
||||
entity.teleportAsync(location);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
package net.coreprotect.paper;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.block.Sign;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
|
||||
|
|
@ -13,4 +15,6 @@ public interface PaperInterface {
|
|||
|
||||
public String getLine(Sign sign, int line);
|
||||
|
||||
public void teleportAsync(Entity entity, Location location);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue