-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef41c31
commit c488d1e
Showing
24 changed files
with
256 additions
and
39 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
build/classes/java/main/com/severalcircles/flames/data/user/FlamesUser.class
Binary file not shown.
Binary file modified
BIN
-21 Bytes
(99%)
build/classes/java/main/com/severalcircles/flames/data/user/UserFunFacts.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
build/classes/java/main/com/severalcircles/flames/events/CommandEvent.class
Binary file not shown.
Binary file modified
BIN
+67 Bytes
(100%)
build/classes/java/main/com/severalcircles/flames/events/MessageEvent.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/main/java/com/severalcircles/flames/data/server/FlamesServer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright (c) 2024 Several Circles. | ||
*/ | ||
|
||
package com.severalcircles.flames.data.server; | ||
|
||
import java.time.Instant; | ||
import java.time.temporal.ChronoField; | ||
import java.time.temporal.ChronoUnit; | ||
import java.util.Date; | ||
import java.util.Properties; | ||
import java.util.Random; | ||
|
||
public class FlamesServer { | ||
private int score; | ||
private String id; | ||
private int hootanannyDay; | ||
|
||
public FlamesServer(int score, String id, int hootananyDay) { | ||
this.score = score; | ||
this.id = id; | ||
this.hootanannyDay = hootananyDay; | ||
|
||
} | ||
public FlamesServer(String id) { | ||
this.id = id; | ||
this.score = 0; | ||
this.hootanannyDay = new Random().nextInt(28) + 1; // Randomly select a day of the month for Hootanany Day | ||
} | ||
public Properties createData() { | ||
Properties data = new Properties(); | ||
data.put("score", String.valueOf(score)); | ||
data.put("id", id); | ||
data.put("hootanannyDay", String.valueOf(hootanannyDay)); | ||
return data; | ||
} | ||
public int getHootanannyDay() { | ||
return hootanannyDay; | ||
} | ||
public int getScore() { | ||
return score; | ||
} | ||
|
||
public void setScore(int score) { | ||
this.score = score; | ||
} | ||
|
||
public void addScore(int score) { | ||
this.score += score; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.