Skip to content

Commit

Permalink
Fix #8, update version to 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusKube committed Jun 11, 2019
1 parent 463e4c4 commit 50b6fdd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ repositories {
}
dependencies {
compile 'fr.minuskube:netherboard-bukkit:1.1.1'
compile 'fr.minuskube:netherboard-bukkit:1.1.2'
// Or if you use Sponge:
// compile 'fr.minuskube:netherboard-sponge:1.1.1'
// compile 'fr.minuskube:netherboard-sponge:1.1.2'
}
```

Expand All @@ -89,7 +89,7 @@ dependencies {
<artifactId>netherboard-sponge</artifactId>
-->

<version>1.1.1</version>
<version>1.1.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ subprojects {
sourceCompatibility = '1.8'

group 'fr.minuskube'
version '1.1.1'
version '1.1.2'

configurations { provided }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,26 +82,22 @@ public class NMS {
sbScore = scoreClass.getConstructor(sbClass, objClass, String.class);
sbScoreSet = scoreClass.getMethod("setScore", int.class);

packetObj = packetObjClass.getConstructor(objClass, int.class);

switch(version.getMajor()) {
case "1.7":
packetScore = packetScoreClass.getConstructor(scoreClass, int.class);

packetObj = packetObjClass.getConstructor(int.class, objClass);
break;
case "1.13":
packetScore = packetScoreClass.getConstructor(scoreActionClass,
String.class, String.class, int.class);

enumScoreActionChange = scoreActionClass.getEnumConstants()[0];
enumScoreActionRemove = scoreActionClass.getEnumConstants()[1];

packetObj = packetObjClass.getConstructor(objClass, int.class);
break;
default:
packetScore = packetScoreClass.getConstructor(scoreClass);
packetScoreRemove = packetScoreClass.getConstructor(String.class, objClass);

packetObj = packetObjClass.getConstructor(objClass, int.class);
break;
}

Expand Down
2 changes: 1 addition & 1 deletion bukkit/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Netherboard
version: 1.1.1
version: 1.1.2
description: Scoreboard API for your Bukkit Plugins.
author: MinusKube
website: https://github.com/MinusKube/netherboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
description = "Scoreboard API for your Sponge Plugins.",
authors = "MinusKube",
url = "https://github.com/MinusKube/netherboard",
version = "1.1.1")
version = "1.1.2")
public class NetherboardPlugin {}

0 comments on commit 50b6fdd

Please sign in to comment.