#help
1 messages · Page 1 of 1 (latest)
ok so
maybe i can cut out the inneficient stuff?
stuff that isnt affected by economy
Sure
https://paste.md-5.net/oqejunisix.java more in the upper part is the economy stuff
if (e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_ONE)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_TWO)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_THREE)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_FOUR)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_FIVE)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_SIX)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_SEVEN)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_EIGHT)
|| e.getPlayer().getInventory().getItemInMainHand().equals(FastWands.SELL_WAND_LEVEL_NINE)) {
``` use isSimilar for this btw
not equals
alright will change that in the final version
but what about the economy itself resetting?
so does it reset the eco of ALL your players?
it looks like it
(use pdc and abstrsact out your item logic)
you should be using the economy API instead of dispatching commands aswell
just more reliable
thats the standard we use in the place where I develop
your place where you develop is dumb
i cant see a reason for it to be resetting everyones economy
https://paste.md-5.net/beluqefapo.java also i extracted everything so that only econ remains
thats just initialization it shouldn't affect anything
idk it might be my localhost acting up
It can't just act up like that, something has to be effecting it
oh wait
if you can figure whether your entire economy is wiped or just a single player that would help a lot
do i need to have EssentialsEconomy on the server for it to work?
well some sort of economy plugin yes
hahahah
no worries
wait
?
isnt essentials eco is in the main essentialsx?
or that is another plugin that i didnt know of?
yeah lol
hmmm but i have no idea about essentialsx
so i guess im gonna afk here and wait for another thing i know 😛
does it happen after you run commands
or while afking?
possibly but ive never had issues with economy when killing the server
@patent stone could it be caused by constant reloads?
so theres something in your plugin then
but like
what
google also gives nothing
huh???
it reset after a 2nd reload
if i spam it with reloads
yeah on the 2nd reload
thats super strange
try and just have your economy plugin and vault
and see if it happens
the go to answer people will tell you is that reloading breaks a lot of things
but thats strange
maybe because the plugin didnt have enough time to initialize?
possibly
and then it gets bashed with another rl
i gave it 15 seconds
slow seconds
and still resets
ok i will stop the server and do it without my plugin
its server-side problem
wtf