Update RainbowWarrior.java

Optimized and check if commandSender is a Player before casting.

Tested with single player in Bukkit.