mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-11-28 08:44:07 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5e511d8c3 | ||
|
|
7c666ca114 | ||
|
|
79c54203d3 |
No files matched your search
@@ -0,0 +1,54 @@
|
||||
name: Create Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+*'
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '11'
|
||||
|
||||
- name: Extract artifact ID and version from pom.xml
|
||||
run: |
|
||||
ARTIFACT_ID=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.artifactId}' --non-recursive exec:exec)
|
||||
VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
||||
echo "ARTIFACT_ID=$ARTIFACT_ID" >> $GITHUB_ENV
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn clean install --settings settings.xml --batch-mode -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
|
||||
|
||||
- name: Create GitHub Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
body: |
|
||||
Changes in this Release
|
||||
- Add a summary of changes or refer to the changelog.
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
- name: Upload JAR Artifact to Release
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./target/${{ env.ARTIFACT_ID }}-${{ env.VERSION }}.jar
|
||||
asset_name: ${{ env.ARTIFACT_ID }}-${{ env.VERSION }}.jar
|
||||
asset_content_type: application/java-archive
|
||||
@@ -0,0 +1 @@
|
||||
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
|
||||
@@ -7,7 +7,7 @@
|
||||
<groupId>me.SuperRonanCraft</groupId>
|
||||
<artifactId>BetterRTP</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>3.6.8-2</version>
|
||||
<version>3.6.8-3</version>
|
||||
|
||||
<!-- Upload patches to https://repo.ronanplugins.com/#/ -->
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||
https://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
<servers>
|
||||
<server>
|
||||
<id>ronanplugins-private</id>
|
||||
<username>${env.MAVEN_REPO_USERNAME}</username>
|
||||
<password>${env.MAVEN_REPO_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>mirror-repo</id>
|
||||
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
|
||||
<mirrorOf>http://nexus.hc.to/content/repositories/pub_releases</mirrorOf>
|
||||
</mirror>
|
||||
<!-- Add more mirrors if necessary -->
|
||||
</mirrors>
|
||||
</settings>
|
||||
@@ -27,7 +27,6 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class BetterRTP extends JavaPlugin {
|
||||
private final Permissions perms = new Permissions();
|
||||
|
||||
@@ -3,7 +3,7 @@ package me.SuperRonanCraft.BetterRTP.player.commands;
|
||||
import me.SuperRonanCraft.BetterRTP.player.commands.types.*;
|
||||
|
||||
public enum RTPCommandType {
|
||||
BIOME(new CmdBiome()),
|
||||
// BIOME(new CmdBiome()),
|
||||
EDIT(new CmdEdit()),
|
||||
HELP(new CmdHelp()),
|
||||
INFO(new CmdInfo()),
|
||||
|
||||
@@ -35,8 +35,4 @@ public class DatabaseHandler {
|
||||
return BetterRTP.getInstance().getDatabaseHandler().getDatabaseQueue();
|
||||
}
|
||||
|
||||
//public static DatabaseChunkData getChunks() {
|
||||
// return BetterRTP.getInstance().getDatabaseHandler().getDatabaseChunks();
|
||||
//}
|
||||
|
||||
}
|
||||
@@ -37,6 +37,8 @@ public abstract class SQLite {
|
||||
return getLocal();
|
||||
}
|
||||
|
||||
public abstract Connection getConnection();
|
||||
|
||||
private Connection getLocal() {
|
||||
File dataFolder = new File(BetterRTP.getInstance().getDataFolder().getPath() + File.separator + "data", db_file_name + ".db");
|
||||
if (!dataFolder.exists()){
|
||||
|
||||
Reference in new issue
Block a user