+ Added a couple new developer hooks for 3rd party integrations.
Unless you need those hooks.. this update is NOT required.
- Fixed an issue with CAMI implementation that was preventing AWarn permissions from being imported into the user's admin mod menu.
- Refactored the localization throughout the addon to allow for a default language to be set in the addon's configuration.
- awarn3/lua/autorun/awarn3.lua
- AWarn.DefaultLanguage = "EN-US"
- Change the language code to any of the supported codes. You can see the code at the top of the localization file. Codes are all case-insensitive. For example, Traditional Chinese would be "ZH-CN". "zh-CN" would also work.
Major Update
- Nearly every file in the script was completely refactored to be more efficient and cleaner
- Updated existing localization files to include the strings added in recent updates
- Added localizations for Chinese (Simplified and Traditional), Japanese, Dutch, Korean, and Latin American Spanish
All loaded information should be compatible with this update (data from database and configuration files) but if you modified any files, you will need to re-modify them for this refactor. Please do not just drop your old files in with these new files, it may not work as intended.
- Fixed an issue where users without permission to remove warnings could see the delete button and that was leading to errors if they tried to press it.
- Remove and Delete warning buttons are only visible to players with the permission to use them
- Removed some debug messages that were accidentally left in.
- Fixed an issue warnings couldn't be deleted by some users with delete permissions.
- Added a developer hook for when a player is punished with Awarn3
+ Confirmation dialogue when removing all of a player's warnings. Hopefully this will prevent users from accidentally clicking the button and having all of a player's warnings deleted.
+ There is a new server option (off by default) that will reduce a player's active warnings by 1 (not below 0 though) when a warning is deleted.
- Changed icons to more closely reflect their use. Using trash icons for delete instead of "X" to avoid confusion.
- Changed "Delete All Warnings" from an icon button to a button with text so it's clear what you are clicking on.
Files Changed:
- awarn3_vgui.lua
- Some changed/added images in the materials/vgui folder
- Fix for how gmod checks for installed modules. This update is not required for users who are not using the MySQL module, but anyone running on multiple servers or using the MySQL module will need to update their AWarn to this version.
- You can search players by normal STEAM_0 steamids now as well as Steam64 ids.
- Found another bug where LAC is causing errors due to it's bot's name being longer than expected. Should have gotten them all this time. If you are not using LAC, you don't need to get this update.
Files Changed
- lua/includes/awarn3_sql.lua
- Another fix for errors caused by people setting bot names to more than the max name limit expected by steam...
Files Changed
- lua/includes/awarn3_sql.lua
+ Fixed an issue where bots that have longer names than the expected max character limit of 32 would throw errors on join.
Files Changed
- lua/includes/awarn3_sql.lua