Skip to content

Commit

Permalink
Update to 1.0.6, fix error when player's name is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusKube committed Jul 18, 2017
1 parent 110c513 commit a88653a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 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.0.4'
compile 'fr.minuskube:netherboard-bukkit:1.0.6'
// Or if you use Sponge:
// compile 'fr.minuskube:netherboard-sponge:1.0.4'
// compile 'fr.minuskube:netherboard-sponge:1.0.6'
}
```

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

<version>1.0.4</version>
<version>1.0.6</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.0.5'
version '1.0.6'

configurations { provided }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public BPlayerBoard(Player player, Scoreboard scoreboard, String name) {

String subName = player.getName().length() <= 14
? player.getName()
: player.getName().substring(0, 16);
: player.getName().substring(0, 14);

this.objective = this.scoreboard.getObjective("sb" + subName);
this.buffer = this.scoreboard.getObjective("bf" + subName);
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.0.5
version: 1.0.6
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.0.5")
version = "1.0.6")
public class NetherboardPlugin {}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public SPlayerBoard(Player player, Scoreboard scoreboard, Text name) {

String subName = player.getName().length() <= 14
? player.getName()
: player.getName().substring(0, 16);
: player.getName().substring(0, 14);

this.objective = this.scoreboard.getObjective("sb" + subName)
.orElseGet(() -> {
Expand Down

0 comments on commit a88653a

Please sign in to comment.