Commit Graph

1291 Commits

Author SHA1 Message Date
ChomeNS
decd15a926 refactor: have global Listener interface instead of creating one in each plugin
not sure how much this improves the code, readability and/or the performance but i hope they are better
2025-04-16 15:34:20 +07:00
ChomeNS
346c55c3d6 fix: comment out nbs Tempo Changer causing empty gaps after tempo has been changed
refactor: some refactors i've done while inspecting the issue lol
feat: re-add note counts
2025-04-16 11:05:01 +07:00
ChomeNS
ef15c45619 fix: limit query queue size (in the case where there are 10,000 players in the server)
i discovered this while botting my own google cloud shell clone
2025-04-15 13:22:15 +07:00
ChomeNS
c6e8585246 refactor: fix some ide warnings 2025-04-15 11:23:34 +07:00
ChomeNS
fcc816d0c9 style: commit code styles 2025-04-15 10:26:14 +07:00
ChomeNS
4c5fa6d733 refactor: make the discord messages log before hash and other things
now it looks like this https://i.imgur.com/BmW4HuH.png
2025-04-15 08:27:22 +07:00
ChomeNS
f2250c656e refactor: remove jackson annotations from some classes that don't need them anymore 2025-04-15 08:21:24 +07:00
ChomeNS
5cd1cc8976 refactor: change translate API again 2025-04-15 08:20:57 +07:00
ChomeNS
f06369d112 fix: use new google translate API no more ratelimit error 2025-04-14 18:47:20 +07:00
ChomeNS
6cf6fa1ae0 refactor: use only a single Map for discord logs things
not sure how much it improves the performance but it shouldn't be much different
2025-04-14 15:43:24 +07:00
ChomeNS
97152d7bd0 refactor: change command handler executeCommand signature to be more clean 2025-04-14 09:07:41 +07:00
ChomeNS
b7807686d0 fix: patch negative music values causing unexpected behavior 2025-04-14 08:22:32 +07:00
ChomeNS
26ca1eb830 refactor: ginlang's request & some other refactors to *music info 2025-04-14 08:20:26 +07:00
ChomeNS
de43240755 feat: ditch TeamJoinerPlugin to prevent people performing suspicious activities with the bot 2025-04-13 17:36:58 +07:00
ChomeNS
ae03603e9d fix: i CANNOT handle that single extra connect message after getting suppressed 2025-04-13 08:36:32 +07:00
ChomeNS
8bce548c09 refactor: remove imposter format checker since it's pretty much useless these days, and it's also disabled in the main instance 2025-04-12 15:02:29 +07:00
ChomeNS
b9386f86e1 fix: netcmd still executing on all server even when bot not logged in 2025-04-12 11:59:29 +07:00
ChomeNS
4685e37b4f fix: netcmd needing hash, hopefully i don't leak anything
more spaghetti code :D
2025-04-12 11:53:29 +07:00
ChomeNS
30a7bcd24b feat: *netcmd 2025-04-12 10:48:45 +07:00
ChomeNS
0ca9990d08 fix: hopefully fix duplicate player entry when someone /username (still can't exactly reproduce idk) 2025-04-12 08:01:56 +07:00
ChomeNS
b9207ffb0c feat: log discord messages to logger (very simple, just contents ONLY) 2025-04-11 18:27:37 +07:00
ChomeNS
a5602d1a01 feat: "hashing" via discord by DM-ing the bot hash 2025-04-11 17:08:23 +07:00
ChomeNS
9557231010 refactor: only schedule discord ticking once, globally, not each for every server 2025-04-11 14:17:37 +07:00
ChomeNS
359cf9a19c refactor: move the discord message handler into a separate class to make the mess only live in that class
refactor: use ConcurrentHashMap instead of HashMap in the discord message queue
2025-04-11 14:08:39 +07:00
ChomeNS
9e486ebbe1 fix: increase max time a bit but i'm not sure if this will make the bot crash with translate crash spam 2025-04-11 14:00:27 +07:00
ChomeNS
057ee9095f fix: selfcare being scheduled every single login, causing spam and memory leak
caused while i refactor the thing
2025-04-11 11:00:25 +07:00
ChomeNS
ee6811ccd2 refactor: increase 10MB download & REMOVE AUTO NBS INSTRUMENT SUBTITLES COMPLETIONS IT BREAKS SO MUCH 2025-04-11 08:34:52 +07:00
ChomeNS
563df838c5 fix: add depth and reduce max time (not sure if depth will break things, pretty sure not) 2025-04-11 08:20:42 +07:00
ChomeNS
a87e1df9c1 fix: catch PatternSyntaxException in CommandBlockCommand 2025-04-10 17:30:38 +07:00
ChomeNS
79bb8cc877 fix: more strict regex 2025-04-10 17:11:21 +07:00
ChomeNS
dbd4cdb656 refactor: remove invalid comment 2025-04-10 14:08:54 +07:00
ChomeNS
185b6d4305 refactor: use JDA's Message.INVITE_PATTERN to replace the discord.gg invite things 2025-04-10 14:01:40 +07:00
ChomeNS
dfdc959a16 fix: use legacySection() instead of ampersand, even though it breaks color codes, i still want the url stuff to work because of discord and things 2025-04-10 13:48:07 +07:00
ChomeNS
7cd77fe850 refactor: use the built-in adventure LegacyComponentSerializer extractUrls in the serializer builder
still does not fix `&d` leaking and breaking the click event and shit
2025-04-10 13:41:20 +07:00
ChomeNS
29ca22101a feat: *music volume (finally lol) 2025-04-10 11:14:49 +07:00
ChomeNS
21ba029e42 refactor: make the core still work while being cloop tp'ed
fix: escape core custom name in fill command (finally)
feat: refill using chat while being cloop tp'ed, command turns to my fork of chipmunkmod (fill x y z x y z command_block), no custom name
2025-04-10 09:30:10 +07:00
ChomeNS
0c29f2f8ca refactor: default coreCommandSpy to true since all clones have them now 2025-04-10 08:38:21 +07:00
ChomeNS
58fcd586a4 refactor: improve connection message suppressing in discord and logger
i also saw nbot, fnf bot, and other bots copying the message, so i changed that too, hopefully no one skids it again
2025-04-10 08:10:40 +07:00
ChomeNS
70bf2574cf fix: all null pointers in disconnect listeners (there was so much)
i didn't even know how the bot even functioned for the whole 5 months without me noticing
2025-04-10 07:58:39 +07:00
ChomeNS
76eadb1472 fix: discord disconnect message broken (blame VoiceChatPlugin! not discord's fault!) 2025-04-10 07:45:36 +07:00
ChomeNS
49209ab8b4 fix: process translation formats the same way as minecraft 2025-04-10 07:29:30 +07:00
ChomeNS
94f90575d8 fix: player filter not work 2025-04-09 19:20:51 +07:00
ChomeNS
72cbad0a99 fix: emergency fix discord and other stuff not working because of last commit 2025-04-09 19:04:48 +07:00
ChomeNS
f811000a07 refactor: make all plugins final to prevent spiders on the cpu/ram setting them to null
tbh if that actually happens then i think they can still be null lol
the bot should just crash at that point...
2025-04-09 17:40:03 +07:00
ChomeNS
ed4e7573a9 refactor: use final on basically everything
i'm kinda tired of the inconsistency since some stuff are non-final and some are final so i just made everything final, not sure how much it impacts on stuff but everything should be fine, there were around 1,400 replacements according to the idea code analyzer
2025-04-09 17:05:11 +07:00
ChomeNS
2764673f21 feat: also log suspected chomens mod replay attack 👀 2025-04-09 15:14:09 +07:00
ChomeNS
31f54ee8f8 refactor: rename command output packet to message packet 2025-04-09 15:03:09 +07:00
ChomeNS
ed71cdc55a feat: prevent replay attacks on chomens mod for those kind of server owners and aren't very nice and also the kind of people that spies on cores (like me !!!) 2025-04-09 14:57:46 +07:00
ChomeNS
54f0f36952 refactor: some fixes and improvements to filtering and ip querying stuff
- ip filter delay decreased to 5 seconds, since we already got the `ip` field in PlayerEntry so we can check however we want without spamming the server console (though we still do have to worry about resource usages)
- validate the regex in FilterCommand and log the regex error to console instead of chat, though it shouldn't happen anymore since we got the validation in the command already
- use the newly made event `queriedPlayerIP` in the players plugin listener instead of `playerJoined`, since the ip will 95% be null and will basically just do nothing
2025-04-09 11:01:38 +07:00
ChomeNS
297b84801f refactor: improve and fix bossbar manager 2025-04-09 09:04:56 +07:00