Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
Hath authored and Hath committed Oct 29, 2023
1 parent f0988fe commit e864d6b
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PlayerStats
# PlayerStats
[![Nuget](https://img.shields.io/nuget/v/Hath.PlayerStats)](https://www.nuget.org/packages/Hath.PlayerStats/)
[![Nuget](https://img.shields.io/nuget/dt/Hath.PlayerStats?label=nuget%20downloads)](https://www.nuget.org/packages/Hath.PlayerStats/)

Expand All @@ -22,33 +22,54 @@ Discord:
SortBy: "Accuracy"
```
### Configuration
```ruby
```yaml
# See https://github.com/HathHub/PlayerStats

Database:
ConnectionString: "Server=localhost;Port=3306;Database=dbname;User=username;Password=password;"
TableName: "HathPlayerStats"
MySQL:
ConnectionString: "Server=localhost;Port=3306;Database=dbname;User=username;Password=password;"
TableName: "HathPlayerStats"

Messages:
Stats: "[Stats for {PlayerName} #{Position}]\n Kills: {Kills} Deaths: {Deaths} Headshots: {Headshots} Accuracy: {Accuracy}\n Messages: {Messages} Zombies: {Zombies} Megas: {MegaZombies}\nFish: {Fish} Animals: {Animals} Harvests: {Harvests} Resources: {Resources}"
RankingHeader: "<b>[Top 5 players]</b>"
Ranking: "#{Position} {PlayerName}: Kills: {Kills} Deaths: {Deaths} Headshots: {Headshots} Accuracy: {Accuracy}"

Stats:
Ranking:
SortBy: "Kills"
Limit: "5"

Discord:
Enabled: true
WebhookURL: ""
Embed:
Top: 5
SortBy: "Accurracy"
Enabled: true
Interval: 60
Embeds:
- MyKillsEmbed:
Top: 3
SortBy: "Kills"
Webhook: ""
MessageID: 214124531553
Header: "asd"
Description: "asd"
Field:
Inline: true
Name: "🥇**#{Position}**"
Value: "👤 **[{PlayerName}](https://steamcommunity.com/profiles/{SteamID})**
> 🪦 **{Kills}** Kills"
- MyHeadshotsEmbed:
Top: 3
SortBy: "Headshots"
Webhook: ""
MessageID: 214124531553
Header: "asd"
Description: "asd"
Field:
Inline: true
Name: "🥇**#{Position}**"
Value: "👤 **[{PlayerName}](https://steamcommunity.com/profiles/{SteamID})**
> 💀 **{Headshots}** Headshots"

Rewards:
- Variable: "Kills"
Threshold: 100
Prizes:
Commands:
- "give {PlayerID} 363"
- "give {PlayerID} 17"
Global: false
Expand All @@ -57,13 +78,12 @@ Rewards:

- Variable: "Headshots"
Threshold: 50
Prizes:
Commands:
- "give {PlayerID} 363"
- "give {PlayerID} 17"
Global: true
Messages:
- "Sharpshooter Alert! {PlayerName} achieved 50 headshots and earned a Maplestrike. Everyone, cheer!"

```
- `{PlayerID}`: Represents the player's SteamID64.
- `{PlayerName}`: Represents the player's name in various messages.
Expand Down

0 comments on commit e864d6b

Please sign in to comment.