What steps will reproduce the problem?
Using MultiVerse with worlds where one name is contained in another (public/public_nether), under the right conditions players in world "public" would not get PvPToggle protection because the plugin thought the user was in world "public_nether". This is because PvPToggle tests for each world listed by Bukkit if worlda.contains(worldb). Thus if worlda is "public_nether" and worldb is "public", the test returns true, even though there is a more exact match for the world name.
What is the expected output?
A player in world "public" should get treated as if they are in world "public".
What do you see instead?
A player in world "public" gets treated as they are in world "public_nether"
What version are you using?
v3.0.0 / compiled from git src
Do you have an error log of what happened?
Please provide any additional information below:
I've submitted a fix that will do partial world name matches only if there is one world name that is matched. Otherwise it requires an exact name match.
To post a comment, please
or register a new account.