Commit Graph

431 Commits

Author SHA1 Message Date
Christian Koop
6453c7b6f6
Recode BlockUtils#updateAdjacentComparators to work in older versions
The old implementation relied on methods that were only available in newer versions - This should be more future proof
2021-11-01 22:27:12 +01:00
Christian Koop
7c6817c470
Minor cleanup of #27
* Code style
* Method name and access modifier
* JavaDoc
2021-11-01 20:29:16 +01:00
Christian Koop
af9def96b3
Merge branch 'Exortions/SongodaCore:master' into development (#27) 2021-11-01 20:18:04 +01:00
Exortions
3aaed3bcde
Remove duplicate code
This commit removes the duplicate error message run when the plugin crashes and turns it into one method 'crash'. This method takes in a throwable, which will be printed once the error message is logged.
2021-11-01 11:23:42 -07:00
Christian Koop
e379ae601d
Fixed typo 2021-10-30 23:45:22 +02:00
Christian Koop
ba7054c1e7
Fix failing test cases
The disabled test cases have been written without looking at the implementation - But it looks like the implementation is faulty and needs a patch.

We'll take a look at a later time and decide about backwards compatibility etc.
2021-10-30 15:19:53 +02:00
Christian Koop
b4d1f4fc60
Implement first unit tests 2021-10-30 14:53:23 +02:00
Christian Koop
93fbc6463f
General code cleanup [DEV-2]
Hopefully no breaking changes
2021-10-30 14:10:57 +02:00
Christian Koop
97feaf3b9c
Removes @author and @since from class comments
These kind of information can easily be found in git/on GitHub
2021-10-30 14:10:22 +02:00
Christian Koop
39bdd862fb
Apply new code style [DEV-2] 2021-10-30 14:10:22 +02:00
Christian Koop
749c3a9a28
Version 2.5.13 2021-10-27 19:51:54 +02:00
Christian Koop
aa587361ed
Version 2.5.13-SNAPSHOT 2021-10-26 23:05:54 +02:00
Christian Koop
6a858c9c30
DataManagerAbstract: Add single threaded task queue (experimental)
We had some reports about server outright crashing because EpicFurnaces (maybe others too) because there are too many async tasks queue at once. Every async task scheduled to spigot (as of 1.17) creates a new thread

This should help a bit and the `FIXME` has to be taken care of when more time is at hand... The whole data storing stuff is just bad which shows as soon as servers (or the plugin use e.g. many furnaces) get bigger... (am a bit annoyed 🤷)
2021-10-26 23:05:37 +02:00
Christian Koop
0bdb0af890
Merge branch 'development' 2021-10-26 21:19:53 +02:00
Fernando Pettinelli
fb8d38f54b Version 2.5.12 2021-10-16 21:37:26 -03:00
Christian Koop
9605ac5ded
Prevents #getRandomPlayer from throwing an Exception on 0 online players 2021-10-02 14:58:14 +02:00
Christian Koop
ce72ab7291
Fix numbers being formatted wrong on some machines [DEV-5]
My system is configured to use German causing the method to use the wrong decimal seperator for the given format
2021-10-02 11:27:18 +02:00
Fernando Pettinelli
820b7ffbd3 Version 2.5.11 2021-09-30 13:03:36 -03:00
divios
c0a2bc8cc5
Added asyncFuture
Added a method to run a task async but return a CompletableFuture. Useful if you want the task to be asynchronous but also wait for it to finish and concatenate another task or more functionalities with the CompletableFuture API
2021-09-12 11:08:08 +02:00
Christian Koop
799bf30651
Version 2.5.10 2021-08-30 21:53:47 +02:00
Fernando Pettinelli
a601b86d68 Added Residence support. 2021-08-29 17:44:17 -04:00
Fernando Pettinelli
6951a7f4ad Merge remote-tracking branch 'origin/development' into development 2021-08-29 16:03:20 -04:00
Fernando Pettinelli
3ee798fe23 Add PIGLIN_BRUTE_SPAWN_EGG material. 2021-08-29 16:03:08 -04:00
Christian Koop
5921be70bb
Version 2.5.9 2021-08-29 15:49:06 +02:00
Christian Koop
2ed245389f
Allows respecting Unbreaking-Enchantment [SD-8182] 2021-08-29 15:49:06 +02:00
Christian Koop
03e2360a98
Updated logging to mostly use java.util.logging.Logger [SD-8645] 2021-08-29 13:49:01 +02:00
Christian Koop
c5569adc10
Change formatting a bit 2021-08-18 20:56:05 +02:00
ajgeiss0702
9f5daa2503
Don't try to change item meta when there is none 2021-08-06 20:40:56 -07:00
Christian Koop
60ceac5eb6 Version 2.5.8 2021-07-08 17:50:13 +02:00
Christian Koop
8eefbce68d Change dependency com.github.Zrips.Jobs version from LATEST to v4.17.2 2021-07-08 17:50:13 +02:00
Christian Koop
6dbf806e7d EditorConfig 2021-07-08 15:37:37 +02:00
Christian Koop
a73ed7908e Update pom.xml files and project structure
* Should fix IntelliJ sometimes not finding classes
* Should make things easier to understand and maintain
* Rename `LICENSE.md` to `LICENSE`
2021-07-08 15:37:37 +02:00
Christian Koop
f5bf5903c7
Dependency: Update mcMMO from v2.1.50 to v2.1.200
This fixes failing maven builds reporting a http repo being used and blocked - As only the patch version has been increased, there should be no problem related to this update (Core's only getting compiled against it's API anyway)
2021-07-06 13:15:17 +02:00
Fernando Pettinelli
e6398bca1f Version 2.5.7 2021-06-30 10:24:50 -04:00
Brianna
dddbc32459 version 2.5.6 2021-06-21 17:18:51 -05:00
Brianna
711125aa67 Added support for Worldborders in 1.17 2021-06-21 17:18:18 -05:00
Brianna
ebf0d06434 version 2.5.5 2021-06-13 18:08:18 -05:00
Brianna
c861aafe82 Added Lootables to SongodaCore. 2021-06-13 18:04:16 -05:00
Brianna
7430fcc34a version 2.5.4 2021-06-13 16:58:57 -05:00
Brianna
947e0d5b2d version 2.5.3 2021-06-13 13:23:29 -05:00
Brianna
76ea7f128f Ease of access. 2021-06-13 13:23:21 -05:00
Brianna
a608ac4cc7 version 2.5.2 2021-06-13 10:26:16 -05:00
Brianna
7c0ce2505c Use JDK 16 on the 1.17 module while using JDK 8 on everything else 2021-06-13 10:26:08 -05:00
Brianna
ff1c267de7 version 2.5.1 2021-06-13 10:10:46 -05:00
Brianna
b27d07dc47 version 2.5 2021-06-12 20:15:56 -05:00
dependabot[bot]
1ee756504a Bump snakeyaml from 1.25 to 1.26 in /Core
Bumps [snakeyaml](https://bitbucket.org/asomov/snakeyaml) from 1.25 to 1.26.
- [Commits](https://bitbucket.org/asomov/snakeyaml/branches/compare/snakeyaml-1.26..snakeyaml-1.25)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-12 20:10:36 -05:00
Brianna
7ab0c4d106 1.17 Support 2021-06-12 20:04:20 -05:00
Brianna
3d415d6da6 Removed some illegal access reflection. 2021-06-09 12:33:53 -05:00
Brianna
e0bed2d80e Added WorldBorder support. 2021-06-01 16:14:23 -05:00
Brianna
4c4c80734c version 2.4.57 2021-06-01 12:13:43 -05:00
Brianna
ca4da1f748 Added String equation handler. 2021-06-01 12:13:39 -05:00
Brianna
462479d476 version 2.4.56 2021-05-27 17:16:49 -05:00
Brianna
07cb02a4ca Removed Songoda ads. Ugh. 2021-05-27 10:39:37 -05:00
Brianna
f2fb4bb65e version 2.4.55 2021-05-27 09:57:21 -05:00
Christian Koop
3d5ab04c79 CompatibleParticleHandler: Add support to send to a specific player 2021-05-27 09:56:20 -05:00
Brianna
1dd3f00978 Added WorldCore with some spawner functions. 2021-05-27 09:56:15 -05:00
Brianna
a818050daf Moved the compatibility API to its own module. 2021-05-27 09:56:04 -05:00
Brianna
07eb0d5710 Stacker plugin hook adjustment. 2021-05-27 09:55:55 -05:00
Brianna
853c6b2b40 version 2.4.54 2021-05-27 09:55:02 -05:00
Brianna
108ec6a2ed Allow updating holograms in bulk
This improves performance when using *HolographicDisplays* drastically on many holograms.

Plugins like *EpicAnchors* might need to manage and update a lot of holograms frequently, causing SongodaCore to fetch all the holograms from the external API (My test setup reduced the time needed to update from ~30ms to ~1ms)
2021-05-27 09:53:45 -05:00
Christian Koop
e218704d5b Fix bulk hologram update
Fixing a bug introduced in 1474980b63a9d4dd26bd84a5e433e585b54d51d5 causing some holograms to not update properly
2021-05-27 09:53:02 -05:00
Christian Koop
1db6c9bf79 Version 2.4.53 2021-05-27 09:52:08 -05:00
Christian Koop
dde2fd36c6 Allow updating holograms in bulk
This improves performance when using *HolographicDisplays* drastically on many holograms.

Plugins like *EpicAnchors* might need to manage and update a lot of holograms frequently, causing SongodaCore to fetch all the holograms from the external API (My test setup reduced the time needed to update from ~30ms to ~1ms)
2021-05-27 09:52:04 -05:00
Christian Koop
040eb14982 Fix NPE when using uppercase color chars in lang files (SD-7134) 2021-05-27 09:51:58 -05:00
Fernando Pettinelli
5b5bb17df9 Version 2.4.52 2021-04-15 12:19:12 -04:00
Fernando Pettinelli
17077dff78 Fix NoSuchMethodError on older versions. 2021-04-15 12:18:50 -04:00
Brianna
398d47c915 version 2.4.51 2021-04-12 13:03:52 -05:00
Fernando Pettinelli
9b9f0b9a52 Version 2.4.50 2021-04-11 15:20:47 -04:00
Christian Koop
f545dcc2d9
Fix charset not being detected correctly on UTF-8 files (SD-7843)
With this patch, the tested bytes are whole words/lines. This ensures that multi-byte characters (like in UTF-8) are not detected as malformed input and `ISO-8859-1` being detected because it just doesn't care about anything and replaces everything it doesn't know with something it does... Why no error? Would like to know that too :/

This *should* not be able to break existig files or plugins.
2021-04-06 18:46:56 +02:00
Christian Koop
21f8487988
Code cleanup and optimization
* I replaced some calls to the *Java Stream API*
* Using `new ArrayList<>()` instead of `new ArrayList()` because *SongodaCore* is compiled with Java 8
2021-04-06 18:46:56 +02:00
Brianna
bb7dbefb13 version 2.4.49 2021-04-05 13:49:27 -05:00
Brianna
e68909cddb Cleanup for PR. 2021-04-05 13:49:12 -05:00
Luis
e06be28709 Probably fix for build flag checks in WorldGuard? 2021-04-05 10:16:34 -05:00
Brianna
070dc30d7b version 2.4.48 2021-04-04 22:59:32 -05:00
Brianna
e264b3af65 Added Songoda+ ads. 2021-04-04 22:59:05 -05:00
Brianna
c47e864fa7 version 2.4.47 2021-02-25 11:47:21 -06:00
Brianna
2435d70236 Added quick access to the build flag. 2021-02-25 11:46:47 -06:00
Brianna
d77d723dc6 version 2.4.46 2021-02-22 09:50:36 -06:00
Brianna
6b9380fd50 Added compatibility with a 1.16.5 changed field name. 2021-02-22 09:50:22 -06:00
Brianna
fdbe0da191 version 2.4.45 2021-02-19 12:45:04 -06:00
Brianna
cca02a4777 Better compatibility support. 2021-02-19 12:43:59 -06:00
Brianna
f33b26c26e version 2.4.44 2021-02-08 11:24:27 -06:00
Brianna
5f6d736f72 Fixed CMI Holograms compatibility. 2021-02-08 11:24:18 -06:00
Brianna
c75048a0f0 Made the reset function more functional. 2021-02-07 09:51:54 -06:00
Fernando Pettinelli
b5eb651c59 Version 2.4.43 2021-02-07 09:51:35 -06:00
Fernando Pettinelli
917e62b4d7 Fixed BentoBox protection. 2021-02-07 09:51:31 -06:00
Fernando Pettinelli
99807da9c4 Version 2.4.42 2021-02-07 09:50:40 -06:00
Fernando Pettinelli
96249b1c2f Removed Towny protection hook. 2021-02-07 09:50:35 -06:00
Brianna
6374c7181c version 2.4.41 2021-01-22 07:59:34 -06:00
Brianna
3bbec08295 Allow the * value to work with numerical permissions. 2021-01-22 07:58:57 -06:00
Fernando Pettinelli
ba1e08d808 Version 2.4.40 2021-01-21 22:45:07 -03:00
Fernando Pettinelli
f6df166c5c Changed action type in Towny hook. 2021-01-21 21:51:45 -03:00
Brianna
5154324e78 version 2.4.39 2021-01-21 10:08:58 -06:00
Brianna
311a12d719 Destroy items with max durability. 2021-01-21 10:08:51 -06:00
Fernando Pettinelli
a4b7638c9e Version 2.4.38 2021-01-19 12:25:03 -06:00
Fernando Pettinelli
86bffc859c Added BentoBox protection support, and dodged an NPE in GriefPrevention. 2021-01-18 18:36:07 -03:00
Brianna
44673e3ed0 version 2.4.37 2021-01-15 10:45:47 -06:00
Brianna
c593a52791 Updated to no longer use the private repo. 2021-01-15 10:45:28 -06:00
Fernando Pettinelli
793581a853 Version 2.4.36 2021-01-14 17:21:37 -06:00
Fernando Pettinelli
1873b2f647 Added Towny protection, and fixed UltimateClaims and Lands NPEs. 2021-01-14 17:21:33 -06:00
Brianna
32dfc01a2a version 2.4.35 2021-01-14 11:58:41 -06:00
Brianna
c7218310c5 Added some crop methods. 2021-01-14 11:58:10 -06:00
Fernando Pettinelli
c7582778a5 Version 2.4.34 2021-01-13 20:57:38 -03:00
Fernando Pettinelli
98b63d5e0a Fixed small issue with UltimateClaims hook. 2021-01-13 20:56:39 -03:00
Fernando Pettinelli
92f62e7536 Version 2.4.33 2021-01-12 15:10:29 -03:00
Fernando Pettinelli
fe7dcd80fe Added protection hooks. 2021-01-11 19:48:23 -03:00
Brianna
30f240cbfd version 2.4.32 2020-12-23 11:43:08 -06:00
Brianna
5593ea165c Take into account unbreaking when applying damage to an item. 2020-12-23 11:43:00 -06:00
Brianna
1d47767398 version 2.4.31 2020-12-22 11:24:43 -06:00
Brianna
8ecec60c5d Added the ability to move a button to more than one position. 2020-12-22 10:01:46 -06:00
Brianna
dae30dfaec version 2.4.30 2020-12-21 10:06:49 -06:00
Fernando Pettinelli
caf09d46a0 Add item serialize/deserialize methods. 2020-12-21 12:32:51 -03:00
Brianna
4043c285c2 Added timeout function to ChatPrompts. 2020-12-20 09:32:26 -06:00
Brianna
6f4daab348 Removed unused code. 2020-12-20 09:32:11 -06:00
Brianna
57cb6092a6 Format text using var args. 2020-12-17 15:30:05 -06:00
Brianna
7dd5f07404 Send multiple messages at once. 2020-12-17 15:29:52 -06:00
Brianna
6222a5cda9 Update after reset. 2020-12-17 15:29:42 -06:00
Brianna
382b2cca46 Remember the item that was where the page arrow was. 2020-12-17 15:29:32 -06:00
Brianna
2dacd8bc8d version 2.4.29 2020-12-16 10:02:05 -06:00
Brianna
720afba11e Added Text wrapping. 2020-12-16 10:02:05 -06:00
Brianna
11aa0352b4 version 2.4.28 2020-12-15 10:00:13 -06:00
Brianna
a6e725497a Added the ability to specify an amount for getItem. 2020-12-15 09:59:35 -06:00
Brianna
9d10a730d9 version 2.4.27 2020-12-14 15:24:09 -06:00
Brianna
29a1ce057e Added the ability to customize the row count. 2020-12-14 15:24:00 -06:00
Brianna
cb73819252 Revert "Added PreparedStatement queuing. "
This reverts commit 66c43f06d7.
2020-12-11 16:38:16 -06:00
Brianna
2f167e41b2 version 2.4.26 2020-12-10 09:08:45 -06:00
Brianna
66c43f06d7 Added PreparedStatement queuing. 2020-12-09 11:09:31 -06:00
Brianna
a7e55a9557 version 2.4.25 2020-12-07 11:44:54 -06:00
Brianna
7f3d59961a Added a notice to remind users that the /songoda command exists. 2020-12-07 11:44:47 -06:00
Brianna
35f3d381dc Removed the command and replaced it with an activation sequence. 2020-12-07 11:44:43 -06:00
Brianna
3935f920f9 Removed legacy code. 2020-12-07 11:44:38 -06:00
Brianna
4eae6a667e version 2.4.24 2020-12-01 12:50:34 -06:00
Brianna
dc4be7e93c Experimental CustomizableGUI. 2020-12-01 12:50:30 -06:00
Brianna
0168bcec94 version 2.4.23 2020-11-09 12:45:38 -06:00
Brianna
eb1f40f040 No hex codes in console. 2020-11-09 12:45:18 -06:00
Brianna
a42ed32460 version 2.4.22 2020-11-07 19:12:37 -06:00
Brianna
7e4e50fe1b Fixed an issue with specific versions. 2020-11-07 19:05:27 -06:00
Brianna
0fd9a8c11f version 2.4.21 2020-11-03 08:43:21 -06:00
Brianna
e767cdf552 Added support for 1.16.4. 2020-11-03 08:42:33 -06:00
Brianna
424330a5bf version 2.4.20 2020-10-30 14:57:59 -05:00
Brianna
4fba1f137f Better support for data values. 2020-10-30 14:53:23 -05:00
Brianna
b1693ac0e1 Added the ability to apply to a block. 2020-10-30 14:53:07 -05:00
Brianna
fd21196dd6 Added legacy block support for leaves. 2020-10-30 14:52:33 -05:00
Brianna
ab294628da Added data support. 2020-10-30 14:52:14 -05:00
Brianna
4483c751fd version 2.4.19 2020-10-29 13:32:03 -05:00
Brianna
c70fe2acfd Added the ability to identify compatible material from a falling block. 2020-10-29 13:31:58 -05:00
Brianna
c9f4876f29 Added the ability to check if a tool has the required durability. 2020-10-29 13:31:55 -05:00
Brianna
4df7618f96 version 2.4.18 2020-10-26 14:26:02 -05:00
Brianna
fe135a6274 Fixed an issue breaking support for core protect on 1.12. 2020-10-26 14:24:56 -05:00
Brianna
ac02498d42 version 2.4.17 2020-10-23 13:08:30 -05:00