Commit graph

557 commits

Author SHA1 Message Date
291fc068fd
Only use Chroma users for chat messages
- Don't use Command2Sender for getting Chroma users
- The CommandSender interface is a Minecraft-specific concept and using Command2Sender just adds unnecessary complexity
- Added convenience methods for getting TBMC players and the console
2023-05-23 00:49:52 +02:00
b57420c72a
Command sender and config improvements
- Use Command2Sender for getting Chroma users
- Throw exception if a proper converter doesn't exist
- Make ConfigData non-nullable altogether, but allow for nullable type + documentation
- Converter stuff is older, config stuff is from earlier today
- Command2 stuff isn't really worked out yet
2023-05-14 03:03:51 +02:00
aabc2cd48c
Remove ComponentData, convert two components
- The new way of replacing configs doesn't actually support having ConfigData fields as they can become obsolete
- Fixed KDoc formatting (new lines)
2023-05-05 02:48:06 +02:00
e610dbc0f6
Rename .java to .kt 2023-05-05 02:48:01 +02:00
6c70e8707d
Fix config/plugin lateinit error, convert API, color codes
- The MainPlugin.instance field wasn't initialized when the MainPlugin was being initialized (config), so delayed the config saving until it's actually running
- Also added library to support Kotlin coroutines in Bukkit but not using it yet
2023-05-03 00:26:24 +02:00
d4aeb198a8
Rename .java to .kt 2023-05-03 00:26:20 +02:00
260a67506a
Fixes for Java/Scala compatibility bugs 2023-04-25 23:58:57 +02:00
5e1f378ec7
It compiles! Finished MC tab completion
- Custom tab complete methods are now case-sensitive
- Custom tab complete methods are also not supported for now
2023-04-21 04:05:04 +02:00
ee7e531dc0
Rename .java to .kt 2023-04-21 04:04:57 +02:00
17758bb54e
Using ChatColors and convert remresidents command that we don't need anymore 2023-04-19 02:55:41 +02:00
6d0d9adef5
Rename .java to .kt 2023-04-19 02:55:38 +02:00
8616ecbefc
Fixed getSubcommands() and other command fixes
- Command2MC tab completion still awaits - but then that might be all that's left before testing
2023-04-18 01:52:40 +02:00
30a2fe0b68
Finished Kotlin conversion, Command2MC stuff remains 2023-04-17 21:04:00 +02:00
1d88d3e859
Rename .java to .kt 2023-04-17 21:03:57 +02:00
42fd0dfeac
Player, config and player data improvements 2023-04-17 03:11:36 +02:00
8104b1a8d4
Rename .java to .kt 2023-04-17 03:11:33 +02:00
39424fa92b
Fix and improve user class, convert player class
And other stuff
Reworked ChromaGamerBase.connectWith()
Converted other stuff too
2023-04-16 03:18:03 +02:00
113d975986
Rename .java to .kt 2023-04-16 03:18:00 +02:00
4ed001cb54
More conversions, user classes, some configs
Removed writePluginList config option
2023-04-14 03:07:25 +02:00
85efc873d6
Rename .java to .kt 2023-04-14 03:07:22 +02:00
56d1f0c2a2
A bunch of changes and improvements - and Kotlin
- Tried to reduce usage of MainPlugin.Instance, ended up refactoring more Component/ButtonPlugin things
- Config fixes, among other things
2023-04-14 00:48:18 +02:00
d6fba6a495
Rename .java to .kt 2023-04-14 00:48:14 +02:00
7b7ad18818 Config improvements
- Added component wrapper to ensure null safety
- Plugin/config properties can no longer be null
2023-04-05 15:19:28 +02:00
8d8708d14b Improved config handling, updated read-only and list configs
- The read-only configs are no longer using a separate class, it seems
unnecessary
- The list configs got refactored so that the entire list doesn't get
recreated each time it changes
- Also added support for getters/setters for the list config, just to be
consistent
2023-04-05 15:19:28 +02:00
99958e74f9 Rename .java to .kt 2023-04-05 15:19:28 +02:00
4e617fdbc9 Continued implementing support for annotations, finished permission check 2023-04-05 15:19:27 +02:00
af7d097f9b Separated MC-specific command metadata
Implementing permission handling for MC
2023-04-05 15:19:27 +02:00
be5f9ded60 Converted ConfigData and started others
- Bumped Spigot version to 1.18.1, so we get config comment support natively
- Made getters perform a basic casting by default, this was done by the
ConfigData code before
2023-04-05 15:19:27 +02:00
89b7246f4f Rename .java to .kt 2023-04-05 15:19:27 +02:00
ca00422ce8 Start converting more config stuff and add TODOs 2023-04-05 15:19:27 +02:00
482df40992 Convert config stuff and fix issues 2023-04-05 15:19:26 +02:00
65be3b2df9 Rename .java to .kt 2023-04-05 15:19:26 +02:00
8cf01f1137 Converted and reworked command builder, node, data 2023-04-05 15:19:26 +02:00
00852dd868 Rename .java to .kt 2023-04-05 15:19:26 +02:00
a5099a65d1 Convert some more code to Kotlin
Basically done with converting Command2
Also moved the Minecraft part of the param converter to Command2MC, although the user object getter should be made more generic
2023-04-05 15:19:26 +02:00
0bf1f9789b Convert some code to Kotlin
Why not
Lombok didn't work and I had other frustations with Java streams
Removed some unnecessary tab complete code
2023-04-05 15:19:25 +02:00
9a859de583 Rename .java to .kt 2023-04-05 15:19:25 +02:00
db08d9baee Added documentation and refactored commands.yml handling
- Added command argument help manager to read the arguments
- MC tab completion still needs to be fixed
2023-04-05 15:19:25 +02:00
47178e7f7c Fix Command2MC command registration
- Tab completion still needs to be fixed
- Fixed usage check existence check
- Fixed parameter number limits
- Added commands to get and remove registered commands
2023-04-05 15:19:25 +02:00
c0c3fc68dc Store arguments in order, fix errors, perm check
- Resolved all Command2 errors, Command2MC is next
2023-04-05 15:19:25 +02:00
b53813fa2e Add argument type handling and add return type for registerCommandSuper
- Also added help text back and cleaned some stuff up
- Added support for number argument limits
2023-04-05 15:19:24 +02:00
05477641a4 Implement command registration and argument handling
And added some TODOs
Also tried to make the code less messy
2023-04-05 15:19:24 +02:00
519a632636 Add support for no-op node
It cannot be executed, just displays help text - after I implement displaying help text
2023-04-05 15:19:24 +02:00
8f20ca9b5a Integrate SubcommandData with CoreCommandBuilder and document it
Also made the sender type nicer in the error message
2023-04-05 15:19:24 +02:00
b59a090e13 Implement argument handling and add a bunch of TODOs 2023-04-05 15:19:24 +02:00
5f7f3d7747 Add custom command builder and help text test 2023-04-05 15:19:23 +02:00
a26d031ce2 Begin using Brigadier for the command system
Added custom command node types for help text support
2023-04-05 15:19:23 +02:00
66c1b1b14f Merge hotfix 1.0.2 2023-04-05 15:17:09 +02:00
496af97e1c
Fix getting user using abstract user classes (#101)
- The Discord plugin uses this to connect MC and DC accounts
- And it was a feataure of this plugin either way
2023-03-12 23:26:47 +01:00
6ec63b5ae7
Fix NuVotifier repository 2023-03-12 22:01:06 +01:00