]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Automated whitelists (#23985)
authorSimon <63975668+Simyon264@users.noreply.github.com>
Tue, 27 Aug 2024 16:01:17 +0000 (18:01 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Aug 2024 16:01:17 +0000 (18:01 +0200)
commitf92ef41538cc97098cc71048072bcc9a21dbaa0b
tree25ec0650715bbcd5a24211fcb03f892fb82aa4a3
parente59b9c5714d0c272c51b48438fce1322e584ddcc
Automated whitelists (#23985)

* Beginnings of making the breadmemes jobs easier

* stuff

* stuff pt. 2

* Stuff pt.3

* Stuff I forgot last time

* Basic whitelist

Only people that are added to the whitelist with the addwhitelist command will be able to join. I call this the "legacy" whitelist

* Remove always deny condition in favor of just breaking if playtime check fails

* Change default whitelist

Default whitelist is now the "legacy" whitelist.

* localization

* Admin check

* minor spelling change

* Fix build

* Whitelist message

* Fix vars not being datafield and spelling mistakes

* Minor spelling mistake

* Change config for salamander

* Reviews and stuff

* Add summaries

* Fix whitelists

* Forgot to add a datafield

* Fixing stuff I guess

* Reuse admin remarks to reduce load when connecting.

* Update log messages to be verbose instead of debug

* Reviews

* whoops

* Explain a bit more how whitelist checking works

* Apply CE's review

* Append Membership to Blacklist and Whitelist conditions

* Fix review comments

* Uncapitalize playerConnectionWhitelist, add to ignored client prototypes

* Make note count field work

* Fix cvar for thingy

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
28 files changed:
Content.Client/Entry/EntryPoint.cs
Content.Server.Database/Migrations/Postgres/20240112194620_Blacklist.Designer.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Postgres/20240112194620_Blacklist.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Postgres/PostgresServerDbContextModelSnapshot.cs
Content.Server.Database/Migrations/Sqlite/20240112194612_Blacklist.Designer.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Sqlite/20240112194612_Blacklist.cs [new file with mode: 0644]
Content.Server.Database/Migrations/Sqlite/SqliteServerDbContextModelSnapshot.cs
Content.Server.Database/Model.cs
Content.Server/Connection/ConnectionManager.Whitelist.cs [new file with mode: 0644]
Content.Server/Connection/ConnectionManager.cs
Content.Server/Connection/Whitelist/BlacklistCommands.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionAlwaysMatch.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionManualBlacklistMembership.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionManualWhitelistMembership.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionNotesDateRange.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionNotesPlaytimeRange.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionPlayerCount.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/Conditions/ConditionPlaytime.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/WhitelistCondition.cs [new file with mode: 0644]
Content.Server/Connection/Whitelist/WhitelistPrototype.cs [new file with mode: 0644]
Content.Server/Database/ServerDbBase.cs
Content.Server/Database/ServerDbManager.cs
Content.Server/Entry/EntryPoint.cs
Content.Shared/CCVar/CCVars.cs
Resources/ConfigPresets/WizardsDen/salamander.toml
Resources/Locale/en-US/connection-messages.ftl
Resources/Prototypes/whitelists.yml [new file with mode: 0644]
Resources/Prototypes/wizardsDenWhitelists.yml [new file with mode: 0644]