portals save and load + portals execute rtp

This commit is contained in:
SuperRonanCraft committed 2020-11-18 21:22:04 -05:00
1 parent 27fc53e780
commit 605ad66f2d
13 files changed
+127 -23

No files matched your search

@@ -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();
@@ -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
}