Ignore:
Timestamp:
Jan 27, 2023, 7:28:00 PM (22 months ago)
Author:
alloc
Message:
  • Major refactoring
  • Using Utf8Json for (de)serialization
  • Moving APIs to REST
  • Removing dependencies from WebServer and MapRenderer to ServerFixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/CommandExtensions/src/Commands/RemoveLandProtection.cs

    r391 r402  
    5050                                GameManager.Instance.SetBlocksRPC (changes);
    5151
    52                                 SdtdConsole.Instance.Output ("Tried to remove #" + changes.Count +
    53                                                              " land protection blocks for player \"" + _id + "\". Note " +
    54                                                              "that only blocks in chunks that are currently loaded (close to any player) could be removed. " +
    55                                                              "Please check for remaining blocks by running:");
    56                                 SdtdConsole.Instance.Output ("  listlandprotection " + _id);
     52                                SdtdConsole.Instance.Output (
     53                                        $"Tried to remove #{changes.Count} land protection blocks for player \"{_id}\". Note that only blocks in chunks that are currently loaded (close to any player) could be removed. Please check for remaining blocks by running:");
     54                                SdtdConsole.Instance.Output ($"  listlandprotection {_id}");
    5755                        } catch (Exception e) {
    58                                 Log.Out ("Error in RemoveLandProtection.removeById: " + e);
     56                                Log.Out ($"Error in RemoveLandProtection.removeById: {e}");
    5957                        }
    6058                }
     
    8785                        GameManager.Instance.SetBlocksRPC (changes);
    8886
    89                         SdtdConsole.Instance.Output ("Land protection block at (" + v + ") removed");
     87                        SdtdConsole.Instance.Output ($"Land protection block at ({v}) removed");
    9088                }
    9189
     
    128126                                        } catch (Exception e) {
    129127                                                SdtdConsole.Instance.Output ("Error removing claims");
    130                                                 Log.Out ("Error in RemoveLandProtection.Run: " + e);
     128                                                Log.Out ($"Error in RemoveLandProtection.Run: {e}");
    131129                                        }
    132130                                } catch (Exception e) {
    133131                                        SdtdConsole.Instance.Output ("Error getting current player's position");
    134                                         Log.Out ("Error in RemoveLandProtection.Run: " + e);
     132                                        Log.Out ($"Error in RemoveLandProtection.Run: {e}");
    135133                                }
    136134                        } else if (_params.Count == 1) {
Note: See TracChangeset for help on using the changeset viewer.