Commit Graph

527 Commits

Author SHA1 Message Date
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
ChomeNS
ffdfcb421d fix: player list NOT thread safe.... 2025-04-09 08:58:01 +07:00
ChomeNS
82aec3869b fix: essentials message component parsing being completely white, no colors at all
section sign parsing is also kinda broken i guess
2025-04-08 20:04:46 +07:00
ChomeNS
80aec4fca8 fix: hopefully patch chinese chat crash (idk)
refactor: rename `addPlural`
2025-04-08 19:35:38 +07:00
ChomeNS
dd2b8ce26d fix: duplicate connected player in chomens mod 2025-04-08 17:59:01 +07:00
ChomeNS
dffc22674b feat: show IP in ListCommand 2025-04-08 17:07:34 +07:00
ChomeNS
93f582bba0 feat: smp-like encryption for chomens mod instead of public-private keys 2025-04-08 16:42:17 +07:00
ChomeNS
11f08138fe fix: use stringifyDiscordAnsi instead of stringifyAnsi on discord disconnect message 2025-04-08 11:03:41 +07:00
ChomeNS
16cde68c4a refactor: make consoleOnly parameter in Command constructor optional
i did the refactoring command-by-command this time, just to make sure everything's fine (yes i know this can still be done with idea replacing thing)
2025-04-08 09:18:35 +07:00
ChomeNS
31ace7334e refactor: disallow some chat packet types for some commands 2025-04-08 09:08:59 +07:00
ChomeNS
50ba4e1c41 refactor: change log archive limit to 500mb and also log to console (probably won't help much if there's a lot of log though) 2025-04-08 08:11:53 +07:00
ChomeNS
37326ede51 fix: FINALLY fix chat parser styles leaking !!!
still a lot of duplicate/redundant/unnecessary codes though, might want to optimize them later
2025-04-07 17:59:42 +07:00
ChomeNS
572d175c17 fix: fix keybind component !!! 2025-04-07 16:35:09 +07:00
ChomeNS
1a2d9c136c refactor: improve NamedTextColor and style getting in ComponentUtilities 2025-04-07 15:27:29 +07:00
ChomeNS
607a131fa5 fix: also include discord.com 2025-04-07 13:49:40 +07:00
ChomeNS
00a374104d fix: mabe 2025-04-07 08:18:15 +07:00