Commit Graph

1247 Commits

Author SHA1 Message Date
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
ChomeNS
5e06c7cf8b refactor: drop support for creayun since shit is getting messy with it 2025-04-07 08:05:07 +07:00
ChomeNS
c0390b806f refactor: replace ONLY discord.gg with discord{zwsp}.{zwsp}gg instead of every single . with {zwsp}.{zwsp}
the reason i have to do this is because people keep copying players ips from `/seen` logs (which contain zwsp) and put them into ipfilter, and since they contain zwsp, they'll never work, gonna consider adding IP regex check
2025-04-07 07:59:33 +07:00
ChomeNS
1c7cd3038c refactor: very small change in BotVisibilityCommand that caught my eye 2025-04-06 14:33:30 +07:00
ChomeNS
af67c228ce refactor: FINALLY improve the color palette, no more ColorUtilities.getColorByString(bot.config.colorPalette.something) every time i want use a color palette 2025-04-06 14:32:11 +07:00
ChomeNS
59749d85df refactor: add return messages to ClearChatQueueCommand and RefillCoreCommand to reduce a lot of player confusion 2025-04-06 08:49:27 +07:00
ChomeNS
ae91b3d78b fix: make chat splitting 4x faster which fixes *eval run bridge.chat('a'.repeat(69420)) along with all chat issues chat splitting all things FIXED. 2025-04-06 08:39:36 +07:00
ChomeNS
65cc3971af refactor: make queries less spammy in console like bukkit.lastKnownName and seen <uuid>
fix: `*mail sendselecteditem` and `*music playitem` invalid/doesn't exist/empty check not working
2025-04-05 17:52:08 +07:00
ChomeNS
ac44bedf8c feat: remove ICU self care 2025-04-04 10:05:53 +07:00
ChomeNS
a711e21437 fix: delete loader thread on *music stop and disconnect 2025-04-03 20:27:54 +07:00
ChomeNS
db1be06b17 fix: database throwing errors LoL 2025-04-03 11:02:07 +07:00
ChomeNS
884c525f2e refactor: make executeCommand in CommandHandlerPlugin return void instead of a Component 2025-04-03 10:50:41 +07:00
ChomeNS
386bf69e7a refactor: rename static executors to uppercase snake case 2025-04-03 10:12:04 +07:00
ChomeNS
8ce017f7d0 refactor: inline thread name 2025-04-03 10:02:23 +07:00
ChomeNS
e80530c847 refactor: some console things 2025-04-03 10:00:24 +07:00
ChomeNS
13385de5d5 refactor: improve the CommandHandlerPlugin a bit 2025-04-03 09:46:37 +07:00
ChomeNS
9d6b0d8dc4 fix: socialspy self care not working 2025-04-03 08:20:39 +07:00
ChomeNS
8c4aae3401 refactor: use uuid on nick self care 2025-04-03 08:11:23 +07:00
ChomeNS
b8bea93754 fix: accidentally removed vanish enable detector 2025-04-02 09:34:14 +07:00
ChomeNS
1d7190dd44 fix: the previous commit actually broke everything that uses the global plugins
this is why you should test your code on production THEN commit and push your changes
2025-04-01 19:51:50 +07:00
ChomeNS
58e722ba06 refactor: make global plugins in Bot use the one from the Main class
and also initialize LoggerPlugin in Bot because i was dumb lol, now it's the first plugin to load in each bot
2025-04-01 19:34:44 +07:00
ChomeNS
7617818720 fix: make voicechat work again & make the 2 years old code modern 2025-04-01 19:04:38 +07:00
ChomeNS
2fd205bd61 refactor: run Code Inspection and fix most of the warnings 2025-04-01 10:15:50 +07:00
ChomeNS
6edb683274 refactor: finally fix deprecation warning in the simple voice chat FriendlyByteBuf thingy 2025-04-01 10:04:42 +07:00
ChomeNS
90323d3552 refactor: Reformat Code with chome NS code style !!!
too lazy to export it somewhere, if you need it feel free to ask me
2025-04-01 09:58:31 +07:00
ChomeNS
156a5af47f feat: /tp cooldown when going down from height limit 2025-03-31 17:13:56 +07:00
ChomeNS
bb0900eeb6 refactor: make packetReceived listeners private
Intelligent IDEA Replacing Feature.
2025-03-31 16:55:52 +07:00
ChomeNS
dddead69ba fix: lazy fix for the empty string username kind of people 2025-03-31 15:22:59 +07:00
ChomeNS
3ee759211b refactor: correct way to get the target (i didn't know the server sends it) 2025-03-31 14:59:45 +07:00
ChomeNS
e0f0b4c174 refactor: make PlayerMessage a record 2025-03-31 14:54:27 +07:00