Fix a bug where claiming a new land would display that land as neutral

This commit is contained in:
Shaun Bennett 2015-08-29 13:56:26 -07:00
parent fae27df496
commit 62cf58bd55
4 changed files with 9 additions and 2 deletions

View File

@ -5,7 +5,6 @@
<excludeFromCompile> <excludeFromCompile>
<directory url="file://$PROJECT_DIR$/Nautilus.Game.PvP" includeSubdirectories="true" /> <directory url="file://$PROJECT_DIR$/Nautilus.Game.PvP" includeSubdirectories="true" />
<directory url="file://$PROJECT_DIR$/Mineplex.ServerMonitor" includeSubdirectories="true" /> <directory url="file://$PROJECT_DIR$/Mineplex.ServerMonitor" includeSubdirectories="true" />
<directory url="file://$PROJECT_DIR$/Nautilus.Game.Arcade" includeSubdirectories="true" />
</excludeFromCompile> </excludeFromCompile>
<resourceExtensions /> <resourceExtensions />
<wildcardResourcePatterns> <wildcardResourcePatterns>

View File

@ -594,6 +594,12 @@ public class ClanInfo
if (p != null) playerOffline(p); if (p != null) playerOffline(p);
} }
@Override
public String toString()
{
return _id + "," + _name;
}
public void playerOffline(Player player) public void playerOffline(Player player)
{ {
_onlinePlayers.remove(player.getUniqueId()); _onlinePlayers.remove(player.getUniqueId());

View File

@ -456,6 +456,7 @@ public class ClansDataAccessLayer
ClanTerritory claim = new ClanTerritory(); ClanTerritory claim = new ClanTerritory();
claim.Owner = name; claim.Owner = name;
claim.Safe = safe; claim.Safe = safe;
claim.Chunk = chunk;
clan.getClaimSet().add(chunk); clan.getClaimSet().add(chunk);
_manager.getClaimMap().put(chunk, claim); _manager.getClaimMap().put(chunk, claim);

View File

@ -6,6 +6,7 @@ import java.util.LinkedList;
import java.util.List; import java.util.List;
import java.util.Map.Entry; import java.util.Map.Entry;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Chunk; import org.bukkit.Chunk;
import org.bukkit.Location; import org.bukkit.Location;