Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by danielm175, Jun 13, 2016.
OMG why dose this not work?
I can still do /plugins WHY?
1. You'll get ClassCastException, if console executes this command
2. You need to use in these cases the PlayerCommandPreprocessEvent..
Is this a joke? "dose"? >_>
Spigot/Bukkit commands are probably registered before plugin commands. You have to catch it with an event, specifically PlayercommandPreprocessEvent as @Haoshoku said.
lol I never use this event before I don't know the code sorry
what would the code be for a example?
Agreed, learn Java then try to make plugins.
At least point him in the right direction instead of laughing at him. Besides, he's trying to learn Java. His struggle now is learning the Event API.
The links below are rather useful when learning how to use the Event API.
I know java
Just not events
you clearly don't, and if you knew java, you'd know a boolean is not an event
I do know java mate just not events
Why would you ever name a string "message3" also why do you have your stuff so spread out? If you know Java I can point you in the direction of the JavaDocs instead so you can learn much easier
So if you look at his night vision plugin, and decompile it, you think he made that? LOL
yes I did mate
considering "author: Nova" is in the plugin.yml it's hard to believe but meh
the packages are going against Java naming conventions so it may be his, don't be so quick to judge.
is it only because you cant? Just asking and please stop being rude in this chat or I will report you I made this so people can help not be rude
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL, look at my plugins kid