-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch du bug du /settings et mailbox + cache #457
Conversation
Faire un cache |
(Pas de requests SQL h24) |
revérifiez mon code pour voir si ça marche bien SVP |
Tu toi test normalement |
de quoi ? |
bah faut pas |
Toujours pas, quand le joueur ce connecte tu load toujours la db |
non |
tu as bien test avec un second compte ? |
# Conflicts: # src/main/java/fr/communaywen/core/AywenCraftPlugin.java
src/main/java/fr/communaywen/core/adminshop/menu/buy/AdminShopBuy.java
Outdated
Show resolved
Hide resolved
src/main/java/fr/communaywen/core/mailboxes/menu/letter/SendingLetter.java
Show resolved
Hide resolved
|
||
@EventHandler | ||
public void onJoin(PlayerJoinEvent e) { | ||
Bukkit.getScheduler().runTaskAsynchronously(this.plugin, () -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ta boucle est innutile elle va juste mettre Player dans un autre thread et le reste sur le principal thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retiré
mais? pourquoi avoir rechanger le taux max d'item? |
bon laisse tomber je laisse la main au autres |
🫤 |
regarde les review et ce seras good |
src/main/java/fr/communaywen/core/settings/SettingsListener.java
Outdated
Show resolved
Hide resolved
src/main/java/fr/communaywen/core/mailboxes/menu/letter/SendingLetter.java
Outdated
Show resolved
Hide resolved
src/main/java/fr/communaywen/core/mailboxes/menu/letter/SendingLetter.java
Outdated
Show resolved
Hide resolved
c bon au cas ou |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prêt a être merge
a merge, je pense que les 2 joueurs actifs sur le serveur seront content d'avoir leur mailbox |
Good @AxenoDev ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oké je fais confiance a axewoui
Avez vous lu le Code de Conduite?: oui
Votre code se compile t-il en local ?: oui
Avez-vous supprimez les imports inutilisés ?: oui
Décrivez vos changements
Clairement et avec des screenshots si nécessaires
Ecriture des paramètres automatique lors de la connexion pour ne pas retourner null lors de l'ouverture des paramètres
Ajout d'un cache pour éviter les requêtes SQL permanentes
Réparation du /players
Réparation de la mailbox
Nouveau namespace pour le /settings :
Pensez à retirer le namespace omc_settings, s'il existe et de mettre celui là
settings.zip