Skip to content

Releases: srnyx/annoying-api

2.1.1: Fix Jitpack building

24 Apr 16:29
2ac9bdd
Compare
Choose a tag to compare

2.1.0: bStats, update checking, file options, & more

24 Apr 03:11
dd0ef1a
Compare
Choose a tag to compare
  • Add usage instructions for Maven by @MagicCheese1 in #2
  • Create qodana.yml
  • Update qodana.yml
  • Qodana fixes
  • Update plugin.yml by @clickednebula3 in #3
  • Remove @Contract from some methods
  • Update Gradle
    • At least parts of it, can't update to 8.1 entirely yet!
  • Update README.md links
  • bStats, update checking, file options, & more
    • Added bStats (bstats.org)
      • Added AnnoyingOptions#bStatsId
      • Added AnnoyingOptions#bStatsFileName
      • Added AnnoyingOptions#bStatsOptions
      • Added AnnoyingPlugin#bStats
      • Added bstats.yml
    • Added update checking
      • Added AnnoyingOptions#updateAvailable
      • Added AnnoyingOptions#updatePlatforms
      • Added AnnoyingPlugin#checkUpdate()
      • Added AnnoyingUpdate
    • Added AnnoyingUtility#getJson(String, String)
    • Renamed AnnoyingCommandRegister to CommandRegister
      • Was also optimized
    • Added AnnoyingFile(AnnoyingPlugin, String)
    • Added AnnoyingFile.FileOptions
      • Moved AnnoyingFile#canBeEmpty into this
    • Added AnnoyingResource.ResourceOptions which extends AnnoyingFile.FileOptions
      • Contains #createDefaultFile, which allows a default file that will always be updated to be created in a default folder in the plugin's folder
    • Added new default messages to messages.yml
      • Documentation has been moved to the GitHub
    • Removed commands and permissions from plugin.yml
    • Reformatted the Gradle build files
    • Adjusted example plugin to reflect new API changes
  • Bump version (2.1.0)

New Contributors

Full Changelog: 2.0.5...2.1.0

2.0.5: Fix AnnoyingFile issue

26 Jan 00:53
29b6f5e
Compare
Choose a tag to compare

Full Changelog: 2.0.4...2.0.5

2.0.4: Global placeholders & more

22 Jan 04:29
e8869e5
Compare
Choose a tag to compare
  • Remove non-shaded dependency examples
  • Global placeholders, AnnoyingFile changes, & more
    • Added Global placeholders
      • Removed AnnoyingOptions#colorLight
      • Removed AnnoyingOptions#colorDark
      • Added AnnoyingOptions#globalPlaceholders
      • Added AnnoyingPlugin#globalPlaceholders
      • Removed messages.yml#plugin.prefix
      • Added messages.yml#global-placeholders
    • Edited command/listener registration
      • Removed AnnoyingListener#register(Event)
      • Removed AnnoyingListener#unregister(Event)
      • Removed AnnoyingCommand#register
      • Removed AnnoyingCommand#unregister
    • Changed AnnoyingOptions#commands to AnnoyingOptions#commandsToRegister
    • Changed AnnoyingOptions#listeners to AnnoyingOptions#listenersToRegister
      • Added AnnoyingPlugin#registeredCommands
      • Added AnnoyingPlugin#registeredListeners
      • Added AnnoyingPlugin#unregisterListeners
      • Added AnnoyingPlugin#unregisterCommands
    • Changed AnnoyingUtility#getPlayer(String) to AnnoyingUtility#getOfflinePlayer(String)
    • AnnoyingCommand#onTabComplete(AnnoyingSender) now returns Collection<Object>
    • Added AnnoyingSender#isPlayer
    • Edited AnnoyingCommandRegister
      • Removed #minecraftServerClass
      • Removed #getServerMethod
      • Removed #vanillaCommandDispatcherField
      • Added #commandDispatcher
    • Edited AnnoyingDependency
      • Added #file
      • Removed #getFile
    • Made AnnoyingFile into an abstract class instead of an interface
    • Made changes to example plugin in relation to API changes
  • Changed AnnoyingCommand#onTabComplete
    • Now returns a Collection<String> instead of a Collection<Object>
  • Fix global placeholders
  • Remove AnnoyingOptions#prefix
    • Replaced by global placeholders which were added in an earlier commit

Full Changelog: 2.0.3...2.0.4

2.0.3: Reworked AnnoyingMessage replacements

04 Jan 22:33
8e1935b
Compare
Choose a tag to compare

Full Changelog: 2.0.2...2.0.3

2.0.2: AnnoyingMessage and AnnoyingSender changes

29 Dec 20:55
5f1b05d
Compare
Choose a tag to compare
  • New AnnoyingMessage#DefaultReplaceType
    • Added BOOLEAN default replace type
    • Renamed DECIMAL default replace type to NUMBER
    • Renamed AnnoyingUtility#formatDouble(double, String) to AnnoyingUtility#formatNumber(Number, String)
    • Adjusted messages.yml to reflect new changes
  • Adjusted comments in build.gradle.kts
  • Added new AnnoyingSender methods
    • Added #checkPlayer() to check if the CommandSender is a player, if they aren't, it'll send the AnnoyingOptions#playerOnly message
    • Added #checkPermission(String) to check if the CommandSender has the specified permission, if they don't, it'll send the AnnoyingOptions#noPermission message
    • Both AnnoyingSender constructors now have an AnnoyingPlugin parameter (for the new methods)
  • Bump version (2.0.2)

Full Changelog: 2.0.1...2.0.2

2.0.1: AnnoyingMessage fixes and improvements

29 Dec 01:09
075a0ba
Compare
Choose a tag to compare
  • AnnoyingMessage fixes and improvements
    • Added more Javadocs for stuff (mainly in example-plugin)
    • Added BroadcastType#isTitle()
    • Added ReplaceType interface to create new replace types (such as DefaultReplaceType)
    • No longer using switch for #broadcast(BroadcastType, Integer, Integer, Integer) to improve variables
    • Renamed ReplaceType to DefaultReplaceType and now implements the new ReplaceType
    • Fixed incorrect %command% replacement when there weren't any arguments
    • Removed #replaceParameter(Object, String, ReplaceType), replace type operations are now stored in their enum using BinaryOperator
  • Bump version (2.0.1)

Full Changelog: 2.0.0...2.0.1

2.0.0: Reorganized project

27 Dec 17:11
6d2a12b
Compare
Choose a tag to compare

This update removes the requirement for the plugin to be installed separately. Plugins using the API should now shade it into their plugin (make sure to relocate it to avoid conflicts). Read more under Multi-Gradle project(s)

Full Changelog: 1.1.11...2.0.0

1.1.11: Adjusted dependency handling

18 Dec 20:36
0053792
Compare
Choose a tag to compare

Full Changelog: 1.1.10...1.1.11

1.1.10: Removed DiscordSRV dependency

10 Dec 20:56
2429797
Compare
Choose a tag to compare
  • Fixed AnnoyingUtility#getFileNames(AnnoyingPlugin, String) (made it static)
  • Removed AnnoyingMessage#send(TextChannel)
  • Removed DiscordSRV dependency and repositories

Full Changelog: 1.1.9...1.1.10