KittsBadgeSystem 0.1.0
See the version list below for details.
dotnet add package KittsBadgeSystem --version 0.1.0
NuGet\Install-Package KittsBadgeSystem -Version 0.1.0
<PackageReference Include="KittsBadgeSystem" Version="0.1.0" />
<PackageVersion Include="KittsBadgeSystem" Version="0.1.0" />
<PackageReference Include="KittsBadgeSystem" />
paket add KittsBadgeSystem --version 0.1.0
#r "nuget: KittsBadgeSystem, 0.1.0"
#:package KittsBadgeSystem@0.1.0
#addin nuget:?package=KittsBadgeSystem&version=0.1.0
#tool nuget:?package=KittsBadgeSystem&version=0.1.0
KittsBadgeSystem
LabAPI Badge Tool
KittsBadgeSystem is a tool that tracks when players join, leave, etc for SCP Secret Laboratory using LabAPI.
Consider Supporting?
If you enjoy this project and would like to support future development, I would greatly appreciate it if you considered donating via my Ko-Fi.
How to use KittsBadgeSystem:
There are two options when it comes to installing KittsBadgeSystem, normal and MongoDB.
The difference between the two is that normal stores everything in a .JSON and MongoDB stores everything in a Mongo database.
To install KittsBadgeSystem on your server, you will need:
Newtonsoft.Jsonv13.0.4or later.KittsBadgeSystemlatest verion.
To install KittsBadgeSystem with MonogDB on your server, you will need:
DnsClientv1.6.1or later.Microsoft.Extensions.Logging.Abstractionsv2.0.0or later.MognoDB.Bsonv3.10.0or later.MongoDB.Driverv3.10.0or later.Newtonsoft.Jsonv13.0.4or later.KittsBadgeSystemlatest verion.
All of these files can be found in the latest release.
Once you have these:
- Place
DnsClient.dllin thedependenciesfolder, if applicable. - Place
Microsoft.Extensions.Logging.Abstractions.dllin thedependenciesfolder, if applicable. - Place
MognoDB.Bson.dllin thedependenciesfolder, if applicable. - Place
MognoDB.Driver.dllin thedependenciesfolder, if applicable. - Place
Newtonsoft.Json.dllin thedependenciesfolder, if applicable. - Place
KittsInfractionSystem.dllin thepluginsfolder.
Run the server and you're set!
Configurations:
| Parameter | Type | Description | Default Value |
|---|---|---|---|
IsEnabled |
bool |
Is plugin enabled. | true |
Debug |
bool |
Sends debug logs to console. | false |
MongoDBURI |
string |
MongoDB URI. | "mongodb://username:password@ip:port/" |
MongoDBName |
string |
MongoDB name. | KittsBadgeSystem |
MongoDBCollectionName |
string |
MongoDB collection name if using database. | PlayerAnalyticsData |
UseMongoDB |
bool |
Should save to MongoDB, saves to JSON if flase, does not migrate data. | false |
PlayerBadgePermission |
string |
Permission for player badge command. | "kts.badge" |
AdminBadgePermission |
string |
Permission for admin badge command. | "kts.badgeamin" |
Default YML Config File
# Is plugin enabled
is_enabled: true
# Sends debug logs to console
debug: false
# Permission for player badge command
player_badge_permission: kts.badge
# Permission for admin badge command
admin_badge_permission: kts.badgeadmin
# Formatting for badges with no text, {group} = groupName
default_badge_format: '{group}'
# Formatting for badges, {group} = groupName, {text} = badgeText
badge_format: '{group} | {text}'
MongoDB YML Config File
# Is plugin enabled
is_enabled: true
# Sends debug logs to console
debug: false
# MongoDB URI
mongo_d_b_u_r_i: mongodb://username:password@ip:port/
# MongoDB name
mongo_d_b_name: KittsPlayerAnalyticsSystem
# MongoDB collection name
mongo_d_b_collection_name: PlayerAnalyticsData
# Permission for player badge command
player_badge_permission: kts.badge
# Permission for admin badge command
admin_badge_permission: kts.badgeadmin
# Formatting for badges with no text, {group} = groupName
default_badge_format: '{group}'
# Formatting for badges, {group} = groupName, {text} = badgeText
badge_format: '{group} | {text}'
Want to use in your own project?
To install in your project, simply reference the KittsBadgeSystem.dll file, found in the latest release.
KittsBadgeSystem.dll is really easy to use, if you would like to change someone's badge data you can do Player.GetBadgeData() and change what you want, it will automatically update.
You cna also use the command if you're only using this as a standalone plugin.
A really simple example of using this plugin could be the colour being changed to a random colour when jumping as shown below.
public override void OnPlayerJumped(PlayerJumpedEventArgs ev)
{
ev.Player.GetBadgeData().BadgeColour = ColourTypes.Random().EnumColour;
// If you're not using MonogoDB you will need to update the JsonCache as shown below
DatabaseJson.SaveJsonCache();
}
Found a bug or have feedback?
If you have found a bug please make an issue on GitHub or the quickest way is to message me on discord at kittscloud.
Also message me on discord if you have feedback for me, I'd appreciate it very much. Thank you!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net481 is compatible. |
-
.NETFramework 4.8.1
- Newtonsoft.Json (>= 13.0.4)
- Northwood.LabAPI (>= 1.1.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.