mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Add /edithome, use instant for timestamps, new locales
This commit is contained in:
1 parent
eddae1051c
commit
a91128ca3d
24 files changed
+793
-205
No files matched your search
@@ -22,20 +22,21 @@ public class PositionMeta {
|
||||
public String description;
|
||||
|
||||
/**
|
||||
* The epoch timestamp of a position's creation
|
||||
* The time the position was created
|
||||
*/
|
||||
public long timestamp;
|
||||
@NotNull
|
||||
public Instant creationTime;
|
||||
|
||||
public PositionMeta(@NotNull String name, @NotNull String description, long timestamp) {
|
||||
public PositionMeta(@NotNull String name, @NotNull String description, @NotNull Instant creationTime) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.timestamp = timestamp;
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public PositionMeta(@NotNull String name, @NotNull String description) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.timestamp = Instant.now().getEpochSecond();
|
||||
this.creationTime = Instant.now();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user