Skip to content

Commit

Permalink
fix: plugin issues with name
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jun 8, 2022
1 parent f0037b1 commit 79f21a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "./GamingAPIPlugins/bin/Release/net461/Oxide.Ext.GamingApi.dll;./GamingAPIPlugins/bin/Release/net461/NATS.Client.dll;./GamingAPIPlugins/bin/Release/net461/RustGameAPI.dll;./GamingAPIPlugins/bin/Release/net461/Newtonsoft.Json.dll;./GamingAPIPlugins/bin/Release/net461/GamingAPIPlugins.dll"
file: "./GamingAPIPlugins/bin/Release/net461/Oxide.Ext.GamingApi.dll;./GamingAPIPlugins/bin/Release/net461/NATS.Client.dll;./GamingAPIPlugins/bin/Release/net461/RustGameAPI.dll;./GamingAPIPlugins/bin/Release/net461/Newtonsoft.Json.dll;./GamingAPIPlugins/plugins/GamingAPI.cs"
release_id: ${{ steps.create_release.outputs.id }}
overwrite: true
verbose: true
Expand Down
2 changes: 1 addition & 1 deletion GamingAPIPlugins/GamingAPIPlugins.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,6 @@
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Oxide.Ext.GamingApi" Version="0.9.0"/>
<PackageReference Include="Oxide.Ext.GamingApi" Version="0.10.0" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions GamingAPIPlugins/plugins/GamingAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Oxide.Plugins
{
[Info("GamingAPI", "jonaslagoni", "0.0.2")]
[Description("Share all the in-game events with the GamingAPI network")]
class Processor : RustPlugin
class GamingAPI : RustPlugin
{
private void Init()
{
Expand All @@ -30,14 +30,14 @@ object OnPlayerChat(BasePlayer player, string message, Chat.ChatChannel channel)
{
ChatMessage chatMessage = new ChatMessage
{
SteamId = player.IPlayer.Id,
SteamId = player.UserIDString,
Timestamp = System.DateTime.Now.ToString(),
FullMessage = message,
IsAdmin = player.IsAdmin,
PlayerName = player.displayName
};

DefaultPluginInformation.GetInstance().NatsClient.PublishToV0RustServersServerIdEventsPlayerSteamIdChatted(chatMessage, DefaultPluginInformation.GetServerId(), player.IPlayer.Id);
DefaultPluginInformation.GetInstance().NatsClient.PublishToV0RustServersServerIdEventsPlayerSteamIdChatted(chatMessage, DefaultPluginInformation.GetServerId(), player.UserIDString);
});
return null;
}
Expand Down

0 comments on commit 79f21a3

Please sign in to comment.