#What is wrong with my code?
1 messages · Page 1 of 1 (latest)
"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.
well it doesnt give any errors, whenever I type in the command in minecraft it says Unknown Command
So /pl shows your plugin as green?
how did you register it
^
full code and plugin.yml pls
commands should be in all lower case for once.
What happens if you type in the command in console?
it's registered well enough
man probably just didn't upload the correct file honestly
at least that's always the problem when it happens to me
Just change it to all lower case
do you get that thing with pterodactyl where it doesn't upload unless you refresh the page?
no
damn its just me
I just happen to delete and upload the same version without compiling
lol
or sometimes I'm paranoid and compile and re-upload like 4 times
the command with not all lowercase works
re-upload your plugin
maybe decompile the version on your test server to make sure it's all there
it still doesn't work
Well then make sure to compile, upload and restart.
And it doesn't hurt to look at this https://www.spigotmc.org/wiki/create-a-simple-command/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
ah yes we definitely know why thats happening....
error logs hint hint
Well we know. Because an internal error occurred while performing the command
so about that
item is null
why are you doing it like that?
its how I was making custom items all the time