Commit Graph
100 Commits
Author SHA1 Message Date
auto de24ca4437 Refactor PlayerListener for mute handling and text prioritization
Improved the PlayerListener class by adjusting event handling priority and adding nullability constraints for PlayerDeathEvent for better program robustness. Also removed a now unused import of the TextComponent class for cleaner codebase management.
2024-04-13 16:15:35 +02:00
auto e351e86bea Add mute handling and text styling in PlayerListener
Enhanced PlayerListener feature by incorporating checks for server mute status before sending death messages. Additionally, styled the death messages by adding text color and italics when mute state is false to improve readability.
2024-04-10 22:02:01 +02:00
auto 4e92285261 Add throwable to warn and error methods in ALogger
This update introduces modifications to the 'ALogger.java' file to handle possible exceptions more efficiently. It extends the warn and error functions to include a Throwable parameter, making error logs more informative for easier debugging.
2024-04-06 15:35:08 +02:00
auto a377bdfe48 Implement player death message limits
The code now includes player death message limits, with a configured maximum number of messages per defined period. This was added in the PlayerListener class and configuration options were placed in Config.java. This change will restrict spamming of death messages.
2024-04-06 13:11:05 +02:00
auto 4af85d0e79 Add option to disable chat filters in private channels
A constructor parameter and corresponding field 'disableInPrivate' have been added to the ChatFilter class. This handles disabling specific chat filters in private channels. The necessary checks have been implemented in RegexManager. The configuration for each filter is also updated in RegexConfig to incorporate this new functionality.
2024-03-31 13:37:05 +02:00
auto 034de90062 Implement evidence for automatic ban for 'punish' filter violations
When a user who violate the 'punish' filter rules is automatically banned, there will now be a post about it in the #evidence channel.
2024-03-02 20:41:59 +01:00
auto bd8fa02f1e Add 'punish' filter and automatic banning functionality
Extended the RegexManager filterText method to include a 'punish' case that triggers an automatic ban for users who violate the filter. This commit also updates the PluginMessageListener to handle 'punish' commands, thus completing the execution of an auto-ban function.
2024-03-02 19:18:13 +01:00
auto 278129e8d8 Changed pinging to prevent ping for not @'d user
Allowed \ to escape ping
2023-08-14 01:29:06 +02:00
auto f1deebf49e Merge remote-tracking branch 'origin/main' 2023-08-11 22:30:34 +02:00
auto 3e29fc7d17 Added minimum hex value for nick colors 2023-08-11 22:30:23 +02:00
auto 4b930e62c3 Log party messages that are from a toggled user on the local server as well 2023-07-10 23:33:42 +02:00
auto c02e4dd884 Log all party messages 2023-07-10 23:15:08 +02:00
auto 8a463696ed Made chatusermanager use synchronized functions 2023-07-07 23:16:32 +02:00
auto ce5ea19961 Removed unused imports 2023-07-07 23:16:15 +02:00
auto 591ca93981 Fixed first join messages only working if chat user is not loaded yet 2023-07-07 23:15:45 +02:00
auto d7cfe97644 Added first join messages back 2023-06-26 21:40:15 +02:00
auto c86a344d49 Trying a different way to see if a player is a new player 2023-06-22 02:00:51 +02:00
auto 5583abbbca Fix party info not showing if party owner is null 2023-06-20 23:44:32 +02:00
auto 55918670bc Maybe fixed mentions 2023-06-20 00:40:44 +02:00
auto f3c7a312c0 Added first join messages 2023-06-20 00:35:46 +02:00
auto d8f064e7ca Fix spy needing mute-server permission 2023-06-20 00:09:48 +02:00
auto 9b7868bea7 Fix mentions happening within words 2023-06-17 23:58:33 +02:00
auto 6c6b798677 Fix load order 2023-04-23 22:48:33 +02:00
auto 0c1b197054 Don't send players a ping sound if they have the player that's pinging them ignored 2022-11-25 19:49:37 +01:00
auto 0c7ad69e85 Only replace the first instance of a name/nickname 2022-10-09 19:33:06 +02:00
auto 7ef9b4a64a Make .replace require a TextReplacementConfig 2022-10-09 19:32:51 +02:00
auto 5b06049265 Fixed double @ if someone doesn't have a nickname (or has the same nickname as the username) 2022-10-09 18:04:41 +02:00
auto ea051fd905 Fixed spacing for target replacement 2022-10-09 01:21:10 +02:00
auto 87d5c1b264 Fixed blocked messages not highlighting what was blocked 2022-10-09 01:18:13 +02:00
auto 5e62786010 Fixed case-sensitive name matching for replacing names/nicknames 2022-10-09 00:47:43 +02:00
auto 4f01c86877 @ players when they are mentioned by name or nickname (case-insensitive) 2022-10-09 00:36:50 +02:00
auto 6beb398e10 Added a way to replace text with components and patterns with strings/components 2022-10-09 00:36:07 +02:00
auto d7bd3aa222 Switched to using minimessage (mostly) 2022-10-02 04:52:33 +02:00
auto 9407ba8bec Switched to using minimessage (mostly) 2022-10-02 03:52:02 +02:00
auto 341a330e3d Removed sout for adding party users 2022-09-22 23:53:09 +02:00
auto 0339458c66 Added logging for chat messages 2022-09-22 23:52:46 +02:00
auto 9832abbb90 Fixed only sending to ignored players 2022-06-25 06:10:17 +02:00
auto 35ad214901 Fixed regex injection 2022-06-02 05:09:43 +02:00
auto 32e38ef32b spot the bug 2022-06-02 04:57:04 +02:00
auto b1f2370bec Added continue, fixed mail 2022-06-02 03:48:51 +02:00
auto 20c7f0a6d9 ez tmp fix for sendername receivername not being replaced properly 2022-05-30 23:59:54 +02:00
auto 40a6e6bcc9 Fixed colors not working in chat 2022-05-30 22:10:54 +02:00
auto 7ab95e437a Fixed bypass spam limits by spamming more than one character 2022-05-30 19:58:00 +02:00
auto 4068ad8ea6 Fixed message for toggling chat channel
Fixed stack overflow for untoggling chat channels
2022-05-30 19:43:31 +02:00
auto 82eecc3142 Colored toggle word, improved default party online/offline marker 2022-05-30 19:27:47 +02:00
auto 679602c1f7 Registered SilentJoinCommand 2022-05-30 19:19:41 +02:00
auto 0997c2bab6 Disable toggles on join 2022-05-24 04:20:21 +02:00
auto e39bab34fd Moved class to more logical place 2022-05-24 04:18:34 +02:00
auto 41897f4b16 Added toggle to party as well and made it so it can be added to other channels if needed 2022-05-24 04:17:55 +02:00
auto 60e1ad2220 Added a way to toggle custom channels 2022-05-24 03:06:34 +02:00
auto c645201ef3 Removed variable, moved call inline 2022-05-24 02:50:18 +02:00
auto fdd9d81400 Fix party users not being removed correctly (they left the party but still had their party id set) 2022-05-24 02:49:36 +02:00
auto 3e313cb00b Fixed being able to bypass replacement filters by having multiple of the same match in one string 2022-05-24 02:41:11 +02:00
auto dac0f7936e Use util to parse message 2022-05-24 02:06:28 +02:00
auto 0a6dfe799e Properly handle filtered messages in party chat 2022-03-15 00:20:07 +01:00
auto 98475583a9 Gave report an error message 2022-03-05 04:52:10 +01:00
auto 09507999aa Added player does not exist message when sending a message to a player that's not online 2022-03-02 17:36:15 +01:00
auto 7c9b12c394 Don't let someone join a party they are already in 2022-03-02 17:30:19 +01:00
auto 23e7c57333 Use exceptions for filters, highlight words that were filtered 2022-02-27 18:29:41 +01:00
auto b6aa5bed73 Removed forgotten debug message 2022-02-24 17:19:41 +01:00
auto 5f58cbe62a Merge remote-tracking branch 'origin/4.9' into 4.9 2022-02-20 19:12:41 +01:00
auto a0c626a88f Add confirmation message, change color, fix author icon url 2022-02-20 19:12:20 +01:00
auto 8d6efe0265 Don't ask for player 2022-02-20 19:03:11 +01:00
auto 56010fb9ad Added /report probably (and fixed party chat tab complete) 2022-02-20 18:19:52 +01:00
autoanddestro174 8fd784bba1 Maybe added proxydiscordlink and added report command 2022-02-19 16:58:22 +01:00
autoanddestro174 956d04abe0 Added party leave notif 2022-02-19 16:58:22 +01:00
autoanddestro174 e0ed414a38 Added confirmation message to mail sent 2022-02-19 16:58:22 +01:00
autoanddestro174 fcb2adb009 Maybe made nicknames auto sync 2022-02-19 16:58:22 +01:00
autoanddestro174 a3d1910c7d Fixed party notifs and spy 2022-02-19 16:58:22 +01:00
autoanddestro174 91b261cdb0 Maybe fixed party 2022-02-19 16:58:22 +01:00
autoanddestro174 497cd99979 Grammar in config message 2022-02-19 16:58:22 +01:00
autoanddestro174 371d0279b3 Notify players that chat was cleared 2022-02-19 16:58:22 +01:00
autoanddestro174 48fa99d153 Fixed storing sender as receiver and receiver as sender 2022-02-19 16:58:22 +01:00
autoanddestro174 798f93f56c Added bypass perm and confirmation message 2022-02-19 16:58:22 +01:00
autoanddestro174 4411671bcf Added chatclear command 2022-02-19 16:58:22 +01:00
autoanddestro174 87e7714857 Parse / strip chat color tokens based on if the commandSender has permission for chat colors 2022-02-19 16:58:22 +01:00
autoanddestro174 630cd6c133 Tweaked mails, added notifs, added config options 2022-02-19 16:58:22 +01:00
autoanddestro174 ce0cad2586 Added missing config messages 2022-02-19 16:58:22 +01:00
autoanddestro174 c1b32e12cc Check if a user has permission to see tab complete suggestions 2022-02-19 16:58:22 +01:00
autoanddestro174 4571d191fd Added party disband command and a way to remove all users from a party 2022-02-19 16:58:22 +01:00
autoanddestro174 dcd8456612 Added party chat help message 2022-02-19 16:58:22 +01:00
autoanddestro174 652aa46dbd Changed api version 2022-02-19 16:58:22 +01:00
autoanddestro174 8390b25619 Removed todo 2022-02-19 16:58:22 +01:00
autoanddestro174 889c2f8852 Removed old chatparty command 2022-02-19 16:58:22 +01:00
autoanddestro174 83d1ae933d Added messages for commands that had no output 2022-02-19 16:58:22 +01:00
autoanddestro174 e5e174d363 Added logout notif 2022-02-19 16:58:22 +01:00
autoanddestro174 8f6b8675b5 Notify players if their party member joins 2022-02-19 16:58:22 +01:00
autoanddestro174 4c1da52c9b Edited templates for spy/party format 2022-02-19 16:58:22 +01:00
autoanddestro174 3cb858ba3d Added more config messages 2022-02-19 16:58:22 +01:00
autoanddestro174 8a89b08420 Check if a user is already in a party before letting them make another party 2022-02-19 16:58:22 +01:00
autoanddestro174 304d825622 Configure party invite messages 2022-02-19 16:58:22 +01:00
autoanddestro174 f2aeb2c300 Parse commands before putting them in template 2022-02-19 16:58:22 +01:00
auto fbbe0d6ef3 Maybe added proxydiscordlink and added report command 2022-02-15 16:37:47 +01:00
auto 647ad2b62a Added party leave notif 2022-02-15 03:20:05 +01:00
auto 59781f486d Added confirmation message to mail sent 2022-02-15 03:07:56 +01:00
auto fa79491088 Maybe made nicknames auto sync 2022-02-15 02:57:50 +01:00
auto e6e1073958 Fixed party notifs and spy 2022-02-15 02:32:38 +01:00
auto 2b77607072 Maybe fixed party 2022-02-14 01:25:51 +01:00
auto 777415f97e Grammar in config message 2022-02-08 00:39:07 +01:00
auto bc010bea6e Notify players that chat was cleared 2022-02-07 00:22:33 +01:00