Skip to content
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

Merged
merged 38 commits into from
Nov 22, 2024
Merged

Conversation

gab4000
Copy link
Contributor

@gab4000 gab4000 commented Oct 10, 2024

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

@AxenoDev
Copy link
Collaborator

Faire un cache

@AxenoDev
Copy link
Collaborator

(Pas de requests SQL h24)

@gab4000
Copy link
Contributor Author

gab4000 commented Oct 12, 2024

revérifiez mon code pour voir si ça marche bien SVP

@gab4000 gab4000 changed the title Patch du bug du /settings Patch du bug du /settings + cache Oct 12, 2024
@AxenoDev
Copy link
Collaborator

Contributor

Tu toi test normalement

@gab4000
Copy link
Contributor Author

gab4000 commented Oct 14, 2024

de quoi ?

@AxenoDev
Copy link
Collaborator

bah faut pas

@AxenoDev
Copy link
Collaborator

Toujours pas, quand le joueur ce connecte tu load toujours la db

@gab4000
Copy link
Contributor Author

gab4000 commented Oct 16, 2024

non

@gab4000 gab4000 changed the title Patch du bug du /settings + cache Patch du bug du /settings + cache + modif adminshop Oct 19, 2024
@AxenoDev
Copy link
Collaborator

tu as bien test avec un second compte ?


@EventHandler
public void onJoin(PlayerJoinEvent e) {
Bukkit.getScheduler().runTaskAsynchronously(this.plugin, () -> {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retiré

@iambibi
Copy link
Contributor

iambibi commented Oct 23, 2024

mais? pourquoi avoir rechanger le taux max d'item?

@iambibi
Copy link
Contributor

iambibi commented Oct 23, 2024

bon laisse tomber je laisse la main au autres

@gab4000 gab4000 changed the title Patch du bug du /settings et mailbox + cache + modif adminshop Patch du bug du /settings et mailbox + cache Oct 23, 2024
@AxenoDev
Copy link
Collaborator

🫤

@AxenoDev
Copy link
Collaborator

regarde les review et ce seras good

@gab4000
Copy link
Contributor Author

gab4000 commented Nov 14, 2024

c bon au cas ou

Copy link
Contributor Author

@gab4000 gab4000 left a 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

@iambibi
Copy link
Contributor

iambibi commented Nov 19, 2024

a merge, je pense que les 2 joueurs actifs sur le serveur seront content d'avoir leur mailbox

@Xernas78
Copy link
Collaborator

Good @AxenoDev ?

Copy link
Collaborator

@Xernas78 Xernas78 left a 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

@Xernas78 Xernas78 merged commit 77034f7 into ServerOpenMC:main Nov 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants