Commit Graph

92 Commits

Author SHA1 Message Date
Teriuihi 3b2aa84164 Add player muted logging and abstract embed building
The update introduces a log entry indicating when a player has been muted due to voting. The embed creation for this process has been isolated and extracted into a separate function. This contributes to better code modularity and organization.
2024-04-13 16:52:56 +02:00
Teriuihi d6135f2456 Add mute vote results sent to Discord and staff presence check
Enhanced the vote-to-mute feature by adding a function that sends the mute vote results to a general channel on Discord. A 'staff presence' check has also been added which prevents the mute vote from being initiated if a staff member is online, instead, it prompts users to directly contact a staff member for help.
2024-04-07 18:29:46 +02:00
Teriuihi c057c69653 Enable optional logging in ChatLogHandler
Modified the ChatLogHandler to support optional logging by introducing a new argument in the getInstance() method. This argument sets the logging state during instantiation. This facilitates better flexibility when using the ChatLogHandler across different sections of the code base as logging requirements may differ.
2024-04-07 18:11:19 +02:00
Teriuihi c25767e473 Add VoteToMuteHelper and enhance ActiveVoteToMute
Implemented a new module titled VoteToMuteHelper to enhance the voting system and augment the user experience. This module enhances the system by providing relevant player suggestions and setting up the mute player. Made updates to the ActiveVoteToMute module to handle potential voters and mute the player if the vote is passed. VoteToMute module is also updated to include the total eligible players. The code is made robust by adding appropriate error checks.
2024-04-07 18:07:20 +02:00
Teriuihi ed2ba74772 Add start of VoteToMute functionality in chat system
Implemented VoteToMute system enabling initiated voting for muting a player in chat. This includes creating new classes "ActiveVoteToMute", "VoteToMute", and "VoteToMuteStarter". The "VoteToMute" class handles the voting command logic, it allows players to vote on whether to mute other players. The code also adds a call to register this new command in the main VelocityChat class.
2024-04-06 19:39:36 +02:00
Teriuihi 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
Teriuihi 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
Teriuihi c02e4dd884 Log all party messages 2023-07-10 23:15:08 +02:00
Teriuihi 5583abbbca Fix party info not showing if party owner is null 2023-06-20 23:44:32 +02:00
Len 3aa0b09133 Fix ChatFilter.java not applying to message. 2022-10-08 11:05:56 +02:00
Len 8baa254d5e Revert "Fix replacement filers not working."
This reverts commit df4ff7f6b3.
2022-10-03 11:29:06 +02:00
Len a4e4982dc3 Update nicknames to use Chat's plugin message channels. 2022-10-01 20:42:35 +02:00
Len df4ff7f6b3 Fix replacement filers not working. 2022-10-01 13:32:04 +02:00
Len 2764446e41 Switch to new formatting permissions. 2022-09-30 16:48:08 +02:00
Len 6329eacd07 Fix some deprecated issues 2022-09-29 16:26:55 +02:00
Len 58b80e9eaf Fork NickNameAccepted to update nickname on proxy before forwarding. 2022-09-29 16:26:55 +02:00
Len 11ecf1ad16 Merge Nicknames 2022-09-27 00:02:27 +02:00
Len 643fb5a633 Fix mail output message not showing recipient name. 2022-09-26 19:08:51 +02:00
Stijn d3be713c9a Added optional sender argument to /mail list <username> 2022-09-21 18:26:16 +02:00
Stijn ce1ec164ef added confirmation message to mail send 2022-09-19 18:10:15 +02:00
Teriuihi 32e38ef32b spot the bug 2022-06-02 04:57:04 +02:00
Teriuihi b1f2370bec Added continue, fixed mail 2022-06-02 03:48:51 +02:00
Teriuihi 20c7f0a6d9 ez tmp fix for sendername receivername not being replaced properly 2022-05-30 23:59:54 +02:00
Teriuihi 40a6e6bcc9 Fixed colors not working in chat 2022-05-30 22:10:54 +02:00
Teriuihi 679602c1f7 Registered SilentJoinCommand 2022-05-30 19:19:41 +02:00
Len c836452d19 Update minimessage references 2022-05-27 00:31:36 +02:00
Teriuihi 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
Stijn 408d38fb78 Added silent join 2022-05-23 22:32:43 +02:00
Stijn faa0435131 Require reports to be at least 3 words long 2022-05-23 22:06:17 +02:00
Stijn 1946cd4ab7 Added online indicators for party info 2022-05-23 21:55:36 +02:00
Teriuihi 0a6dfe799e Properly handle filtered messages in party chat 2022-03-15 00:20:07 +01:00
destro174 e6dfd19b84 Merge branch 4.9 2022-03-14 16:48:35 +01:00
Teriuihi 98475583a9 Gave report an error message 2022-03-05 04:52:10 +01:00
Teriuihi 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
Teriuihi 7c9b12c394 Don't let someone join a party they are already in 2022-03-02 17:30:19 +01:00
Teriuihi 23e7c57333 Use exceptions for filters, highlight words that were filtered 2022-02-27 18:29:41 +01:00
destro174 5834ff2c97 Why doesn't it error? 2022-02-24 17:16:32 +01:00
destro174 e550679637 Workaround? please build 2022-02-23 16:13:53 +01:00
Teriuihi a0c626a88f Add confirmation message, change color, fix author icon url 2022-02-20 19:12:20 +01:00
Teriuihi 8d6efe0265 Don't ask for player 2022-02-20 19:03:11 +01:00
Teriuihi 56010fb9ad Added /report probably (and fixed party chat tab complete) 2022-02-20 18:19:52 +01:00
Teriuihi 8fd784bba1 Maybe added proxydiscordlink and added report command 2022-02-19 16:58:22 +01:00
Teriuihi 956d04abe0 Added party leave notif 2022-02-19 16:58:22 +01:00
Teriuihi e0ed414a38 Added confirmation message to mail sent 2022-02-19 16:58:22 +01:00
Teriuihi fcb2adb009 Maybe made nicknames auto sync 2022-02-19 16:58:22 +01:00
Teriuihi a3d1910c7d Fixed party notifs and spy 2022-02-19 16:58:22 +01:00
Teriuihi 48fa99d153 Fixed storing sender as receiver and receiver as sender 2022-02-19 16:58:22 +01:00
Teriuihi 87e7714857 Parse / strip chat color tokens based on if the commandSender has permission for chat colors 2022-02-19 16:58:22 +01:00
destro174 448d9ac8aa Update minimessage to 4.10.0 2022-02-19 16:58:22 +01:00
destro174 575c788d10 fix url in global admin chat 2022-02-19 16:58:22 +01:00