Skip to content

Releases: Paul2708/simple-commands

JitPack Building Issues

25 Mar 20:49
Compare
Choose a tag to compare

This small update addresses #75. It was not possible to use simple-commands because JitPack uses Java 8 by default. However, simple-command requires Java 14.

Now, it should be again possible to use simple-commands via JitPack as described in the README.
Thanks for pointing this out, @LittleHillMYR!

Introducing sub commands

01 Sep 15:00
b84c6ef
Compare
Choose a tag to compare

This update mainly introduces sub commands.
The @Command annotation has a new field called parent. It's a string array that represents the command path.
Note: I didn't have a lot time to test sub commands especially in combination with optional commands. If you find any issues, please report them.

Example usage:
The following code snippet represents the minecraft commands: /warp, /warp create [name], /warp delete [name], /warp delete all.

@Command(name = "warp")
public void warp(Player player) {
  // ...
}

@Command(name = "create", parent = {"warp"})
public void create(Player player, String name) {
  // ...
}

@Command(name = "delete", parent = {"warp"})
public void delete(Player player, String name) {
  // ...
}

@Command(name = "all", parent = {"warp", "delete"})
public void deleteAll(Player player) {
  // ...
}

You can get the newest version by JitPack (see readme).

Breaking changes

  • default permission changed from operator to none!

Additions

  • permission constants Command.OP_PERMISSION and Command.NONE_PERMISSION
  • unit tests for command delegation, matching, optional commands, etc. (cf. test-directory)
  • introducing sub commands (cf. #71)
  • maven build cache to speedup builds
  • MapLanguageProvider to provide messages in-code (thanks to @RealCerus for his contribution)

Fixes

  • OP permission check

Bug fixes

14 Apr 17:29
9477ab3
Compare
Choose a tag to compare

This update provides mainly two bug fixes: build issues and @Optional command annotation.
I got inspired by mela-commands - a general purpose command parsing & executing framework. So check it out as well.

You can get the newest version by JitPack (see readme).

Changes

  • dependency updates
    • Spigot: from 1.13 to 1.15.2
    • Java: from 8 to 14
    • JUnit: from 4 to 5

Additions

  • symbols in message resources

Fixes

  • #49 (update versions & build failure)
  • #56 (optional argument matching)

Optional arguments and more command arguments

31 Oct 17:41
d1c8829
Compare
Choose a tag to compare

This update adds some new spigot command arguments, fixes some bugs and supports optional command arguments.

Hacktoberfest
According to the Hacktoberfest I want to thank @Stupremee and @romangraef for their (helpful!) contributions. 🎉

Important Changes:

Other Changes:

  • added code of conduct (default one) to improve the project rating (community recommendation)
  • fixed plugin.yml of example plugin by changing api-version from 1.14 to 1.13
  • added note in contributing guidelines:

Switch to development branch by git checkout development.

New arguments and bug fixes

12 Oct 18:04
710428b
Compare
Choose a tag to compare

This small update adds some new spigot command arguments, fixes some bugs and improves small things.

Hacktoberfest
According to the Hacktoberfest I want to thank @RealCerus for his contribution. 🎉

Important Changes:

  • added World, Entity, GameMode and Location argument (implemented by @RealCerus)
  • added their message resources
  • message resources gets encoded in UTF-8 now (special chars work now)
  • added contribution guidelines

Other Changes:

  • command override works (e.g. /help, other bukkit default commands) (by default, no changes made)
  • command usage contains spaces between the command arguments (e.g. /test [Int][Int] -> /test [Int] [Int])
  • plugin.yml of Example-Plugin got updated
  • fixed typos in readme (thanks to @Leon-DE) 👍

Language Update

28 Sep 17:14
06267f4
Compare
Choose a tag to compare

This small update adds language loading by file to the framework.

Changelog:

  • added javadoc-plugin to create javadoc on build
  • load resource bundle by file using LanguageSelector#loadByFile(String)
  • Checkstyle will not fail on build any longer (but still on mvn checkstyle:check)
  • updated pull request template and README details

CI/CD Update

21 Sep 16:08
0cb64c7
Compare
Choose a tag to compare

This small update contains CI/CD updates.
Travis-CI is used to verify and test the built. JitPack is used to release the newsest jar.

Changelog:

  • translate method in language selector
  • print usage information instead parameter sizes
  • travis support
  • checkstyle plugin
  • changed spigot dependency from local to remote

First release

19 Sep 19:42
75ef158
Compare
Choose a tag to compare

This is the first working release, altough the version is 0.2.0.
An example plugin can be found here: https://github.com/Paul2708/simple-commands/tree/master/example