Commit graph

584 commits

Author SHA1 Message Date
Norbi Peti 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
Norbi Peti 99958e74f9 Rename .java to .kt 2023-04-05 15:19:28 +02:00
Norbi Peti 4e617fdbc9 Continued implementing support for annotations, finished permission check 2023-04-05 15:19:27 +02:00
Norbi Peti af7d097f9b Separated MC-specific command metadata
Implementing permission handling for MC
2023-04-05 15:19:27 +02:00
Norbi Peti 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
Norbi Peti 89b7246f4f Rename .java to .kt 2023-04-05 15:19:27 +02:00
Norbi Peti ca00422ce8 Start converting more config stuff and add TODOs 2023-04-05 15:19:27 +02:00
Norbi Peti 482df40992 Convert config stuff and fix issues 2023-04-05 15:19:26 +02:00
Norbi Peti 65be3b2df9 Rename .java to .kt 2023-04-05 15:19:26 +02:00
Norbi Peti 8cf01f1137 Converted and reworked command builder, node, data 2023-04-05 15:19:26 +02:00
Norbi Peti 00852dd868 Rename .java to .kt 2023-04-05 15:19:26 +02:00
Norbi Peti 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
Norbi Peti 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
Norbi Peti 9a859de583 Rename .java to .kt 2023-04-05 15:19:25 +02:00
Norbi Peti 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
Norbi Peti 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
Norbi Peti c0c3fc68dc Store arguments in order, fix errors, perm check
- Resolved all Command2 errors, Command2MC is next
2023-04-05 15:19:25 +02:00
Norbi Peti 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
Norbi Peti 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
Norbi Peti 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
Norbi Peti 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
Norbi Peti b59a090e13 Implement argument handling and add a bunch of TODOs 2023-04-05 15:19:24 +02:00
Norbi Peti 5f7f3d7747 Add custom command builder and help text test 2023-04-05 15:19:23 +02:00
Norbi Peti 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
Norbi Peti 66c1b1b14f Merge hotfix 1.0.2 2023-04-05 15:17:09 +02:00
Norbi Peti 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
Norbi Peti 6ec63b5ae7
Fix NuVotifier repository 2023-03-12 22:01:06 +01:00
Norbi Peti 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
Norbi Peti 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
Norbi Peti 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
Norbi Peti 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
Norbi Peti 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
Norbi Peti f92cc773c1
Remove Towny resident rename functionality
Towny doesn't need the name updater plugin anymore
2021-01-18 17:14:15 +01:00
Norbi Peti 2a008906f4
Remove Votifier component and stuff 2020-10-31 18:24:18 +01:00
Norbi Peti 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
Norbi Peti 66be5ab0dc
Remove (/press) 2020-10-30 00:49:43 +01:00
Norbi Peti 5b5a8877cc
Add a dash and a zero (name and version) 2020-10-28 00:08:00 +01:00
Norbi Peti 09074f1a2e
Moving player data and some cleanup 2020-10-27 22:48:39 +01:00
Norbi Peti 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
Norbi Peti 5199482053
Set Java version for codeql 2020-10-26 23:18:54 +01:00
Norbi Peti 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
Norbi Peti 51e0ca4f4c
Stop using methods for configs 2020-10-26 17:44:11 +01:00
Norbi Peti 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
Norbi Peti 132eba7db6
Player data upgrade complete
Auto-save for each user
ConfigData stuff
Removed player events
2020-10-24 23:47:33 +02:00
Norbi Peti 83ecf7717f
Started upgrading player data setup 2020-10-23 01:48:54 +02:00
Norbi Peti 893b24ed5f
Fix alias support and add tab completion for it 2020-10-14 20:41:26 +02:00
Norbi Peti af0aed65e0
Merge pull request #98 from TBMCPlugins/dependabot/maven/CorePOM/junit-junit-4.13.1
Bump junit from 3.8.1 to 4.13.1 in /CorePOM
2020-10-14 19:49:21 +02:00