Hover over the underline and tell us what the error is
|
Hello All,
I'm trying to add Motivote to my server but I'm having trouble adding it. Here is the command I currently have.
Spoiler for Open Command:
This is the error in Eclipse:
Everything is fine, except for that part.
Keep in mind that this is the latest Motivote system so I don't know what's wrong.
Other useful info:
Any help is appreciated!
Note: I have tried searching for what other people are using and none of them have helped..
Hovering over it may also show you suggestions for the correct method to be called.
EDIT: Unsure if it will with a jar, but yeah.
Requires either:
notCode:MOTIVOTE.redeem(SearchField.AUTH_CODE, auth); MOTIVOTE.redeem(SearchField.USER_NAME, username); MOTIVOTE.redeem(SearchField.IP_ADDRESS, ip);
Source:Code:MOTIVOTE.redeem(auth);
the monti website /info/getting-started
That will work because "MOTIVOTE.redeem(SearchField.AUTH_CODE, auth) != null" is true or false, so the boolean success will rely on whether it's null.
However, I'm unfamiliar with Motivote, but I would assume that method is a boolean itself.
Either that, or it's returning a value of some sort as way to make sure it passes.
So, with that being said, if that IS the case, you should probably also check if its true.
So an easier way would be to remove the != null (if it is a boolean method), then just do;
"if (success != null && success)"
You should also make that boolean final, as there's no reason for the value to be changed after assigning it.
EDIT: Also.. "Constants.LAST_VOTER", "Constants.CURRENT_VOTES" <- these are not constants
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |