fixes ClassCastException for Worldguard checks.