Changelog
- Add Hangar link
- Remove API custom bStats charts
- Add example PAPI expansion
- Remove
AnnoyingCooldown#getDuration()
- Instead, just made
type
public so the duration can be accessed usingCooldownType#getDuration()
- Instead, just made
- Add more
AnnoyingSender
utility methods- Added
AnnoyingSender#invalidArgument(Object)
to send theAnnoyingOptions#invalidArgument message
- Added
AnnoyingSender#invalidArguments()
to send theAnnoyingOptions#invalidArguments
message - Adjusted
ExampleCommand
to reflect the above changes
- Added
- Add PAPI dependency & utility modifications
- If a PlaceholderAPI expansion is set, PlaceholderAPI will be added as a dependency
- Moved
AnnoyingUtility
into theutility
folder - Added
MapUtility
to more easily create maps (in Java 8, Java 9+ can just use staticMap
methods)
- Clarify
AnnoyingDownload
use cases- Also removed PlaceholderAPI dependency adding if
AnnoyingOptions#papiExpansionToRegister
was set
- Also removed PlaceholderAPI dependency adding if
- Use
MapUtility
inExamplePlugin
- Make
papiExpansionToRegister
aSupplier<Object>
- This will fix plugins setting
papiExpansionToRegister
when PlaceholderAPI isn't installed on the server
- This will fix plugins setting
- Add
AnnoyingFile#getRecipe(...)
- Allows for you to get
Recipe
s from a YML file. You can see an example of the structure they should have in the example plugin's newconfig.yml
- Allows for you to get
- Add Javadocs to
MapUtility
- Make
commandRegister
static - Add more custom getters to
AnnoyingFile
getAttributeModifier(String, AttributeModifier)
getItemStack(String, ItemStack)
- Improved
getRecipe(String, String, Recipe)
- Added
MinecraftVersion
to easily track the server's Minecraft version (for reflection) - Added
ReflectionUtility
to manage class/method/constructor/etc... reflection - Adjusted
ExamplePlugin
to match new changes
- Add enchantment error logging for
AnnoyingFile
- Add enchantments using
ItemMeta
- Add missing Javadocs and warning suppressions
- Add
AnnoyingUpdate#checkUpdate()
- Fix
AnnoyingFile
formatting - Add
ItemDataUtility
and improveMinecraftVersion
ItemDataUtility
allows you to add data to item stacks across all versions from 1.11-1.19.3 using their respective data management systems- 1.13-1.13.1 uses lore to store data which is very unreliable, so a warning message has been added for these versions
- An example has been added in
ExampleListener
MinecraftVersion
now multiplies major version by10000
to avoid future conflicts
- Delete qodana.yml
- Delete qodana.yaml
- 1.8.8+ support and NBT API
- Fix incorrect annotation
- Fix
AnnoyingMessage
for console - Use new reflection organization
- Add support for
Cmd
in command class names- So now the API will also remove
Cmd
from the class name when generating the command's name when one is not manually specified - Example: Instead of
ShopCommand
you can now just doShopCmd
- So now the API will also remove
- Added
AnnoyingUtility#colorCollection(Collection<?)
- This allows you to translate the color codes for all objects in a collection.
AnnoyingUtility#color(String)
was also adjusted to allow for anObject
to be passed
- This allows you to translate the color codes for all objects in a collection.
- Add
Ref
before each reflected class - Fix #5
- Use new system for plugin platforms
- Had to do this because Hangar's API requires the author name :(
- Remove TODOs
- Update links to new format
- Bump version (3.0.0)
Full Changelog: https://github.com/srnyx/annoying-api/compare/2.1.2...3.0.0
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Metadata
Release channel
ReleaseVersion number
3.0.0Loaders
PaperPurpurSpigot
Game versions
1.8.8–1.19.4Downloads
268Publication date
May 29, 2023 at 11:40 PMPublisher
srnyx
Owner