Update Main.java

Recode, did not need all the returns and you did a if not a else if.
Merge pull request #2 from bwfcwalshyPluginDev/patch-2

Update Main.java