#Plugin issue when server is started again

1 messages · Page 1 of 1 (latest)

trail pilot
#

Hello sorry for being so heavy with the protections plugin. But the following happens to me:

  1. The server is on and you place the block, the claim is created, if our member does not let you break, etc. Everything's fine

  2. When the server shuts down everything is saved correctly

  3. When the server is turned on again, it is as if everything was hacked, it lets you break blocks, if you are the owner and you break the protection block, it does not eliminate it

And this problem drives me crazy

austere blaze
#

the issue is related to plugin loading stuff i think

hollow tapir
#

Debuggery!

#

Add a bunch of console logs throughout your code and find out where it’s failing.

modest matrix
#

when are you posting the code on github?

trail pilot
#

That is the block breal event

austere blaze
#

yo this new font on the pastbin is sekcsy

trail pilot
#

Its the first time that something like this happens to me

#

Because if i do /ps info its giving all my claim info correctly

modest matrix
#

is the data loaded correctly?

trail pilot
#

Yes because when i do /ps info the claim uuid, owner uuid are the same from the db

#

So its saved correctly

#

Wait you can join the server to see it yourself

modest matrix
#

uh i think we'd have to see more code lol

#

what version

trail pilot
#

51.222.254.76:25583

#

Any version

#

Fourten

#

Is weird because it doesnt allow me to break blocks

#

Fourten

#

I will send the data loading code

modest matrix
#

not experienced with mongodb

trail pilot
#

ok

#

sad

#

😮‍💨

#

But thanks i ill try to figure what happening

#

Thanks for ur time

trail pilot
#

a

maiden remnant
#

You're loading the claims with the cuboid codec?

#

You might need to make a codec for the claim object itself

trail pilot
#

yes

#

I have my own cuboid class

trail pilot
#

But im mainly registering the Cuboid.class in the codec

#

I also need to mention that the Cuboid.class uses a custom Location object because if i save the Location from bukkit them i have issue like this: "property x has 2 types Double and Integer" something like that

#

@maiden remnant sorry for ping but i dont really know what its happening

#

Because before server going down everything works perfect

#

I think that a cuboid issue would allow to place blocks

maiden remnant
#

you're trying to get a claim with a cuboid codec

#

that's all I see

trail pilot
#

Yeah

#

What do you need to see

#

I can send more code if need

maiden remnant
#

What if you made a codec for literally every single aspect of the claim 🤔