Commit graph

537 commits

Author SHA1 Message Date
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
ea7520d99a
Merge pull request #104 from TBMCPlugins/dependabot/maven/ButtonProcessor/org.yaml-snakeyaml-1.32
Bump snakeyaml from 1.26 to 1.32 in /ButtonProcessor
2023-01-04 22:39:31 +01:00
dependabot[bot]
47461d49c2
Bump snakeyaml from 1.26 to 1.32 in /ButtonProcessor
---
updated-dependencies:
- dependency-name: org.yaml:snakeyaml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-14 20:44:48 +00:00
7120e3c40e
Merge pull request #100 from TBMCPlugins/alisolarflare-color-refactor
Put each color on their own line
2022-01-08 01:04:15 +01:00
alisolarflare
c6b2dc3443
Put each color on their own line
norbi no
2022-01-07 18:41:51 -05:00
4e58ddd475
Update dependencies and fix config charset
The charset used to save the configuration was platform-dependent, changed it to UTF-8
2021-12-30 21:16:20 +01:00
5c83b923da
Merge pull request #99 from TBMCPlugins/dependabot/maven/ButtonProcessor/org.yaml-snakeyaml-1.26
Bump snakeyaml from 1.21 to 1.26 in /ButtonProcessor
2021-12-30 16:47:57 +01:00
83b5f1fec4
Fix command data generation for Scala 2021-08-26 01:59:18 +02:00
dependabot[bot]
59ccc55f98
Bump snakeyaml from 1.21 to 1.26 in /ButtonProcessor
Bumps [snakeyaml](https://bitbucket.org/asomov/snakeyaml) from 1.21 to 1.26.
- [Commits](https://bitbucket.org/asomov/snakeyaml/branches/compare/snakeyaml-1.26..snakeyaml-1.21)

---
updated-dependencies:
- dependency-name: org.yaml:snakeyaml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-04 22:05:30 +00:00
f92cc773c1
Remove Towny resident rename functionality
Towny doesn't need the name updater plugin anymore
2021-01-18 17:14:15 +01:00
2a008906f4
Remove Votifier component and stuff 2020-10-31 18:24:18 +01:00
9fb35eb6cc
Some fixes and cleanup
Don't require ButtonPlugin for unregistering components
Cleanup
Fixed not detecting missing player name
2020-10-30 22:56:11 +01:00
66be5ab0dc
Remove (/press) 2020-10-30 00:49:43 +01:00
5b5a8877cc
Add a dash and a zero (name and version) 2020-10-28 00:08:00 +01:00
09074f1a2e
Moving player data and some cleanup 2020-10-27 22:48:39 +01:00
ff0d54e00b
Set version automatically, channel cmd IDs
Added support for using the IDs setting for channel commands
2020-10-27 21:58:49 +01:00
5199482053
Set Java version for codeql 2020-10-26 23:18:54 +01:00
c12a24895e
Fix config comments, improve pregen
Also only showing a warning if something is missing from the command yml
2020-10-26 19:54:28 +01:00
51e0ca4f4c
Stop using methods for configs 2020-10-26 17:44:11 +01:00
267a350473
Refactored the aforementioned player data
Now it will only load a yaml file once at a time
Each user class which has a separate folder now has a separate static and non-static shared storage
Also some uncache fixes for MC that I haven't committed before
2020-10-25 21:47:57 +01:00
132eba7db6
Player data upgrade complete
Auto-save for each user
ConfigData stuff
Removed player events
2020-10-24 23:47:33 +02:00