Mineaurion / AurionEconomy

Economy Plugin for Sponge and Bukkit
GNU General Public License v3.0
0 stars 0 forks source link

Bug avec essentials ( version bukkit ) #5

Open Gaetann18 opened 1 year ago

Gaetann18 commented 1 year ago

Si la command /pay est activé de essentials cela fait déconner la DB economy.

Comment reproduire le bug :

Le joueur A fait /pay <joueurB> 5000 cela genère une erreur essential [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms! et la money des deux joueurs a été set a 0 ( vérfié via DB )

Dans essentials faut aller disable le register de la command /pay /balance

Logs :

[06Sep2023 15:24:59.564] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gaetann18 issued server command: /money
[06Sep2023 15:25:02.065] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gaetann18 issued server command: /money balance
[06Sep2023 15:25:22.337] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gaetann18 issued server command: /money set desmox9 1
[06Sep2023 15:25:26.126] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: desmox9 issued server command: /money balance
[06Sep2023 15:25:52.917] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: desmox9 issued server command: /pay Gaetann18 1
[06Sep2023 15:25:52.999] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:25:53.066] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:25:53.450] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:25:53.806] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:26:01.938] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gaetann18 issued server command: /money balance
[06Sep2023 15:26:07.488] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: desmox9 issued server command: /money balance
[06Sep2023 15:26:16.313] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gaetann18 issued server command: /pay desmox9 10
[06Sep2023 15:26:16.389] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:26:16.455] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:26:16.826] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:26:17.176] [Server thread/INFO] [Essentials/]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[06Sep2023 15:26:19.237] [Server thread/INFO] [net.minecraft.server.network.ServerGamePacketListenerImpl/]: desmox9 issued server command: /money balance
Gaetann18 commented 1 year ago

Quand on achete quelque chose dans le shop :

[15:42:42 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:42:42 INFO]: Gave 1 [Wandering Trader Spawn Egg] to desmox9
[15:42:42 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:42:43 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!

on peux acheter mais l'arg de deluxemenu [takemoney] ne substract pas les aurions donc si on a 1000 aurions qu'on achete un item a 1000; bah on a encore 1000 aurions

Lorsqu'on modifie la commande de withdraw de : [takemoney] 500 to [console] money withdraw %player_name% 500

cela fonctionne :

[15:51:00 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:51:00 INFO]: Gave 64 [Sushi] to Gaetann18
[15:51:00 INFO] [Console]: [AurionEconomy] The amount 200 has been subtracted from Gaetann18's current balance
[15:51:01 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:51:01 INFO]: Gave 64 [Sushi] to Gaetann18
[15:51:01 INFO] [Console]: [AurionEconomy] The amount 200 has been subtracted from Gaetann18's current balance
[15:51:02 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:51:02 INFO]: Gave 64 [Sushi] to Gaetann18
[15:51:02 INFO] [Console]: [AurionEconomy] The amount 200 has been subtracted from Gaetann18's current balance
[15:51:02 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:51:02 INFO]: Gave 64 [Sushi] to Gaetann18
[15:51:02 INFO] [Console]: [AurionEconomy] The amount 200 has been subtracted from Gaetann18's current balance
[15:51:04 INFO]: Gaetann18 issued server command: /money balance
[15:51:09 INFO]: desmox9 issued server command: /shop
[15:51:11 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:51:11 INFO]: Gave 64 [Sushi] to desmox9
[15:51:11 INFO] [Console]: [AurionEconomy] The amount 200 has been subtracted from desmox9's current balance
[15:51:15 INFO]: desmox9 issued server command: /money balance
[15:51:37 INFO]: Gaetann18 issued server command: /money balance desmox9
[15:51:44 INFO]: Gaetann18 issued server command: /money set desmox9 1
[15:51:46 INFO]: desmox9 issued server command: /shop
[15:51:47 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
[15:51:49 INFO] [Essentials]: Lag Notice - Slow Economy Response - Request took over {0}ms!
Yann151924 commented 12 months ago

Si nécessaire on peut toucher à ces paramètres :

economy-lag-warning: 300
permissions-lag-warning: 300
disable-eco: false

Le plugin désactivera l'economie d'essentials directement ce qui ne posera pas de soucis.

Yann151924 commented 10 months ago

Je la re-ouvre, il reste quelques trucs bizarre avec essentials