From 45e7c225e7bd64fabfae0124fd7e1447bb0c5099 Mon Sep 17 00:00:00 2001 From: AxenoDev Date: Tue, 22 Oct 2024 23:05:56 +0200 Subject: [PATCH 1/4] Adding a security to check if pq is null or not --- .../communaywen/core/quests/PlayerQuests.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/java/fr/communaywen/core/quests/PlayerQuests.java b/src/main/java/fr/communaywen/core/quests/PlayerQuests.java index f3918b1a..bc830873 100644 --- a/src/main/java/fr/communaywen/core/quests/PlayerQuests.java +++ b/src/main/java/fr/communaywen/core/quests/PlayerQuests.java @@ -2,6 +2,7 @@ import fr.communaywen.core.quests.qenum.QUESTS; import lombok.Getter; +import org.jetbrains.annotations.NotNull; import java.util.HashMap; import java.util.Map; @@ -9,8 +10,8 @@ @Getter public class PlayerQuests { - private final Map questsProgress; - public final Map questsTier; + @NotNull private final Map questsProgress; + @NotNull public final Map questsTier; public PlayerQuests() { this.questsProgress = new HashMap<>(); @@ -21,19 +22,19 @@ public PlayerQuests() { } } - public int getProgress(QUESTS quest) { + public int getProgress(@NotNull QUESTS quest) { return questsProgress.getOrDefault(quest, 0); } - public int getCurrentTier(QUESTS quest) { + public int getCurrentTier(@NotNull QUESTS quest) { return questsTier.getOrDefault(quest, 0); } - public void setCurrentTier(QUESTS quests, int tier) { + public void setCurrentTier(@NotNull QUESTS quests, int tier) { questsTier.put(quests, tier); } - public void setProgress(QUESTS quest, int progress) { + public void setProgress(@NotNull QUESTS quest, int progress) { questsProgress.put(quest, progress); int tier = 0; for (int i = 0; i < quest.getQtTiers().length; i++) { @@ -46,7 +47,7 @@ public void setProgress(QUESTS quest, int progress) { } } - public void addProgress(QUESTS quest, int amount) { + public void addProgress(@NotNull QUESTS quest, int amount) { int currentTier = getCurrentTier(quest); if(currentTier < 0 || currentTier >= quest.getQtTiers().length) throw new IllegalArgumentException("Invalid tier for quest " + quest.name()); @@ -58,12 +59,12 @@ public void addProgress(QUESTS quest, int amount) { } } - public boolean isQuestCompleted(QUESTS quest) { + public boolean isQuestCompleted(@NotNull QUESTS quest) { int currentTier = getCurrentTier(quest); return currentTier >= quest.getQtTiers().length - 1 && getProgress(quest) >= quest.getQt(quest.getQtTiers().length - 1); } - public void removeProgress(QUESTS quest, int amount) { + public void removeProgress(@NotNull QUESTS quest, int amount) { int currentProgress = questsProgress.getOrDefault(quest, 0); int newProgress = Math.max(0, currentProgress - amount); questsProgress.put(quest, newProgress); @@ -79,7 +80,7 @@ public void removeProgress(QUESTS quest, int amount) { } } - public void resetProgress(QUESTS quest) { + public void resetProgress(@NotNull QUESTS quest) { questsProgress.put(quest, 0); setCurrentTier(quest, 0); } From ad6634ef591e0db42508cc73fbe4b73155e6b542 Mon Sep 17 00:00:00 2001 From: AxenoDev Date: Tue, 22 Oct 2024 23:06:57 +0200 Subject: [PATCH 2/4] Adding a security to check if pq is null or not --- .../java/fr/communaywen/core/quests/QuestsManager.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/fr/communaywen/core/quests/QuestsManager.java b/src/main/java/fr/communaywen/core/quests/QuestsManager.java index 4d5c95d3..181caf89 100644 --- a/src/main/java/fr/communaywen/core/quests/QuestsManager.java +++ b/src/main/java/fr/communaywen/core/quests/QuestsManager.java @@ -17,6 +17,7 @@ import org.bukkit.Sound; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.NotNull; import java.sql.*; import java.util.*; @@ -57,8 +58,6 @@ public static void loadPlayerData(Player player) throws SQLException { playerQuests.put(playerId, pq); for (QUESTS quest : QUESTS.values()) { - int progress = pq.getProgress(quest); - int tier = pq.getCurrentTier(quest); StringBuilder tierInfo = new StringBuilder(); for (int i = 0; i < quest.getQtTiers().length; i++) { tierInfo.append("Tier ").append(i).append(": ").append(quest.getQt(i)).append(", "); @@ -72,11 +71,9 @@ public static PlayerQuests getPlayerQuests(UUID player) { public static void manageQuestsPlayer(UUID uuid, QUESTS quest, int amount, String actionBar) { Player player = Bukkit.getPlayer(uuid); - if(!player.isConnected()) return; - PlayerQuests pq = getPlayerQuests(uuid); + @NotNull PlayerQuests pq = getPlayerQuests(uuid); int currentTier = pq.getCurrentTier(quest); - - if (pq.isQuestCompleted(quest)) { return; } + if (!player.isConnected() || pq == null || pq.isQuestCompleted(quest)) { return; } if (currentTier < 0 || currentTier >= quest.getQtTiers().length) { return; From f80656abaac15e0bedf6f8d6db19b75ffcc5edac Mon Sep 17 00:00:00 2001 From: MathiasDPX Date: Wed, 23 Oct 2024 11:42:09 +0200 Subject: [PATCH 3/4] Add logo --- .gitignore | 5 ++--- .idea/icon.png | Bin 0 -> 12755 bytes 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .idea/icon.png diff --git a/.gitignore b/.gitignore index 2727da89..293333ab 100644 --- a/.gitignore +++ b/.gitignore @@ -138,7 +138,6 @@ gradle-app.setting ### Project ### /builds/ - bin/ - -/server/ \ No newline at end of file +/server/ +!.idea/icon.png \ No newline at end of file diff --git a/.idea/icon.png b/.idea/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d0477cfee1cd5be204263f46f959c1facdf2c4d0 GIT binary patch literal 12755 zcmeHuc|6qJ+y9v{A`+FjqZlnz3~m(>W+)+BDOtu=l65Q-+07s+vZSPL*@+Ocj4jQS zl%j0e*X&Dn!kFcE+~4QJb*}6EJ|12+)aK(6;Q;{f z>FQiC1^@{^A_4af_-EDkCmsIT>7iqO2LRrE+dl~K&&$7HBjS#+wk9b2ac~+wpd2&| zGyr%T%geaI3Bccux)(IA`6A{9c;igg5*C*151%v$M8}>>&u&E@=MSHFt?46pUTKd4 zId(7d$%W{n_Ma`Ao_67#O(ad6qwNQBm0BO3b&f|!><^!KCh4{QAPax_-bDI4yx>3D zhfnioDvC7uuJ`)KUrgV6**;17L7HQ)pYs0Jq;D_zFrt(c@P=){eli$*W9|I=pfr<|N4o?KeV)v=z}PL7I1eRJS-~G z`6>1McP{mHDi*^7CT)B}9vv5#7UmO|1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X%hW?bT$XW_0QWClfcpWNi|4xs&hVcr6Uml1y|a6S%hU{o%GrHJ zsWEeXz`a@|&Aux@EZ~AId>nMI=7ASEDlc*Z!)bif8U+Nf3EPU2h9bO&$cylQsJRKs zP9lBi6$I)=Tb!IOBoML74*~gIt9UsiJ+|+9p0Bf5I+RbEYg2Mkd+wah1BD5PH|Lh& z#U;K{(((2Tr9;eL+Ya3GDrX|-naFIr;sJirnCN~Ws6R^xeNW;1_M$@Z`(y`=KG3zz zWMp23M8#Q~ik&m#Cu=kKT~`QaL4HbVUbs1Fp}q|Cb;f^4?4Y?Wg}HNs z#mF6iImLONo@v#9rp*l9+8EoL<3`NgBn$Gu&PQP9EbMdo#PwVXP+}j`3+&7SNr<(8 z)ApaeEOZz5CV^kIny&lajsG||)hhWw4Eb)I(zkN=ugf`jNp1e%XF4AoY~C^ZN?9f# zwmzvfBa+O@ohS5;Gqf#-guM5O#%Es5F(j@|U4b=9er48Bhcxx?zpW?g@YsKm%q+^z zPR#4*X70)~iMsV3&s*C3!-S!C9X&VEl#LG}7C>IN4_P%Rnd|OuL7)7Nsj@740?n5X z(Oisa;;yAde(gd{+)P_a-JsgJvnlYqY)x& zyMjs^Z@I=ryAGcVgBMNX&eAhkpC>RSYV?EsB;0OAcJ0sn*`O_J-w#rxaqWYtmx3Ht z^}jw|$Fu$ Date: Wed, 23 Oct 2024 17:15:02 +0200 Subject: [PATCH 4/4] Oops, faut save les limits de homes --- src/main/java/fr/communaywen/core/Managers.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/fr/communaywen/core/Managers.java b/src/main/java/fr/communaywen/core/Managers.java index d126b36e..b00c895e 100644 --- a/src/main/java/fr/communaywen/core/Managers.java +++ b/src/main/java/fr/communaywen/core/Managers.java @@ -169,6 +169,7 @@ public void init(AywenCraftPlugin plugin) { public void cleanup() { /* Besoin de la db */ reportManager.saveReports(); + homesManagers.saveHomesLimits(); DreamTabManager.close(); /* Plus besoin de la db */