Skip to content

Releases: DatAsianBoi123/CommandCore

v2.1.0

02 Nov 02:31
11865c3
Compare
Choose a tag to compare

Breaking Changes

  • Class command.CommandSource got moved to command.source.CommandSource

New features

  • Created many new argument types
    • WORLD - a loaded world
    • ENTITY - any entity
    • LIVING_ENTITY - any living entity
    • SPAWNABLE_ENTITY - any entity that is not a player
    • LOOT_TABLE - a loot table
  • Created 2 new command sources
    • Locatable - any command sender that can be located, like an entity or a command block
    • Command block - a command block

Improvements

  • Greatly improved error messages
    Old error:
    old error
    New error:
    new error
  • CommandCore#createSource is now an actual factory method

Bug fixes

  • Fixed bug with commands without descriptions
  • Gave the created root command a description if the root command isn't in your plugin.yml

v2.0.0

26 Jul 19:19
Compare
Choose a tag to compare

Full Changelog

  • ArgumentType's now return a Result when parsing
  • CommandNodes's now return a Result when executing
  • Changed how arguments are read by using an Arguments class
  • Created an InitOptions class that's used when initializing CommandCore
  • Created an ArgumentReader interface that allows arguments to contain multiple spaces
  • Removed CustomArgumentType to force users to create separate classes for each ArgumentType
  • Renamed Impl classes
  • Removed the source generic type for all CommandNode's
  • Added support for command aliases
  • Created custom TabComplete class that is returns when tab completing
  • Removed CommandOutput and used Result instead
  • Separated the command generated by a CommandBuilder into its own class
  • Created require methods that all CommandLinks can use
  • Created a CommandSource class that can be used to get a command's sender
  • Fixed many bugs
  • Cleaned up lots of code and created checks for almost everything

v1.0.2

28 Jun 23:51
Compare
Choose a tag to compare

Added javadocs, and fixed some bugs with tabcompletions

v1.0.1

28 Jun 23:51
Compare
Choose a tag to compare

Fixed a bug that disallowed users to create a custom argument type.

v1.0.0

28 Jun 23:51
Compare
Choose a tag to compare

Initial Release