mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
More work on commands
This commit is contained in:
33 files changed
+445
-382
No files matched your search
@@ -8,7 +8,25 @@ import java.util.UUID;
|
||||
/**
|
||||
* Represents data about a player on the server
|
||||
*/
|
||||
public record SavedUser(@NotNull User user, int homeSlots, boolean ignoringTeleports, @NotNull Instant rtpCooldown) {
|
||||
public class SavedUser {
|
||||
|
||||
private final User user;
|
||||
|
||||
private int homeSlots;
|
||||
private boolean ignoringTeleports;
|
||||
private Instant rtpCooldown;
|
||||
|
||||
public SavedUser(@NotNull User user, int homeSlots, boolean ignoringTeleports, @NotNull Instant rtpCooldown) {
|
||||
this.user = user;
|
||||
this.homeSlots = homeSlots;
|
||||
this.ignoringTeleports = ignoringTeleports;
|
||||
this.rtpCooldown = rtpCooldown;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public User getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public UUID getUserUuid() {
|
||||
@@ -20,4 +38,29 @@ public record SavedUser(@NotNull User user, int homeSlots, boolean ignoringTelep
|
||||
return user.getUsername();
|
||||
}
|
||||
|
||||
public int getHomeSlots() {
|
||||
return homeSlots;
|
||||
}
|
||||
|
||||
public void setHomeSlots(int homeSlots) {
|
||||
this.homeSlots = homeSlots;
|
||||
}
|
||||
|
||||
public boolean isIgnoringTeleports() {
|
||||
return ignoringTeleports;
|
||||
}
|
||||
|
||||
public void setIgnoringTeleports(boolean ignoringTeleports) {
|
||||
this.ignoringTeleports = ignoringTeleports;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Instant getRtpCooldown() {
|
||||
return rtpCooldown;
|
||||
}
|
||||
|
||||
public void setRtpCooldown(@NotNull Instant rtpCooldown) {
|
||||
this.rtpCooldown = rtpCooldown;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user