Commit Graph
11 Commits
Author SHA1 Message Date
Andreas Troelsen 72bb017834 Fix maven-compiler-plugin configuration.
Apparently the whole `<release>` tag shebang doesn't work on jitpack.
Not sure where it comes from.
2021-12-05 13:57:20 +01:00
Andreas Troelsen 57bf8c6472 Add tests for delete session command.
This is just a single sunshine scenario test because that's all the
command supports right now. Issues #2 and #3 highlight some of the
problems with this command, and when those issues are tackled, tests
should be introduced along with the fixes.
2021-08-06 22:13:14 +02:00
Andreas Troelsen 066a15c2af Add query command tests.
Not a lot of variation in these commands, but the output is a little
difficult to write robust tests for because it's all stringly typed.
These tests will break pretty hard (or require lots of adapting) if we
introduce i18n.

The tests don't cover tab completion. That will have to come later.
2021-08-06 22:13:14 +02:00
Andreas Troelsen f96c69bb42 Add import/export command tests.
These are pretty much whitebox tests, so they don't really provide any
improvements to the architecture, but they do add a level of confidence
in terms of refactoring the somewhat unorthodox import/export structure.
2021-08-06 22:13:14 +02:00
Andreas Troelsen 7e08fde493 Pre-instantiate commands.
This commit makes use of the `register(Command)` method in MobArena's
command handler to pre-instantiate the command classes and inject the
main plugin instance in their constructors. This allows us to get rid of
the horrible Singleton anti-pattern.

Closes #6
2021-08-06 22:12:56 +02:00
Andreas Troelsen 1756a08318 Tag along on MobArena's /ma reload command.
This commit adds to the main plugin class a tiny event listener that
listens for MobArena's post-reload event and responds by calling the
internal reload method. This gives us a super cheap way to support
reloads while giving server owners one fewer commands to worry about.

Closes #11
2021-08-01 19:28:37 +02:00
Andreas Troelsen 9f90045f3c Bump MobArena version to commit hash b99713f1.
This allows us to make use of the new upstream functionality before a
new named release is ready. This particular hash contains both the new
reload events as well as the new command registration overload.
2021-08-01 19:21:33 +02:00
Andreas Troelsen 26cb8474db Add bStats metrics.
Introduces the bStats metrics library to the plugin. This first commit
contains just a single custom chart, the `store_type`, which will help
figure out which stores to focus on for performance optimization and
such.
2021-07-06 19:08:31 +02:00
Andreas Troelsen 8cbdb4d9c6 Use MobArena's global messenger for query commands.
Changes the command output in the query commands to the same approach
used in the import/export and delete commands for better consistency
(and arguably prettier output).

It could probably still do with some fine tuning or maybe custmization
options, but that's out of scope for this particular issue.

Closes #1
2021-07-01 23:06:05 +02:00
Andreas Troelsen aa08925f24 Clarify first run procedure in README. 2021-07-01 00:17:56 +02:00
Andreas Troelsen d4a93071fe Initial commit. 2021-07-01 00:17:53 +02:00