Update RainbowWarrior.java

Optimized and check if commandSender is a Player before casting.

Tested with single player in Bukkit.
Merge pull request #1 from zombiekiller753/patch-1

Optimized RainbowWarrior.java