mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Start work on tpOffline, add database column & modify upgrade script for 2.7
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
6ee2b2ce4d
commit
8b104a04cd
7 files changed
+101
-11
No files matched your search
@@ -68,6 +68,17 @@ public final class HuskHomes extends JavaPlugin {
|
||||
ignoringTeleportRequests.remove(uuid);
|
||||
}
|
||||
|
||||
// Ignoring teleport requests handler
|
||||
private static final HashSet<UUID> teleportingPlayers = new HashSet<>();
|
||||
public static boolean isTeleporting(UUID uuid) { return teleportingPlayers.contains(uuid); }
|
||||
public static void setTeleporting(UUID uuid) {
|
||||
teleportingPlayers.add(uuid);
|
||||
}
|
||||
public static void setNotTeleporting(UUID uuid) {
|
||||
teleportingPlayers.remove(uuid);
|
||||
}
|
||||
|
||||
// Metrics ID for bStats integration
|
||||
private static final int METRICS_PLUGIN_ID = 8430;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user