TShock/TShockAPI
James Puleo 794bff5ef7
Initialize achievements and the AchievementManager on the server
The `AchievementTagHandler` expects `Main.Achievements` to be non-null,
which is not normally the case on dedicated servers. When trying to
parse an achievement chat tag, it will instead throw.

The tag is parsed when calling `ChatManager.ParseMessage`, which is used
in TShock when writing chat messages to the console. Our `OnChat`
handler uses `Utils.Broadcast`, which will send the message to all
connected clients, write the message to the console and the log. Due to
the order of execution, the message ends up being sent to all connected
clients, but throws whilst trying to write to the console, and never
gets written to the log.

To solve the issue, we make achievements available on the server,
allowing the tag handler to work as expected, and even allowing the
localization of achievements names to appear in the console.
2022-12-05 23:24:58 -08:00
..
CLI Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
Configuration Pvp with no team (#2851) 2022-12-05 22:27:42 -08:00
DB Fixed SSC not save ateArtisanBread, usedAegisCrystal, usedAegisFruit, usedArcaneCrystal, usedGalaxyPearl, usedGummyWorm, usedAmbrosia, unlockedSuperCart, enabledSuperCart flags, and Server will correct read them. 2022-10-24 13:27:50 +08:00
Extensions Some i18nifiying 2022-10-21 16:12:04 -04:00
Handlers Merge remote-tracking branch 'sgk/patch-morei18n' into general-devel 2022-11-09 23:08:34 -08:00
Hooks PlayerHasBuildPermission hook (#8) 2022-07-24 19:23:10 -04:00
Localization Update 1.4.4.8 2022-11-10 00:10:38 -08:00
Models Update GetDataHandler.HandleProjectileNew to include HasBannerIdToRespondTo 2021-04-05 10:45:41 +08:00
Modules Some i18nifiying 2022-10-21 16:12:04 -04:00
Net Fix Terra Blade triggered MaxProjDamage, other net changes (#2852) 2022-12-05 21:45:37 -08:00
Rest More i18n 2022-11-02 13:42:52 -07:00
Sockets Typo fixes on comments/strings 2021-07-16 14:53:37 -04:00
BackupManager.cs Some i18nifiying 2022-10-21 16:12:04 -04:00
Bouncer.cs Merge remote-tracking branch 'drunderscore/fix/whitelist-more-buffs' into general-devel 2022-12-05 21:40:10 -08:00
Commands.cs Only restrict CC'd players during login whilst SSC is enabled 2022-11-09 23:18:03 -08:00
FileTools.cs separate online players / max slots in stock MOTD 2021-07-15 16:13:51 -04:00
GeoIPCountry.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
GetDataHandlers.cs Pvp with no team (#2851) 2022-12-05 22:27:42 -08:00
Group.cs Typo fixes on comments/strings 2021-07-16 14:53:37 -04:00
HandlerList.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
I18n.cs Fix i18n not calling actual method 2022-10-28 22:47:21 -07:00
ILog.cs Some i18nifiying 2022-10-21 16:12:04 -04:00
IPackable.cs Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
ItemBans.cs Add missing string 2022-11-04 20:46:53 -07:00
NetItem.cs Introduce support for loadouts, and save current loadout index to SSC 2022-10-22 17:36:57 -04:00
PaginationTools.cs Use full sentence rather than combining words 2022-10-25 08:50:29 -07:00
Permissions.cs More i18n 2022-11-02 13:42:52 -07:00
PlayerData.cs Properly remove all buffs in PlayerData.RestoreCharacter 2022-11-09 23:18:03 -08:00
RegionHandler.cs Use full sentence rather than combining words 2022-10-25 08:50:29 -07:00
SaveManager.cs i18n most texts 2022-10-24 21:16:28 -07:00
SqlLog.cs Use i18n for most string.Format if shown in log, console or client side 2022-10-24 13:38:33 -07:00
TextLog.cs Some i18nifiying 2022-10-21 16:12:04 -04:00
TShock.cs Initialize achievements and the AchievementManager on the server 2022-12-05 23:24:58 -08:00
TShockAPI.csproj Version tick: 5.1.3 2022-11-24 23:58:45 -07:00
TShockAPI.licenseheader Update copyright to 2019 again 2019-03-29 17:16:37 -07:00
TSPlayer.cs Fix Terra Blade triggered MaxProjDamage, other net changes (#2852) 2022-12-05 21:45:37 -08:00
TSServerPlayer.cs More i18n 2022-11-02 13:42:52 -07:00
UpdateManager.cs More i18n 2022-11-02 13:42:52 -07:00
Utils.cs Fix Utils.GetByName add duplicate candidate for same target i18n 2022-11-27 22:30:40 -08:00