Commit Graph

343 Commits

Author SHA1 Message Date
Telesphoreo 7ed0549ec6 Fixed a few bugs 2022-04-05 15:40:25 -05:00
Telesphoreo f5a89384a0 Remove commented out things 2022-04-05 13:14:53 -05:00
Telesphoreo 08bdeaac48
Merge branch 'master' into punishments 2022-04-05 13:10:08 -05:00
Telesphoreo 8a0c354682 actually fix it this time 2022-04-04 15:22:04 -05:00
Telesphoreo c8a64cc9cb Fix NPE in unban command 2022-04-04 15:18:20 -05:00
Taah 6f4bc5aec1 so far it is working but the only thing preventing me from going to fully asynchronous calls for punishments is httpd... 2022-04-04 01:36:50 -07:00
Taah 35d436bb61 remove <v> and swap it to {number} for messages 2022-04-03 21:07:48 -07:00
Telesphoreo 511506348f Ban service now works with JSON 2022-04-03 17:59:16 -05:00
Telesphoreo 894cda2ede Remove some of this duplicate code 2022-04-03 16:45:32 -05:00
Telesphoreo 470f652e0b Actually add IPs to punishment 2022-04-02 18:03:58 -05:00
Telesphoreo fd9fafb6bb I'd say this is pretty important 2022-04-02 15:12:38 -05:00
Telesphoreo aa18e5d11a Add new IPs 2022-04-02 14:55:47 -05:00
Telesphoreo a4ce9511fd this is enough coding for one day 2022-04-02 01:25:24 -05:00
Telesphoreo 82343815dd Remove debug 2022-04-02 00:36:04 -05:00
Telesphoreo 4d0cf96b97 Revert "Let's try something"
This reverts commit ccdefe97a3.
2022-04-02 00:32:04 -05:00
Telesphoreo ccdefe97a3 Let's try something 2022-04-01 23:56:56 -05:00
Telesphoreo 787458f1df Remove debugging from command loader 2022-04-01 23:21:37 -05:00
Telesphoreo 0f898380db this is why we need an API 2022-04-01 23:09:43 -05:00
Telesphoreo c484f4b2b2 Not tested, remove automatic loading of properties 2022-04-01 23:04:51 -05:00
Taah 1f2eed78de add custom module config class
fix npe in tab listener
add getter for indefinite bans
fix npe in plex cmd
remove spring boot and add jetty
2022-04-01 20:58:03 -07:00
Focusvity 099680d068
Add missing retention policy to annotation classes 2022-04-02 12:46:04 +11:00
Telesphoreo bb92805fa5 Add caching to the updater 2022-04-01 15:00:55 -05:00
Telesphoreo be428d58f2 Fix formatting 2022-04-01 03:17:42 -05:00
Telesphoreo 48fb4f919a Make update checking better 2022-04-01 03:08:17 -05:00
Telesphoreo 9ebbeb3c15 Revamp update checker 2022-04-01 02:54:22 -05:00
Taah 8ebb1c91a0 add get all admins method to get all admin objects 2022-03-31 22:47:15 -07:00
Taah 6e768c0e0f find player by ip + reload system on /plex reload 2022-03-30 23:50:53 -07:00
Telesphoreo def38eed06 fix it all 2022-03-26 17:22:08 -05:00
Telesphoreo 85f91b046b Delete build.properties 2022-03-26 16:40:04 -05:00
Telesphoreo 4646b87893 Add build number 2022-03-26 16:36:29 -05:00
Telesphoreo 635c1beba7 Revert "intellij "code cleanup" just adds final everywhere"
This reverts commit eb8571b6e9.
2022-03-25 00:54:21 -05:00
Telesphoreo eb8571b6e9 intellij "code cleanup" just adds final everywhere 2022-03-25 00:52:06 -05:00
Telesphoreo 273dd8a5ef Add blockedit command 2022-03-25 00:45:55 -05:00
Telesphoreo 262368ed18 Optimize imports 2022-03-20 20:06:36 -05:00
Telesphoreo d0b89d995c Add global gamerules 2022-03-20 20:05:50 -05:00
Focusvity 580f87f28b
Move mute into its own class 2022-03-20 13:13:34 +11:00
Focusvity 117852e6d0
Few changes to toggleable listener system 2022-03-20 13:04:55 +11:00
Telesphoreo bce3d90cc0 Plex 0.9 2022-03-19 15:04:48 -05:00
Telesphoreo 1b7511e817 Reflections API for listeners 2022-03-19 14:27:55 -05:00
Focusvity 159ed046cb
Removed deprecated methods from custom world and fixed a missing Jedis check 2022-03-19 20:38:09 +11:00
Focusvity d669da9f28
Prevent all commands from being loaded 2022-03-19 15:17:43 +11:00
Focusvity cc97612101
Use Google's reflection library to register commands 2022-03-19 14:33:23 +11:00
Telesphoreo 6a569bb638 Fix many bugs 2022-03-18 20:12:05 -05:00
Telesphoreo d8c6c3b4a8 Improvements for servers using permissions 2022-03-18 19:01:20 -05:00
Telesphoreo d7cbbc8d52 Fix errors when unloading modules with listeners 2022-03-18 14:15:05 -05:00
Telesphoreo 06e51926be Major changes
- Convert prefixes to Component
- Styling improvements to the list command
- Fix tab completing on plex command
- Allow console to check ranks of other players
- Add coloring in tab for admins
- Add color field to ranks and titles
- Fix debug logging not working
2022-03-17 20:18:35 -05:00
Telesphoreo 3c0b79ba06 Start getting rid of legacy strings 2022-03-17 17:16:17 -05:00
Telesphoreo 8f7fed5835 Taah broke it 2022-03-10 19:55:03 -06:00
Telesphoreo aa3aa7cb0e Update usage 2022-03-06 00:43:37 -06:00
Telesphoreo afd793cdba Plex 0.8 2022-03-05 22:54:02 -06:00
Telesphoreo 1d9662acde Merge branch 'master' of https://github.com/PlexDevelopment/Plex 2022-03-05 19:56:51 -06:00
Telesphoreo 89199eb580 Let's not make ourselves permbanned by default 2022-03-05 19:56:46 -06:00
Taah 0aa9669f5f lol i disabled modules on reload 2022-03-05 17:22:30 -08:00
Taah 46d8debd18 - don't reload indefinite bans 2022-03-05 17:20:51 -08:00
Taah 69541a20b8 - Add command and listener support 2022-03-05 17:17:14 -08:00
Taah 87ddf355b5 - Begin BETA module system 2022-03-05 17:04:34 -08:00
Taah 2804f6bc41 - Change indefinite bans config system to be more organized
- Store indefinite bans through an object instead
- Add debug redis messages
- Make loading keys from the jar optional
2022-03-05 15:44:38 -08:00
Telesphoreo aa5e184a56 Don't check for updates if it's a snapshot version 2022-03-05 17:28:52 -06:00
Telesphoreo 14fb24a380 Bump to 0.8-SNAPSHOT 2022-03-03 19:51:07 -06:00
Telesphoreo e258e27814 Replace with Kyori 2022-03-03 16:56:52 -06:00
Telesphoreo 0b5425b8d2 Begin work on 1.18.2
- Add update checking
- World generation is broken
- Won't compile unless 1.18.2 is in your local Maven repository
- No longer need MiniMessage bundled in Plex
- Customizable namehistory
- Set comments in config.yml if they're missing
2022-03-03 15:45:19 -06:00
Telesphoreo 22a26edd79
Damnit taah 2022-03-03 12:21:07 -06:00
Telesphoreo 71de135cfc chili sauce 2022-02-28 19:44:10 -06:00
Taah 565cef61db - Add /lockup 2022-02-28 12:39:04 -08:00
Telesphoreo 02df46c553 Add examples 2022-02-28 01:20:35 -06:00
Taah 8550240754 - Start the indefinite ban system, currently working with manually adding to the configuration.
- /plex reload reloads the indefinite bans
- Fixed bug where AdminChat showed up with symbols still and not colorized in adminchat
2022-02-27 22:28:00 -08:00
Telesphoreo fea21195da Better defaults 2022-02-26 00:48:52 -06:00
Telesphoreo 3f3bba57ac Reformat code 2022-02-26 00:26:42 -06:00
Telesphoreo 817cb03dca Add tempbans 2022-02-26 00:24:11 -06:00
Taah 1333f06dad - Add the ability to customize game rules per world in config
- Add gamerules argument to /debug
2022-02-25 01:54:11 -08:00
Taah 1b856db297 - Add unmute & mute and some checks as well as fix prefix bug 2022-02-25 00:59:48 -08:00
Taah bc461ee870 Merge remote-tracking branch 'origin/master' 2022-02-25 00:37:59 -08:00
Taah 210b02ff78 Add minimessage support to prefixes 2022-02-25 00:37:43 -08:00
Telesphoreo 827f632534 WAIT IT WASNT EVEN IN THE FILE IN THE FIRST PLACE 2022-02-25 02:12:03 -06:00
Telesphoreo 0c347557a9 i am an actual idiot 2022-02-25 02:11:04 -06:00
Telesphoreo 27daa3a858 ee 2022-02-25 02:08:46 -06:00
Taah f13bd8a5d5 - Fix banning bug + make plex name color config option work 2022-02-24 23:50:11 -08:00
Telesphoreo 5b8854b7fe Add tag messages to messages.yml 2022-02-25 01:36:46 -06:00
Telesphoreo 3b2566039d Fix commandspy 2022-02-25 01:15:13 -06:00
Taah bd21e5d2ba - Switch messages.yml to minimessage 2022-02-24 23:09:55 -08:00
Telesphoreo b6f4ddbb4c Add adminchat 2022-02-24 21:56:28 -06:00
Telesphoreo b37cd31e98 lol 2022-02-24 00:51:46 -06:00
Telesphoreo c74b0466b9 better messages 2022-02-24 00:24:27 -06:00
Telesphoreo e326477a5a A few changes
- Better documentation for messages.yml
- Add rawsay command
- Add seeing other peoples ranks
2022-02-24 00:04:26 -06:00
Telesphoreo 5e63f2572d Don't set the join message 2022-02-23 23:19:40 -06:00
Telesphoreo 30252ba51b Auto updating files 2022-02-23 22:55:04 -06:00
Telesphoreo 553e5c6355 Formatting 2022-02-22 03:30:23 -06:00
Telesphoreo 442ab21a6b Link to docs 2022-02-22 02:00:58 -06:00
Taah a2aea5bf1c - Fix login messages to match with titles 2022-02-21 23:17:00 -08:00
Telesphoreo 137bc44212 a few things 2022-02-22 01:11:37 -06:00
Telesphoreo a218ae45c0 who changed this 2022-02-22 00:57:26 -06:00
Taah 28fba133b7 Merge remote-tracking branch 'origin/master' 2022-02-21 22:56:14 -08:00
Taah 355a930c89 - Create tag command
- Fix bug fixes
2022-02-21 22:55:59 -08:00
Telesphoreo c64d04b9a3 no 2022-02-22 00:51:46 -06:00
Taah 455713db3c - Fix world permissions handling and add more customization 2022-02-21 20:51:05 -08:00
Telesphoreo 3d3d92d72b cba to do this 2022-02-21 20:43:53 -06:00
Telesphoreo 02f5654c6d
Merge pull request #3 from PlexDevelopment/punishment-rework
Rework punishment system
2022-02-21 20:26:05 -06:00
Taah e446002567 - Add samples to config for motd 2022-02-21 17:26:50 -08:00
Taah 93fa38d9da - Make adminworld check for ranks or permissions 2022-02-21 16:29:52 -08:00
Taah 6f506ac5cb Rework punishment system by deleting the Ban and BanManager and moving everything into Punishment Manager. TODO cache punishments maybe? who knows! add an active field to punishments and fix the ban service to actually unban players 2022-02-21 16:20:22 -08:00
Telesphoreo d4578f2255 Fix tab handling and add more commands 2022-02-17 20:00:47 -06:00
Telesphoreo f2db87624f Move gamemode stuff to listener
- Fix messages in messages.yml not being used
- Fixed checkRank not working
- Added permissions support for tab handing
2022-02-13 23:55:50 -06:00
Taahh bd8c772228
Add documentation to custom Plex events + config 2022-02-07 09:07:48 -08:00
Telesphoreo 917775e7e7 Format code 2022-02-06 23:59:26 -06:00
Telesphoreo cb3a6cc391 Last minute bug fix 2022-02-06 23:58:55 -06:00
Telesphoreo 2631867e27 Fix a whole bunch of bugs
- Rewrite how bans are handled
- Add /unfreeze command
- Rename LoginListener to BanListener
- Persistent commandspy
2022-02-06 23:53:57 -06:00
Taah fddf57d7f5 Convert to Ashcon API for NameHistory 2022-02-06 21:06:55 -08:00
spacerocket62 282da7fdbb delete commandargumentexception and return usage instead 2022-02-06 19:53:35 -08:00
Telesphoreo e328cf29e5 Add an unfreeze command 2022-02-06 21:45:40 -06:00
spacerocket62 c2206d0079 - Fix NH bug & Gson not liking LocalDateTime 2022-02-06 19:43:37 -08:00
spacerocket62 e70a01868d Fix plex creating a new punished player everytime 2022-02-05 15:18:17 -08:00
spacerocket62 211308e813 Add documentation to dev.plex.admin, dev.plex.banning, dev.plex.cache, and dev.plex.command (annotations and PlexCommand.java only)
Convert Date in punishments to LocalDateTime
2022-02-05 15:14:23 -08:00
spacerocket62 5e64e5e1b5 Remove debug message 2022-02-05 13:51:40 -08:00
spacerocket62 4171a504ce Fix commands rank permission system by adding check for ANY command source 2022-02-05 13:51:15 -08:00
Telesphoreo d8a8f33425 this codebase is a mess 2022-02-05 14:43:49 -06:00
Telesphoreo eebb34cd1c Add CommandSpy 2022-02-04 15:25:40 -06:00
Telesphoreo dbf95441dc 🅱️an glowup 2022-02-04 14:13:56 -06:00
Telesphoreo 140f298018 Fix Redis hanging 2022-02-04 13:30:05 -06:00
Telesphoreo c93bd4fd2c Fix Redis not working with local IPs 2022-02-04 12:51:16 -06:00
Telesphoreo 93a8a10212 That's right, Redis is working!
- Fix end date for bans not being correct
- Add a lot of debug information
- Add ban reasons
2022-02-04 02:18:07 -06:00
Telesphoreo 753dba8986 Add Player field to all commands, add readable string to ranks 2022-02-03 22:49:05 -06:00
Telesphoreo 081a702c70 Actually add Player as a field to the commands 2022-02-03 22:01:30 -06:00
Telesphoreo fe53f5c49f Add bStats 2022-02-01 00:31:06 -06:00
Telesphoreo 4a05d90c17 Code cleanup 2022-01-30 15:03:47 -06:00
Telesphoreo d4761d4386 Many, many bug fixes
- Fix permission checks
- Fix unban command
- getOfflinePlexPlayer no longer uses cache
- Register worlds before trying to load gamerules
- Customizable ban messages
2022-01-30 14:56:08 -06:00
Telesphoreo bb978f2ab4 Fix SQLite not working 2022-01-30 13:26:55 -06:00
Telesphoreo bc41415034 Fix unban 2022-01-29 19:53:22 -06:00
Telesphoreo fd780463f8 oop 2022-01-29 19:32:16 -06:00
Telesphoreo a95ea3557e I can't believe we didn't have an unban command 2022-01-29 19:31:10 -06:00
Telesphoreo 0a1df0fddb add more commands 2022-01-29 19:08:07 -06:00
Telesphoreo 8293b1a879 bruh 2022-01-29 18:43:44 -06:00
Telesphoreo 86f3fd8d29 Begin work on implementing ranks 2022-01-29 16:35:48 -06:00
Telesphoreo 9043005d62 Dont call the plugin every time tl() is used 2022-01-27 15:38:44 -06:00
Telesphoreo 087f6dc35a Optimize imports 2022-01-27 15:23:01 -06:00
Telesphoreo e0b98794c5 Fix exception messages displaying twice 2022-01-27 15:22:28 -06:00
spacerocket62 15f0f5fe2d Move the chat renderer to a final class variable instead of initializing it every chat event 2022-01-27 01:03:48 -08:00
spacerocket62 8202021f07 Migrate (what I could find) legacy component system uses to kyori component system
Create List command
Remove fionn command
Remove test command
Add Mojang Utils
Auto add Plex Players back to cache on start if any are online
2022-01-27 01:00:50 -08:00
spacerocket62 29b547fc8b Merge remote-tracking branch 'origin/master' 2022-01-26 23:56:38 -08:00
Telesphoreo 5c15d25ef7 Added a debug option 2022-01-27 01:00:03 -06:00
spacerocket62 b94f0323ca Merge remote-tracking branch 'origin/master' 2022-01-26 22:36:40 -08:00
Telesphoreo f2bbf6f6dc Gamerule stuff 2022-01-27 00:36:00 -06:00
spacerocket62 13eb6e2ef9 Merge branch 'master' of https://github.com/PlexDevelopment/Plex-Dev
# Conflicts:
#	src/main/java/dev/plex/command/PlexCommand.java
2022-01-26 21:29:53 -08:00
spacerocket62 587ea8f352 Begin fixing command system 2022-01-26 21:28:30 -08:00
Telesphoreo a13ddabfdd Add exceptions 2022-01-26 23:19:05 -06:00
Telesphoreo d599b19a9a Switch to Gradle 2022-01-03 21:27:58 -06:00
Telesphoreo 88c70e84cc Big update 2022-01-03 21:04:39 -06:00
Telesphoreo 921a62cd58 Update to 1.17 2021-11-03 16:40:59 -05:00
Telesphoreo f4aa3bd3b9 Some updates 2021-06-20 03:02:07 -05:00
Telesphoreo 5bafa1122c
tttt 2021-01-03 01:21:15 -06:00
spacerocket62 8ecc1d2fce Fix SQL Syntax 2020-11-09 20:53:45 -08:00
spacerocket62 8b94ef3789 Finish the god forsaken punishments gui 2020-11-09 20:08:37 -08:00
spacerocket62 b072027458 -> Add IP Data to Bans 2020-11-09 18:49:51 -08:00
spacerocket62 2790d406ed -> Ban System done (?)
-> Switch Freeze CMD to use Punishment System
-> Add Mute Event
-> Register new Ban CMD
-> Register Login Listener
-> Add methods to Punishments
-> Service System
-> Have SQL and Mongo create a new table / collection for Bans
-> Added more util methods
2020-11-09 18:47:03 -08:00
spacerocket62 2d18c16358 start punishment system 2020-11-06 10:51:47 -08:00
spacerocket62 87abb0a964 add to central data class
add vanished variable to plexplayers
finish admin cmd except msgs aren't done
fix command source and plexcommand
add sender source to admin events
add admin listener
register admin listener
simplify playerlistener
fix sql syntax on sqlconnection
2020-11-06 10:19:38 -08:00
spacerocket62 542bba062c oh lol we have a playernotfoundexception 2020-11-05 23:07:28 -08:00
spacerocket62 ba494f6892 add random methods 2020-11-05 20:39:27 -08:00
Telesphoreo e4d097aa51 Add some commands and listeners
- Add gamemode commands
- Added MOTD listener
- Fixed bugs
2020-11-05 21:50:16 -06:00
Telesphoreo e4cf18db38 Reformat 2020-11-05 19:29:38 -06:00
spacerocket62 ce76aa9ce1 admin cmd done 2020-11-05 13:17:14 -08:00
Super_ 8428e2a6d3 name history
i still need to test bcuz i dont have an alt
2020-11-05 08:40:48 -05:00
Super_ 52be58872e first listener ayyyy 2020-11-02 21:58:56 -05:00
Super_ af23d3d2ed fixed a silly 2020-11-02 21:24:25 -05:00
Super_ 57dbafb385 command stuff
- exceptions used now
- use CommandSource over CommandSender as it will generally be more versatile
2020-11-02 19:19:26 -05:00
Super_ 3517c05054 op commands and more messages 2020-11-02 15:50:51 -05:00
Super_ 668488dfd1 freezing, yml messages, and a funny lil command 2020-11-01 19:06:08 -05:00
Super_ 2aba16cff2 world optimization and beginning of messages stuff 2020-10-31 11:09:13 -04:00
spacerocket62 2fa5afe40f Implement Command System with Super's help
p.s. very messy
Also Implement Listener System
re-organize
2020-10-31 01:55:27 -07:00
Super_ 38ea672eb1 weiphihpfwoeghjipwseg 2020-10-31 01:00:20 -04:00
Super_ ccab0cf83c implmenetation 2020-10-31 00:58:12 -04:00
Super_ b51df4cc6b Wow 2020-10-31 00:51:22 -04:00
spacerocket62 a770fc36e9 make it create the ranks folder 2020-10-28 19:36:37 -07:00
spacerocket62 ebd86d8ec7 switch to mariadb 2020-10-28 19:35:14 -07:00
Telesphoreo 6a0aa89410 idk what i did this should probably be reverted 2020-10-28 21:10:47 -05:00
Telesphoreo 072879ad33 b 2020-10-28 19:54:23 -05:00
spacerocket62 a2f7394c88 a 2020-10-28 13:47:00 -07:00
spacerocket62 ed1abb1fc0 my colors in cmd prompt don't work :( 2020-10-28 12:14:44 -07:00
spacerocket62 e716cee5bc so apparently mongo methods needed to be updated, weird amirite
added chat listener
added login msgs in a way ??
added setters to the ranks
changed the default rank obj so it puts prefix, loginmsg, and perms only instead
rankmanager imports any rank changes on startup
plex main class kinda just vibing
2020-10-28 12:07:02 -07:00
Telesphoreo b5ecd35e80 fixed 2020-10-27 23:47:02 -05:00
Telesphoreo 7d2e5c4b4a hope this is right 2020-10-27 23:42:28 -05:00
spacerocket62 e75b5f3d87 DAOs were deprecated, replaced needed methods in mongo player data instead 2020-10-27 21:11:23 -07:00
Telesphoreo f9630c9597 h 2020-10-27 22:55:35 -05:00
Telesphoreo f5c5c75ee1 doesnt compile 2020-10-27 22:49:56 -05:00
spacerocket62 f1744f2050 Remove deprecated BasicDAO and dev.morphia and replace it with the proper dependency 2020-10-27 20:45:01 -07:00
spacerocket62 fac87d8c66 generate default-ranks.json for customizable perms. perms system to be added soon 2020-10-27 14:56:05 -07:00
spacerocket62 9dfc351ebe lol i forgot to add coins to player data 2020-10-27 14:30:57 -07:00
spacerocket62 5400581b3d close redis because no memory leaks around at anarchyfreedom
also remove unused imports
2020-10-27 14:22:59 -07:00
spacerocket62 ebcc9f2fcc close redis because no memory leaks around at anarchyfreedom 2020-10-27 14:21:57 -07:00
spacerocket62 b8357b6d1d added sql support so now people can use mongo or sql 2020-10-27 14:04:05 -07:00
spacerocket62 d4cf8b7414 yes
you can call me a god
mongodb storing is done
2020-10-27 13:12:38 -07:00
spacerocket62 5162f3fcfb packs is going to yell at me
Added custom Config classes
Added Mongo / SQLite / SQL switches
Setup main config.yml
2020-10-27 11:14:34 -07:00
Telesphoreo cc40d83c95 It's a java file 2020-10-25 22:57:07 -05:00
Telesphoreo ac2a9a619f Initial commit 2020-10-25 22:55:49 -05:00