Skip to content

Commit

Permalink
fixed javadocs and some old faulty comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Relism committed Jan 10, 2024
1 parent 2f9a51d commit 6603ff5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
5 changes: 5 additions & 0 deletions assets/locales/en_US.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
input_quest_name: "Enter the quest name here"
input_quest_desc: "Enter the quest description here"
input_quest_coins: "Enter the number of reward coins here (0 if none)"
input_quest_item: "Use the item you're holding as the reward item? (true/false)"
quest_creation_success: "Successfully created the quest!"
17 changes: 9 additions & 8 deletions src/main/java/dev/relismdev/playlegendquests/models/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.bukkit.OfflinePlayer;

/**
* Represents an economy profile associated with a player, containing information about their balance.
* Represents an User profile associated with a player, containing information about them.
*/
public class User {

Expand All @@ -13,13 +13,14 @@ public class User {
private static String locale;

/**
* Constructs an Economy object associated with the specified player and balance.
* Constructs an User object associated with the specified player and balance.
*
* @param p The OfflinePlayer associated with this User model profile.
* @param player The OfflinePlayer associated with this User model profile.
* @param balance The balance associated with the player's User model.
* @param balance The locale associated with the player's User model.
*/
public User(OfflinePlayer p, int balance, String locale) {
this.player = p;
public User(OfflinePlayer player, int balance, String locale) {
this.player = player;
this.uuid = String.valueOf(p.getUniqueId());
this.balance = balance;
this.locale = locale;
Expand Down Expand Up @@ -55,7 +56,7 @@ public static void setBalance(int balance) {
/**
* Retrieves the preferred locale (language) associated with this player's User model.
*
* @return The balance associated with this player's economy.
* @return The balance associated with this player's User model.
*/
public static String getLocale() {
return locale;
Expand All @@ -64,7 +65,7 @@ public static String getLocale() {
/**
* Retrieves the uuid associated with this player's User model.
*
* @return The balance associated with this player's economy.
* @return The balance associated with this player's User model.
*/
public static String getUuid() {
return uuid;
Expand All @@ -73,7 +74,7 @@ public static String getUuid() {
/**
* sets the preferred locale (language) associated with this player's User model.
*
* @return The balance associated with this player's User model.
* @param locale The locale to set for this player's User model.
*/
public static void setLocale(String locale) {
User.locale = locale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ public static boolean createUser(User user){
}

/**
* Retrieves an Economy object for the specified OfflinePlayer from the database.
* Retrieves an User object for the specified OfflinePlayer from the database.
*
* @param player The OfflinePlayer to retrieve the Economy object for.
* @return The Economy object associated with the player; null if not found or an error occurs.
* @param player The OfflinePlayer to retrieve the User object for.
* @return The User object associated with the player; null if not found or an error occurs.
*/
public static User getUser(OfflinePlayer player){
try {
Expand Down

0 comments on commit 6603ff5

Please # to comment.