mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
More bukkit adapter stuff, load SQL schema from file, start work on MySQL implementation, start event processing
This commit is contained in:
1 parent
8e7d5e74a0
commit
bd52c99d4d
18 files changed
+973
-101
No files matched your search
@@ -1,20 +1,21 @@
|
||||
package net.william278.huskhomes.position;
|
||||
|
||||
import net.william278.huskhomes.player.Player;
|
||||
import net.william278.huskhomes.player.User;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Represents a home set by a {@link Player}
|
||||
* Represents a home set by a {@link User}
|
||||
*/
|
||||
public class Home extends SavedPosition {
|
||||
|
||||
/**
|
||||
* The {@link Player} who owns this home
|
||||
* The {@link User} who owns this home
|
||||
*/
|
||||
@NotNull
|
||||
public final Player owner;
|
||||
public final User owner;
|
||||
|
||||
/**
|
||||
* {@code true} if this home is public
|
||||
@@ -24,13 +25,13 @@ public class Home extends SavedPosition {
|
||||
public Home(double x, double y, double z, float yaw, float pitch,
|
||||
@NotNull World world, @NotNull Server server,
|
||||
@NotNull PositionMeta positionMeta, @NotNull UUID uuid,
|
||||
@NotNull Player owner, boolean isPublic) {
|
||||
@NotNull User owner, boolean isPublic) {
|
||||
super(x, y, z, yaw, pitch, world, server, positionMeta, uuid);
|
||||
this.owner = owner;
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
|
||||
public Home(Position position, PositionMeta meta, @NotNull Player owner) {
|
||||
public Home(Position position, PositionMeta meta, @NotNull User owner) {
|
||||
super(position, meta);
|
||||
this.owner = owner;
|
||||
this.isPublic = false;
|
||||
|
||||
Reference in new issue
Block a user