Ignore:
Timestamp:
Jul 3, 2015, 4:16:11 PM (9 years ago)
Author:
alloc
Message:

Server fixes for A12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/AllocsCommands/Commands/ListLandProtection.cs

    r233 r238  
    99                {
    1010                        return "lists all land protection blocks and owners";
     11                }
     12
     13                public override string GetHelp () {
     14                        return "Usage:\n" +
     15                                   "  1. listlandprotection summary\n" +
     16                                   "  2. listlandprotection <steam id>\n" +
     17                                   "  3. listlandprotection <player name / entity id>\n" +
     18                                   "  4. listlandprotection nearby\n" +
     19                                   "  5. listlandprotection nearby <radius>\n" +
     20                                   "1. Lists only players that own claimstones, the number they own and the protection status\n" +
     21                                   "2. Lists only the claims of the player given by his SteamID including the individual claim positions\n" +
     22                                   "3. Same as 2 but player given by his player name or entity id (as given by e.g. \"lpi\")\n" +
     23                                   "4. Lists claims in a square with edge length of 64 around the executing player\n" +
     24                                   "5. Same as 4 but square edge length can be specified";
    1125                }
    1226
     
    7286                                }
    7387
    74                                 Dictionary<Vector3i, PersistentPlayerData> d = ppl.positionToLPBlockOwner;
     88                                Dictionary<Vector3i, PersistentPlayerData> d = ppl.m_lpBlockMap;
    7589                                if (d != null) {
    7690                                        Dictionary<PersistentPlayerData, List<Vector3i>> owners = new Dictionary<PersistentPlayerData, List<Vector3i>> ();
     
    93107                                                        name += " (" + kvp.Key.PlayerId + ")";
    94108
    95                                                         SdtdConsole.Instance.Output (String.Format ("Player \"{0}\" owns {3} keystones (protected: {1}, current hardness multiplier: {2})", name, w.LandClaimIsActive (kvp.Key), w.LandClaimPower (kvp.Key), kvp.Value.Count));
     109                                                        SdtdConsole.Instance.Output (String.Format ("Player \"{0}\" owns {3} keystones (protected: {1}, current hardness multiplier: {2})", name, w.IsLandProtectionValidForPlayer (kvp.Key), w.GetLandProtectionHardnessModifierForPlayer (kvp.Key), kvp.Value.Count));
    96110                                                        if (!summaryOnly) {
    97111                                                                foreach (Vector3i v in kvp.Value) {
Note: See TracChangeset for help on using the changeset viewer.