Skip to content

Commit

Permalink
Fixed small wilderness bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brad811 committed May 4, 2011
1 parent 4908d4b commit bd3f76e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public boolean cancelAction(Location location, Player player, String type)
if(zone == null)
{
Wilderness wild = getWilderness(location);
if(wild.protection.get(type) == true)
if(!wild.hasPlayer(player.getName()) && wild.protection.get(type) == true)
{
player.sendMessage("The wilderness has "+type+" protection.");
return true;
Expand Down

0 comments on commit bd3f76e

Please sign in to comment.