Skip to content

Commit

Permalink
Update gradle buildfile, fix build warning, release 0.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
cjburkey01 committed Dec 15, 2019
1 parent 8090d04 commit a6cab4d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![ClaimChunk Logo](imgs/icon64.png)
![ClaimChunk Title](imgs/logo_carrier.png)

[![Version Info](https://img.shields.io/badge/Version-0.0.17-brightgreen.svg)](https://github.com/cjburkey01/ClaimChunk/releases)
[![Version Info](https://img.shields.io/badge/Version-0.0.18-brightgreen.svg)](https://github.com/cjburkey01/ClaimChunk/releases)
[![Download Info](https://img.shields.io/badge/Spigot-1.15-blue.svg)](https://www.spigotmc.org/resources/claimchunk.44458/)
[![Servers Using Claimchunk](https://img.shields.io/bstats/servers/5179?label=Servers)](https://bstats.org/plugin/bukkit/ClaimChunk)
[![Players Using Claimchunk](https://img.shields.io/bstats/players/5179?label=Players)](https://bstats.org/plugin/bukkit/ClaimChunk)
Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ plugins {
}

group 'com.cjburkey'
version '0.0.18-SNAPSHOT'
version '0.0.18'

project.ext.bukkitVersion = '1.15-R0.1-SNAPSHOT'
project.ext.spigotVersion = '1.15-R0.1-SNAPSHOT'
project.ext.vaultApiVersion = '1.7'
project.ext.worldEditVersion = '7.0.1-SNAPSHOT'
project.ext.worldEditLegacyVersion = '7.0.0-SNAPSHOT'
project.ext.worldGuardVersion = '7.0.1-SNAPSHOT'
project.ext.worldEditCoreVersion = '7.1.0-SNAPSHOT'
project.ext.worldGuardVersion = '7.0.2-SNAPSHOT'
project.ext.worldGuardLegacyVersion = '7.0.0-SNAPSHOT'

// Use `gradlew jar` just to build the jar file.
// Use `gradlew copyClaimChunkToPluginsDir` to build the jar file and copy the plugin into the /plugins/ directory
// Use `gradlew buildPluginAndRunServer` to execute `copyClaimChunkToPluginsDir` and run the server
// To use these tasks, download Spigot to this file.
project.ext.spigotFile = new File('./run/spigot-1.14.4.jar')

sourceCompatibility = 8
sourceCompatibility = 1.8

repositories {
mavenCentral()
Expand All @@ -34,8 +34,8 @@ dependencies {
implementation "org.bukkit:bukkit:$bukkitVersion"
implementation "org.spigotmc:spigot-api:$spigotVersion"
implementation "net.milkbowl.vault:VaultAPI:$vaultApiVersion"
implementation "com.sk89q.worldedit:worldedit-core:$worldEditVersion"
implementation "com.sk89q.worldguard:worldguard-legacy:$worldEditLegacyVersion"
implementation "com.sk89q.worldedit:worldedit-core:$worldEditCoreVersion"
implementation "com.sk89q.worldguard:worldguard-legacy:$worldGuardLegacyVersion"
}

compileJava {
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/com/cjburkey/claimchunk/cmd/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ public class CommandHandler implements CommandExecutor {

void registerCommand(Class<? extends ICommand> cls) {
try {
ICommand cmd = cls.newInstance();
if (cmd != null && cmd.getCommand() != null && !cmd.getCommand().trim().isEmpty()
&& !hasCommand(cmd.getCommand())) {
ICommand cmd = cls.getDeclaredConstructor().newInstance();
if (cmd.getCommand() != null && !cmd.getCommand().trim().isEmpty() && !hasCommand(cmd.getCommand())) {
cmds.add(cmd);
}
} catch (Exception e) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors:
- 'DeathsGun'
database: true
prefix: 'ClaimChunk'
version: '0.0.18-SNAPSHOT'
version: '0.0.18'
website: 'https://www.spigotmc.org/resources/claimchunk.44458/'
softdepend:
- 'WorldGuard'
Expand Down

0 comments on commit a6cab4d

Please sign in to comment.