#Constructor

1 messages · Page 1 of 1 (latest)

chilly epoch
#

I needed a constructor and I created it, now that I made the constructor it doesn't let me register the command because it asks me to insert customPlayer

#

what do I have to say more than that? ps. I'm not saying this as sarcasm, I just don't understand

ember raptor
stoic epoch
#

?paste

stoic epoch
#

Send code please

ember raptor
#

yeah

chilly epoch
#

commands or customPlayer?

stoic epoch
#

Without code imposible to help

stoic epoch
chilly epoch
stoic epoch
#

Also mate please read name conventions

#

Really your conventions make my eyes hurt

chilly epoch
#

i read

stoic epoch
#

That is not following name cnventions

ember raptor
#

You have only one object of CustomPlayer

stoic epoch
#

He want to create a custom user obj?

chilly epoch
#

this is CustomPlayer

ember raptor
#

yeah but why create this on the constructor of a command?

chilly epoch
#

to be able to access the CustomPlayer class

stoic epoch
#

I would make smth like:

  1. Create a custom obj with all the properties you need to use
  2. Create a use repository for keeping all the online users
#

So when player first join to sever, i create the custom user obj and add it into UserRepository, every x time and when sever goes down i saved users from UserRepository back to db

ember raptor
#

you need to create new instance of custom player when registering the command

stoic epoch
#

I mean are u going to sync that plugin in many severs?

chilly epoch
#

personal

stoic epoch
#

no no that no

chilly epoch
#

what?

stoic epoch
#

I mean if you will going to have 2 skyblock severs which you will make them work together, so no matter which sever the user joins he will have his thing

#

Because the design you are using for me is no the best

chilly epoch
#

exact

stoic epoch
chilly epoch
#

np, one

stoic epoch
#

ok

chilly epoch
#

so i gotta watch those conventions?

ember raptor
#

Also pls follow Name Conventions

chilly epoch
#

resolved:)