Skip to content

Commit

Permalink
[PvPLeaderboard,PvPPunishment,GenericChatCommands] Fixed an issue wit…
Browse files Browse the repository at this point in the history
…h commands that lookup players by name; Bumped versions of each VMod
  • Loading branch information
WhiteFang5 committed Aug 6, 2022
1 parent 746d8bb commit fcdb9cf
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@
* Initial release

## PvP Leaderboard
### v1.0.2
* Fixed an issue with commands that lookup players by name

### v1.0.1
* Fixed the logging of the incorrect current level in the grief-kill log (it logged the killer's lvl instead of the victim's)

### v1.0.0
* Initial release

## PvP Punishment
### v1.0.4
* Fixed an issue with commands that lookup players by name

### v1.0.3
* Added a new config option to announce a grief-kill (exactly the same as the PvP Leaderboard mod v1.0.1)

Expand All @@ -52,5 +58,8 @@
* Initial release

## Generic Chat Commands
### v1.0.1
* Fixed an issue with commands that lookup players by name

### v1.0.0
* Initial release
2 changes: 1 addition & 1 deletion GenericChatCommands/GenericChatCommands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>VMods.GenericChatCommands</AssemblyName>
<RootNamespace>VMods.GenericChatCommands</RootNamespace>
<Description>A mod that adds a number of generic/general usage commands</Description>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
Expand Down
2 changes: 1 addition & 1 deletion PvPLeaderboard/PvPLeaderboard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>VMods.PvPLeaderboard</AssemblyName>
<RootNamespace>VMods.PvPLeaderboard</RootNamespace>
<Description>A mod that keeps track of player's K/D and adds a pvp leaderboard</Description>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
Expand Down
2 changes: 1 addition & 1 deletion PvPPunishment/PvPPunishment.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>VMods.PvPPunishment</AssemblyName>
<RootNamespace>VMods.PvPPunishment</RootNamespace>
<Description>A mod that punishes high-level players that kill low-level players</Description>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
Expand Down
14 changes: 11 additions & 3 deletions Shared/VModCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,19 @@ public VModCharacter(Entity userEntity, Entity charEntity, EntityManager? entity
foreach(var userEntity in users)
{
var userData = entityManager.Value.GetComponentData<User>(userEntity);
var playerCharacter = entityManager.Value.GetComponentData<PlayerCharacter>(userData.LocalCharacter._Entity);
if(userData.CharacterName.ToString() == charactername)
if(userData.CharacterName.ToString() != charactername)
{
return new VModCharacter(userData, playerCharacter);
continue;
}

var characterEntity = userData.LocalCharacter._Entity;
if(!entityManager.Value.HasComponent<PlayerCharacter>(characterEntity))
{
continue;
}

var playerCharacter = entityManager.Value.GetComponentData<PlayerCharacter>(characterEntity);
return new VModCharacter(userData, playerCharacter);
}
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion Thunderstore/GenericChatCommands/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "VMods_Generic_Chat_Commands",
"description": "A mod that adds a fair amount of generic chat commands (mostly for Mods & Admins only though) and a player chat muting system.",
"version_number": "1.0.0",
"version_number": "1.0.1",
"dependencies": [
"BepInEx-BepInExPack_V_Rising-1.0.0",
"molenzwiebel-Wetstone-1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion Thunderstore/PvPLeaderboard/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "VMods_PvP_Leaderboard",
"description": "A mod that keeps track of Kills, Death and the K/D ratio of players and ranks them in a leaderboard.",
"version_number": "1.0.1",
"version_number": "1.0.2",
"dependencies": [
"BepInEx-BepInExPack_V_Rising-1.0.0",
"molenzwiebel-Wetstone-1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion Thunderstore/PvPPunishment/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "VMods_PvP_Punishment",
"description": "A mod that punishes low-level kills.",
"version_number": "1.0.3",
"version_number": "1.0.4",
"dependencies": [
"BepInEx-BepInExPack_V_Rising-1.0.0",
"molenzwiebel-Wetstone-1.1.0"
Expand Down

0 comments on commit fcdb9cf

Please sign in to comment.