#What is wrong with my code?

1 messages · Page 1 of 1 (latest)

tired fossil
shell locust
#

?notworking

#

Whats not working?

marsh vector
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

tired fossil
#

well it doesnt give any errors, whenever I type in the command in minecraft it says Unknown Command

shell locust
#

Look in your console for exceptions

#

*When starting the server

tired fossil
#

this is all it says

#

about the plugins

shell locust
#

So /pl shows your plugin as green?

tired fossil
#

eys

#

yes*

swift temple
#

how did you register it

shell locust
#

^

tired fossil
swift temple
#

full code and plugin.yml pls

shell locust
#

commands should be in all lower case for once.
What happens if you type in the command in console?

tired fossil
marsh vector
#

you didn't register it properly

#

did you add it to your plugin.yml?

swift temple
#

it's registered well enough

#

man probably just didn't upload the correct file honestly

tired fossil
swift temple
#

at least that's always the problem when it happens to me

shell locust
#

Just change it to all lower case

marsh vector
#

do you get that thing with pterodactyl where it doesn't upload unless you refresh the page?

marsh vector
#

damn its just me

swift temple
#

I just happen to delete and upload the same version without compiling

marsh vector
#

lol

swift temple
#

or sometimes I'm paranoid and compile and re-upload like 4 times

tired fossil
swift temple
#

re-upload your plugin

#

maybe decompile the version on your test server to make sure it's all there

tired fossil
#

it still doesn't work

shell locust
#

Well then make sure to compile, upload and restart.

marsh vector
tired fossil
#

ok

#

Ok well now it works but it says this

marsh vector
#

error logs hint hint

shell locust
#

Well we know. Because an internal error occurred while performing the command

tired fossil
#

so about that

marsh vector
#

item is null

shell locust
#

line 18 -> Item is null

marsh vector
#

I would assume its whatever is going on here

#

send ItemManager?

tired fossil
marsh vector
#

why are you doing it like that?

tired fossil
#

its how I was making custom items all the time

marsh vector
#

make the create method return the created item at least

#

not set fields

#

and it looks like its happening because you aren't calling init

#

but please change that code