I am currently using Eclipse to code a new plugin. I have been following tutorials online, however have ran into an error. My friend has been helping with the code, however he is unsure of this fix. I am running into an “Unreachable code” error. I have marked the location of the error. Thanks for any help!
Share
don’t put a semicolon at the end of your if statement. as the commenter mentioned, you’ve made this mistake on line 33, 50, and 66
Also, for the sake of readability, make sure that your code blocks line up. a few lines above your error you will see 2
}in the same column. stuff like that makes the code hard to read.