Discussion in 'Plugin Development' started by MCBro911, Jul 8, 2015.
@MCBro911 You should probably provide us with more specific information..
You claim to be a professional Java Developer, yet you cannot even tell us what doesn't work?
@MCBro911 The problem...?
"Message Me For Any Further Help!"
I don't think anyone will be doing this after this post.
Here is a list of possible problems.
You might be missing some null checks.
You might not be creating the instance the right way.
Some of the other classes referenced might be bad/null.
the config could be null.
And here are some suggestions:
Why are you just using an Object and then checking if it is a instance of command sender instead of just requiring it to be a command sender
Remove each line that contains '*/' (this can break code, and you should just remove the line if it is unused)
Why did you not instantly set the debug to anything. You can always change it if needed, and it will make sure there are no NPEs.
Format your code.
If the messages return a string, why cast it to a string for the 'prefix' field?
Separate names with a comma.