Commit Graph

127 Commits

Author SHA1 Message Date
allinkdev
8e5c52d0e8
Implement configuration system (#12)
* Return primitives in configuration interface where possible

This should save some unnecessary performance and memory overhead caused by the storage of object wrappers of the primitive types and the unboxing of those object wrappers into the wrapped primitive types when we try to do some primitive-exclusive operation.

I doubt that we'll be using the additional sugar methods that these wrappers provide most of the time, and if we need to we can just box the returned primitives.

* Mark returned lists in Configuration interface as Unmodifiable

I can't think of a use-case where we would want to modify the returned list from the Configuration interface we're accessing; however in case those situations do in-fact exist, I've made the decision to mark the return values of those methods as Unmodifiable so that there are no confusions in the future when the returned list throws an UnsupportedOperationException

* Provide class parameter in Configuration#getList

Otherwise, it's impossible to actually check if the on-disk configuration values are actually of the same type as/a subclass of what the plugin is expecting in the implementation.

* State that Configuration#getList will return an empty list if it fails

I don't think it would go particularly well if we were to return a list of Objects when we have a parameterized method. Additionally, how would components of the plugin respond to being given a list of Objects instead of whatever type they were expecting? This should be a better fail-safe solution compared to what we were previously going to do.

* Return an optional in Configuration#get if something went wrong

* Add class parameter to Configuration#get

* Update JavaDoc of Configuration#getList to reflect new parameter

* Remove final modifier from parameter

* Add class parameter to Configuration#getOrDefault

* Fix misspelled JavaDoc tag

* Partially implement a wrapper over FileConfiguration that implements our Configuration

* Fix codestyle violation

* Add copyright header & change package

* Add code for WrappedBukkitConfiguration#getList and WrappedBukkitConfiguration#get
2023-08-11 14:01:19 -05:00
EnZaXD
086e5ca72f
Added copyright notice to all class files (#23)
* Pushed copyright configuration to all classes

* Removed duplicated copyright headers
2023-08-11 19:41:38 +01:00
Paldiu
f236ea261a
Merge pull request #22 from AtlasMediaGroup/kitchen-sink
Merge downstream into implementations
2023-08-11 13:18:09 -05:00
Paldiu
e3807e29d8
Merge pull request #19 from FlorianMichael/Implementations
Merge dev into production
2023-08-11 13:17:21 -05:00
EnZaXD
31d52af6bc
Merge branch 'AtlasMediaGroup:Implementations' into Implementations 2023-08-11 20:16:20 +02:00
Eva
3e8c63221d
Overhaul of Patchwork and Registration system, fix-up for all plugin.yml files and removal of .negates(0 and .value() from DefaultNodes in turn for the .expiry() system removing the redundancies. (#21)
Co-authored-by: eva <66324759+evax64@users.noreply.github.com>
2023-08-11 13:15:36 -05:00
FlorianMichael
6ecf945396 Merge branch 'kitchen-sink' into Implementations 2023-08-07 02:08:07 +02:00
Paldiu
368f3cae12
Modify banner formatting 2023-08-06 17:44:39 -05:00
Paldiu
60b63b5857
Fix readme incorrectly stating "proof of concept" 2023-08-06 17:41:41 -05:00
Paldiu
9bb7ebb770
Changed phrasing to match latest changes. 2023-08-06 17:07:49 -05:00
EnZaXD
169e387a5a
Bump Gradle to latest, updated Dev list (#18)
* Bump Gradle to latest, updated Dev list

* Thanks git
2023-08-03 21:58:40 +01:00
Paldiu
21463c50fe
Migrates the entire package nomenclature to be more direct and straightforward. (#17)
Signed-off-by: Paul Reilly <pawereus@gmail.com>
2023-08-01 22:34:18 -05:00
EnZaXD
e1a6b5e587
Implemented Fuckoff command from TFM back (#16)
* Implemented Fuckoff command back from TFM

* Actual use the radius field

* Change default radius to 15

* Renamed Fuckoff#pushPlayers

* Use command API properly
2023-08-01 09:15:46 -05:00
Paldiu
dd4e1bbda0
Merge pull request #13 from FlorianMichael/command-spy
Implemented basic command spy
2023-08-01 09:09:42 -05:00
FlorianMichael
58bcc1c2d6
Use command API properly 2023-08-01 13:12:43 +02:00
Paldiu
b01e8352bf
Merge pull request #15 from FlorianMichael/plugin-scope
Add description to all modules of the project
2023-07-31 23:36:50 -05:00
FlorianMichael
bbc6e76908
Add description to all modules of the project 2023-07-31 13:17:34 +02:00
EnZaXD
c5fbafe015
Make all command constructors public (#14) 2023-07-31 11:02:37 +00:00
FlorianMichael
1ca7b9edc7
Make CommandSpyCommand constructor public 2023-07-31 12:58:44 +02:00
FlorianMichael
722b1b72a4
Implemented basic command spy 2023-07-31 12:53:20 +02:00
Paldiu
d9c11fda54
Merge pull request #11 from AtlasMediaGroup/fix/transaction-balance-minimum
Flip greater than symbol to lesser than symbol in SimpleTransactor
2023-07-30 10:14:15 -05:00
Allink
4f4d885003
Flip greater than symbol to lesser than symbol 2023-07-29 02:16:07 +00:00
Paldiu
2ac955cc0a
Merge pull request #10 from AtlasMediaGroup/kitchen-sink
Update from development
2023-07-26 08:29:21 -05:00
Paldiu
5826438721
Update README.md 2023-07-24 16:50:30 -05:00
Paldiu
7e5dbb9a10
Update logo image 2023-07-24 16:37:39 -05:00
Paldiu
0c9aa3c9fe
Add new line at EOF to test Git2Cord WebHook 2023-07-24 14:00:31 -05:00
Paul Reilly
6842cb2792 Adjusted Command Processing
Completion annotations have been moved to top level, from per method, for a much clearer understanding of how the annotation should be used.
2023-07-23 02:15:12 -05:00
Paul Reilly
2b12f4eebb hotfixes 2023-06-25 21:46:01 -05:00
Paul Reilly
d0e8d6e361 pbs kids 2023-06-25 01:10:30 -05:00
Paul Reilly
fb97a8e65b updates 2023-06-21 15:45:55 -05:00
Paul Reilly
09699ccabb AdminChat 2023-06-20 09:24:28 -05:00
Paul Reilly
e18a0c0808 Minor fixes 2023-06-10 21:41:14 -05:00
Paldiu
9ef703ae7b
Merge pull request #3 from AtlasMediaGroup/Displayable-GUI-API
- Implement GUI API
- Documentation for a majority of the API in Patchwork
- Implement Particle API
- Implement interpolation utils for color interpolation (blocks, particles, and text applicable)
- Finish Command API
- Remove Banning API
- Created utility classes for various features of the Kyori Adventure API
- Removed TFM
2023-06-09 21:22:35 -05:00
Paul Reilly
a22f7fb215 Super edited with Notepad++ 2023-06-09 21:18:29 -05:00
Paul Reilly
de1da2bd61 Edited with Notepad++ 2023-06-09 21:17:42 -05:00
Paul Reilly
bacf6e8818 Beans 2023-06-09 21:11:36 -05:00
Paul Reilly
f459842eaf Some more updates 2023-06-09 14:15:53 -05:00
Paul Reilly
6631aebaa0 Merge branch 'kitchen-sink' into Displayable-GUI-API 2023-06-09 13:25:18 -05:00
Paul Reilly
09c511ef34 Additional documentation 2023-06-09 13:23:06 -05:00
Paldiu
f41889e7df
Merge pull request #8 from AtlasMediaGroup/feat/doc-economy
Add documentation to economy-related interfaces
2023-06-09 13:22:28 -05:00
Allink
6ccaf5eb25
Add documentation to economy-related interfaces 2023-06-09 17:24:12 +01:00
Paul Reilly
1ea106d999 Documentation, Add BouncyPads 2023-06-08 10:02:20 -05:00
Paul Reilly
27dafd69e6 Fixings! 2023-06-04 21:30:17 -05:00
Paldiu
cccf76d077
Update README.md 2023-06-04 19:01:31 -05:00
Paldiu
cb96e5b72d
Update README.md 2023-06-04 18:57:33 -05:00
Paldiu
ef3acca330
Merge pull request #6 from AtlasMediaGroup/videos-stupid-contributions
Removes old unused UserData methods
2023-06-02 18:09:15 -05:00
Paldiu
6edf320bf7
Merge branch 'Displayable-GUI-API' into videos-stupid-contributions 2023-06-02 18:08:55 -05:00
Paul Reilly
e160868967 Reformatting 2023-06-02 17:58:08 -05:00
Video
ccb456ea0c Removes old unused UserData methods 2023-06-02 16:57:26 -06:00
Paldiu
9a56a404af
Merge pull request #5 from AtlasMediaGroup/videos-stupid-contributions
Fixes existing commands, adds /cage command
2023-06-02 17:31:07 -05:00