mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 20:17:42 +01:00
Fix checkstyle errors
This commit is contained in:
parent
596efd6294
commit
a9fa739c2a
@ -49,7 +49,7 @@ class BukkitPartBuilder implements MessageBuilder {
|
|||||||
BukkitPartBuilder nextPart = new BukkitPartBuilder(this);
|
BukkitPartBuilder nextPart = new BukkitPartBuilder(this);
|
||||||
try {
|
try {
|
||||||
nextPart.part.appendLegacy(text);
|
nextPart.part.appendLegacy(text);
|
||||||
} catch (NoSuchMethodError oldVersion_1_8) {
|
} catch (NoSuchMethodError oldVersion) { // not supported in 1.8
|
||||||
nextPart.part.append(ChatColor.translateAlternateColorCodes('§', text));
|
nextPart.part.append(ChatColor.translateAlternateColorCodes('§', text));
|
||||||
}
|
}
|
||||||
return nextPart;
|
return nextPart;
|
||||||
@ -113,7 +113,7 @@ class BukkitPartBuilder implements MessageBuilder {
|
|||||||
} else if (previous != null) {
|
} else if (previous != null) {
|
||||||
try {
|
try {
|
||||||
previous.part.append(part.create());
|
previous.part.append(part.create());
|
||||||
} catch (NoSuchMethodError oldVersion_1_8) {
|
} catch (NoSuchMethodError oldVersion) { // not supported in 1.8
|
||||||
sendOld();
|
sendOld();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user