portals save and load + portals execute rtp

This commit is contained in:
SuperRonanCraft
2020-11-18 21:22:04 -05:00
parent 27fc53e780
commit 605ad66f2d
13 changed files with 127 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ public class RTPPlayer {
Location loc = pWorld.generateRandomXZ(settings.defaultWorld); //randomLoc(pWorld);
CompletableFuture<Chunk> chunk = PaperLib.getChunkAtAsync(pWorld.getWorld(), loc.getBlockX(), loc.getBlockZ());
chunk.thenAccept(result -> {
BetterRTP.debug("Checking location for " + p.getName());
//BetterRTP.debug("Checking location for " + p.getName());
Location tpLoc;
float yaw = p.getLocation().getYaw();
float pitch = p.getLocation().getPitch();

View File

@@ -3,5 +3,6 @@ package me.SuperRonanCraft.BetterRTP.player.rtp;
public enum RTP_TYPE {
COMMAND, //Player executed command
FORCED, //Player was forced to rtp (/rtp player <player>)
JOIN //Player joined and was rtp'd automatically
JOIN, //Player joined and was rtp'd automatically
ADDON //Player RTP'd from the external addons plugin
}