Commit Graph

51 Commits

Author SHA1 Message Date
ChomeNS
56c7aa5493 refactor: don't trim the string again since we already did it 2025-05-09 09:42:07 +07:00
ChomeNS
a01f749577 refactor: use fastutil 💨💨💨
i hope i didn't miss some things
2025-05-02 15:00:31 +07:00
ChomeNS
a3ccacf758 feat: re-add icu self-care that is more accurate with code RIPPED from craftbukkit. 2025-05-01 18:16:09 +07:00
ChomeNS
896b75c40f fix: ip getting on optboom 2025-04-26 08:08:16 +07:00
ChomeNS
2ab3a4322a refactor: use java 21 switch case ahh thing for packet checking 2025-04-23 15:20:29 +07:00
ChomeNS
b8ea989026 fix: make the lists actually thread-safe (maybe, but pretty likely)
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Collections.html#synchronizedList(java.util.List)
> It is imperative that the user manually synchronize on the returned list when traversing it via Iterator, Spliterator or Stream
> Failure to follow this advice may result in non-deterministic behavior.
2025-04-21 20:15:47 +07:00
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
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
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
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
ffdfcb421d fix: player list NOT thread safe.... 2025-04-09 08:58:01 +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
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
386bf69e7a refactor: rename static executors to uppercase snake case 2025-04-03 10:12:04 +07:00
ChomeNS
b8bea93754 fix: accidentally removed vanish enable detector 2025-04-02 09:34:14 +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
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
821bfe2626 fix: players removing fix again 2025-03-30 18:12:40 +07:00
ChomeNS
1f2355aa77 fix: player left event being called twice !!
refactor: some refactors inside the player plugin too
2025-03-30 16:52:46 +07:00
ChomeNS
dd629d1dfa fix: make seen not run on non-essentials servers 2025-03-26 10:53:51 +07:00
ChomeNS
05854223b1 refactor: second ticker in TickPlugin 2025-03-25 20:05:50 +07:00
ChomeNS
0a8efe0189 refactor: make listeners an interface
(except the one in Bot, which extends MCProtocolLib's SessionAdaptor, not sure how exactly make them complement)
2025-03-23 14:18:55 +07:00
ChomeNS
210dd7aaa1 fix: some fixes to make the bot work on bagel fabric kaboom clone and also vanilla servers
can't believe that paragraph in InfoCommand was wrong the whole time ("works on vanilla servers too")
2025-03-22 11:39:00 +07:00
ChomeNS
8a9b123f49 refactor: store player ip in PlayerEntry, so we don't have to query them in stuff like IP filter which spams console 2025-03-21 16:31:23 +07:00
ChomeNS
079c579b0e fix: core tracked query issue 2025-03-19 15:14:24 +07:00
ChomeNS
07b61540ef refactor: rewrite list command
fix: set `target.listed` in PlayersPlugin (vanishing)
2025-03-19 09:28:34 +07:00
ChomeNS
3ce56fc110 feat: don't use tab complete in PlayersPlugin 2025-03-19 09:08:48 +07:00
ChomeNS
f882c15d39 refactor: remove useless / in tab complete command
minecraft code:
```
if (stringReader.canRead() && stringReader.peek() == '/') {
	stringReader.skip();
}
```
i also removed `minecraft:` in the vanish detection tab complete, this should not break anything on kaboom servers
2025-03-18 17:05:49 +07:00
ChomeNS
60bf424f27 refactor: optimize getting player IPs from database stuff 2025-03-06 09:21:02 +07:00
ChomeNS
bb766652f6 feat: hidden servers 2025-03-05 10:47:27 +07:00
ChomeNS
d44a29528c refactor: organize stuff in data package 2025-02-19 16:15:05 +07:00
ChomeNS
8b5e706769 refactor: bot.getServerString() to reduce mess 2025-02-16 08:03:38 +07:00
ChomeNS
4063385ac2 fix: hotfix for the bot not being able to reconnect 2025-01-19 07:52:22 +07:00
ChomeNS
4478d0287d fix: hopefully fix ghost players for PlayersPlugin but it probably won't 2025-01-18 16:18:51 +07:00
ChomeNS
c3ae616292 refactor: use database to handle getPlayerIP when possible & some misc refactor with findalts 2024-12-29 17:54:47 +07:00
ChomeNS
4d9c1ca99b feat: uuid support for getEntry 2024-12-29 08:03:16 +07:00
ChomeNS
2df59435d0 fix: some emergency issue i don't know what is causing 2024-12-26 08:55:47 +07:00
ChomeNS
8e84565090 fix: forgor to remove the duplicate entry on unvanish 2024-12-21 15:41:36 +07:00
ChomeNS
3a25f28635 feat: check /username 2024-12-21 15:40:23 +07:00
ChomeNS
2c517b7326 fix: fix for unlimited 2024-12-05 14:47:17 +07:00
ChomeNS
5f15ea2d4d fix: hopefully finally fix it 2024-12-05 13:39:10 +07:00
ChomeNS
f2c9d3a30e fix: *** laziest fix i have ever done 2024-12-05 11:53:40 +07:00
ChomeNS
65aa230260 fix,refactor: fix findalts and use thenApplyAsync instead of thenApply for non-blocking 2024-11-16 18:41:34 +07:00
ChomeNS
a948ef84e2 unused (for now) 2024-10-26 09:23:49 +07:00
ChomeNS
f1c98135a2 1.21 + a LOT of fixies and a bit of optimization. WorldPlugin is still broken with some debug lines 2024-10-06 20:46:51 +07:00
ChomeNS
837fe388bb rename group 2024-10-06 17:36:42 +07:00
ChomeNS
fbf9f3e2f1 change to land.chipmunk.chayapak because yes 2023-03-27 12:53:05 +07:00
ChomeNS
5c3e0efef3 add unused sus 2023-03-27 11:44:14 +07:00
ChomeNS
b2fccdd28d add list 2023-03-25 15:29:44 +07:00