- Fixed an issue with discord logging calling the offline logging hook, causing it to log to discord twice when warning someone.
- Only need this update if using Discord Logging
- When updating, make sure you re-enter your discord webhook info in the awarn3_discordlogging.lua file.
- Discord relay logging will now log when an offline player is warned.
- Removed a debug print message that was left in accidentally.
This is an optional update. if you are not bothered by the message in your server console, you can safely ignore and skip this update.
- Modified warning messages to accurately reflect if a warning reason was given or not.
- ie: No longer says "was warned by admin for reason: NONE GIVEN"
- Just says: "___ was warned by ___"
- Updated all localization files to address these changes.
- I accidentally left in my discord webhook address in the last release. This release just fixes that. You can go into lua/includes/awarn3_discordlogging.lua and remove it yourself if you would rather do that than update, but I wanted to make sure that future downloads wouldn't include it.
- I've removed it on my discord, so even if you don't fix it on your end, you don't have to worry about your warnings going to my discord. :)
Discord did something to the relay API and so I had to fix it. This update ONLY contains updates to the discord relay. If you weren't using it, or don't want to use it, then you can ignore this update.
Even if you are using the relay I am hosting, you will need to update as I changed some of the lua files that send info to the relay.
Files Updated:
- includes/awarn3_discordlogging.lua
- includes/awarn3_punishments.lua
- discordrelay.php (This file is for those who are hosting their own relay instead of using the one I am hosting)
Changes
- Fixed an issue that could happen if you were loading a player with a lot of warnings and then closed the menu or clicked into a different part of the menu while that player's warnings were still populating.
Files Changed since last version:
- awarn3_vgui.lua
- Added an AWarn2 importer for SQlite users.
- This will NOT work with MYSQL users. Sorry.
- This is designed for use on NEW AWarn3 installs. It will import Old AWarn2 data if you have it, but it will screw with active warning counts on players who will have those values imported from the old AWarn2 data.
- To use:
- make sure AWarn2 is UNINSTALLED....
- from in game, run awarn3_import in your game console. You will need to be a superadmin or a group that inherits from superadmin to run this command.
This version adds a requested feature to reset all data. This was originally not included because I couldn't think of a way to make it "safe" from admins who were trolling (we all know they exist) or just accidental use, since deleting all data can not be undone.
To address the security, I have made it only usable from the server console. The command to reset to default, can not be used in game unless that player is a listen server host.
New command added: awarn resettodefault
This will completely blow away and reset the data tables, removing ALL warnings and all player data on your server related to AWarn3. From the server's standpoint, it will be like if you just installed it.
Files Updated:
awarn3_sql.lua
awarn3_concommands.lua
- Hotfix for a mathmatical calculation problem that could sometimes occur with the latest update. Update if you are noticing errors where it tries to perform math on a nil value.
Files Changed:
- sv_awarn3.lua
+ Fixed an issue with warnings not decaying if the decay happened after the player had left and rejoined. Basically the only decays that would happen previous to this fix were decays that happened while the player stayed connected after they were warned.
+ Added a requested feature to display how many active warnings a player has when they join the server.