mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-08 09:42:56 +01:00
Minor cleanup
This commit is contained in:
parent
230d73813d
commit
c157040b77
@ -1131,7 +1131,7 @@ public class DisguiseUtilities {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String ldTeamName = null;
|
String ldTeamName = "LD Pushing";
|
||||||
|
|
||||||
// If we are creating a new scoreboard because the current one must not be modified
|
// If we are creating a new scoreboard because the current one must not be modified
|
||||||
if (pOption == DisguisePushing.CREATE_SCOREBOARD) {
|
if (pOption == DisguisePushing.CREATE_SCOREBOARD) {
|
||||||
@ -1140,11 +1140,9 @@ public class DisguiseUtilities {
|
|||||||
|
|
||||||
// Give the teamname a custom name
|
// Give the teamname a custom name
|
||||||
ldTeamName = ldTeamName.substring(0, Math.min(12, ldTeamName.length())) + "_LDP";
|
ldTeamName = ldTeamName.substring(0, Math.min(12, ldTeamName.length())) + "_LDP";
|
||||||
} else if (ldTeam == null) {
|
|
||||||
ldTeamName = "LDPushing";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ldTeamName != null && (ldTeam = scoreboard.getTeam(ldTeamName)) == null) {
|
if (ldTeam == null && (ldTeam = scoreboard.getTeam(ldTeamName)) == null) {
|
||||||
ldTeam = scoreboard.registerNewTeam(ldTeamName);
|
ldTeam = scoreboard.registerNewTeam(ldTeamName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user