Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb77193fbd | ||
|
|
2c65d88c62 | ||
|
|
627205d39a | ||
|
|
3f7796772e |
@@ -9,8 +9,12 @@ It hooks into MobArena's command handler to provide commands for querying and ma
|
|||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
Download a copy of the latest MobArenaStats build and place it in your server's `plugins` folder.
|
Download a copy of MobArenaStats from one of these release channels:
|
||||||
You can grab a build from the _Artifacts_ section of the latest run of the [build workflow](https://github.com/mobarena/MobArenaStats/actions/workflows/build.yml) in GitHub Actions, or you can join the MobArena Discord server and grab one from the `#test-builds` channel.
|
|
||||||
|
- Stable (recommended): [Latest release](https://github.com/mobarena/MobArenaStats/releases/latest)
|
||||||
|
- Dev (experimental): [Latest build](https://github.com/mobarena/MobArenaStats/actions/workflows/build.yml)
|
||||||
|
|
||||||
|
Place the jar-file in your server's `plugins` folder like you would any other plugin.
|
||||||
|
|
||||||
Start your server and let the plugin load.
|
Start your server and let the plugin load.
|
||||||
It will generate a default `config.yml` file and set up a default SQLite data store.
|
It will generate a default `config.yml` file and set up a default SQLite data store.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.mobarena</groupId>
|
<groupId>org.mobarena</groupId>
|
||||||
<artifactId>mobarena-stats</artifactId>
|
<artifactId>mobarena-stats</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-junit-jupiter</artifactId>
|
<artifactId>mockito-junit-jupiter</artifactId>
|
||||||
<version>3.11.2</version>
|
<version>3.12.2</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@@ -70,8 +70,10 @@ class SchemaMigrator {
|
|||||||
// (available via the underlying JDBC connection object) to find
|
// (available via the underlying JDBC connection object) to find
|
||||||
// out if the schema migrations table exists.
|
// out if the schema migrations table exists.
|
||||||
Connection connection = handle.getConnection();
|
Connection connection = handle.getConnection();
|
||||||
|
String catalog = connection.getCatalog();
|
||||||
|
String schema = connection.getSchema();
|
||||||
DatabaseMetaData meta = connection.getMetaData();
|
DatabaseMetaData meta = connection.getMetaData();
|
||||||
try (ResultSet tables = meta.getTables(null, null, "schema_migrations", null)) {
|
try (ResultSet tables = meta.getTables(catalog, schema, "schema_migrations", null)) {
|
||||||
while (tables.next()) {
|
while (tables.next()) {
|
||||||
String name = tables.getString("TABLE_NAME");
|
String name = tables.getString("TABLE_NAME");
|
||||||
if (name.equals("schema_migrations")) {
|
if (name.equals("schema_migrations")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user