Skip to content

Commit 3d43483

Browse files
committed
update(gamedata): Offsets
1 parent 2f046c2 commit 3d43483

4 files changed

Lines changed: 12 additions & 5 deletions

File tree

AddonsManager.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0" ExcludeAssets="runtime" PrivateAssets="all" />
1919
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.0" ExcludeAssets="runtime" PrivateAssets="all" />
2020
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.0" ExcludeAssets="runtime" PrivateAssets="all" />
21-
<PackageReference Include="SwiftlyS2.CS2" Version="1.1.0" ExcludeAssets="runtime" PrivateAssets="all" />
21+
<PackageReference Include="SwiftlyS2.CS2" Version="1.1.3" ExcludeAssets="runtime" PrivateAssets="all" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
```
2828
sw_downloadaddon <workshop_id> # Download a workshop addon via command
29+
sw_searchpath # View all the VPK Search Paths
2930
```
3031

3132
## Adding Addons

resources/gamedata/offsets.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"windows": 187
55
},
66
"NetworkGameServer::Addons": {
7-
"linux": 336,
8-
"windows": 336
7+
"linux": 344,
8+
"windows": 344
99
}
1010
}

src/AddonsManager.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace AddonsManager;
1212

13-
[PluginMetadata(Id = "AddonsManager", Version = "1.0.1", Name = "Addons Manager", Author = "Swiftly Development Team", Description = "No description.")]
13+
[PluginMetadata(Id = "AddonsManager", Version = "1.0.2", Name = "Addons Manager", Author = "Swiftly Development Team", Description = "No description.")]
1414
public partial class AddonsManager(ISwiftlyCore core) : BasePlugin(core)
1515
{
1616
public static IOptionsMonitor<AddonsConfig> Config { get; private set; } = null!;
@@ -86,8 +86,14 @@ public void OnSteamAPIActivated()
8686
}
8787

8888
[Command("searchpath")]
89-
public void ViewSearchPaths(ICommandContext _)
89+
public void ViewSearchPaths(ICommandContext context)
9090
{
91+
if (context.IsSentByPlayer)
92+
{
93+
context.Reply("[AddonsManager] This command can only be used from the server console.");
94+
return;
95+
}
96+
9197
Core.GameFileSystem.PrintSearchPaths();
9298
}
9399

0 commit comments

Comments
 (0)