#help

1 messages · Page 1 of 1 (latest)

twin atlas
#

nothing yet

#

ok so

#

maybe i can cut out the inneficient stuff?

#

stuff that isnt affected by economy

patent stone
#

Sure

twin atlas
patent stone
#

            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

twin atlas
#

alright will change that in the final version

#

but what about the economy itself resetting?

patent stone
#

so does it reset the eco of ALL your players?

twin atlas
#

it looks like it

quick wedge
#

(use pdc and abstrsact out your item logic)

twin atlas
#

it resets every now and then

#

not at specified times

patent stone
#

you should be using the economy API instead of dispatching commands aswell

#

just more reliable

twin atlas
#

thats the standard we use in the place where I develop

quick wedge
#

your place where you develop is dumb

twin atlas
#

true

#

its for learning experience tho

patent stone
#

i cant see a reason for it to be resetting everyones economy

twin atlas
patent stone
#

thats just initialization it shouldn't affect anything

twin atlas
#

idk it might be my localhost acting up

patent stone
#

It can't just act up like that, something has to be effecting it

twin atlas
#

oh wait

patent stone
#

if you can figure whether your entire economy is wiped or just a single player that would help a lot

twin atlas
#

do i need to have EssentialsEconomy on the server for it to work?

patent stone
#

well some sort of economy plugin yes

twin atlas
#

gg we figured it out

#

IM A FUCKING IDIOT

patent stone
#

lmao

#

what were you doing?

twin atlas
#

there wasnt EssentialsEconomy in the plugins folder

#

lmfao

patent stone
#

hahahah

twin atlas
#

anyways

#

tyvm for the help

patent stone
#

no worries

quick wedge
#

wait

twin atlas
#

?

quick wedge
#

isnt essentials eco is in the main essentialsx?

#

or that is another plugin that i didnt know of?

twin atlas
#

wait what

#

ur right

quick wedge
#

then

#

looks like we need to continue the thread lol

twin atlas
#

yeah lol

quick wedge
#

hmmm but i have no idea about essentialsx

#

so i guess im gonna afk here and wait for another thing i know 😛

twin atlas
#

sure

#

but like

#

what could be the cause

patent stone
#

or while afking?

twin atlas
#

it happens randomly

#

so afking ig

patent stone
#

try removing your plugin

#

and just afk for a while

#

see if it resets again

twin atlas
#

ok

#

oh wait

#

could it be of me suddenly killing the server?

patent stone
#

possibly but ive never had issues with economy when killing the server

twin atlas
#

@patent stone could it be caused by constant reloads?

patent stone
#

shouldnt be

#

would be a really shitty economy plugin if it were

twin atlas
#

cause it looks like it wipes once i have my plugin

#

sometimes

patent stone
#

so theres something in your plugin then

twin atlas
#

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

patent stone
#

thats super strange

#

try and just have your economy plugin and vault

#

and see if it happens

twin atlas
patent stone
#

the go to answer people will tell you is that reloading breaks a lot of things

#

but thats strange

twin atlas
#

maybe because the plugin didnt have enough time to initialize?

patent stone
#

possibly

twin atlas
#

and then it gets bashed with another rl

patent stone
#

try and give it time between reloads

#

see if it happens

twin atlas
#

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

patent stone
#

try another eco pluign

#

after all reloading does break stuff

#

only option is to restart instead

twin atlas
#

yeah ok

#

i only now have understood why reload = bad

quick wedge
#

wait so did you fix it?

#

the problem was because you reload right?

#

welp, you will need to always prefer restart than reload