Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a1640727878 committed Feb 24, 2020
1 parent 7301d64 commit aa9d713
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pluginGroup=sky_bai.bukkit
pluginVersion=0.2.4
pluginVersion=0.2.5
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public String onPlaceholderRequest(Player player, String identifier) {
}
}
if (identifier.startsWith("players_amount")) {
return playersName.size() + "";
return String.valueOf(playersName.size());
}
String str1 = identifier.replace("players", "");
if (str1.isEmpty() == false) {
Expand All @@ -65,7 +65,7 @@ public String onPlaceholderRequest(Player player, String identifier) {
} else if (identifier.startsWith("onteam")) {
return team == null ? "false" : "true";
} else if (identifier.startsWith("teams_amount")) {
return tManager.getTeamNames().size() + "";
return String.valueOf(tManager.getTeamNames().size());
} else if (identifier.startsWith("teams")) {
String str1 = identifier.replace("teams", "");
if (str1.isEmpty() == false) {
Expand All @@ -90,9 +90,9 @@ public String onPlaceholderRequest(Player player, String identifier) {
} else if (identifier.startsWith("team_members_amount")) {
String str1 = identifier.replace("team_members_amount", "");
if (str1.isEmpty() == false) {
return tManager.getTeam(str1.substring(1)).getMembers().size() + "";
return String.valueOf(tManager.getTeam(str1.substring(1)).getMembers().size());
}
return team.getMembers().size() + "";
return String.valueOf(team.getMembers().size());
} else if (identifier.startsWith("team_members")) {
String str1 = identifier.replace("team_members", "");
if (str1.isEmpty() == false) {
Expand Down

0 comments on commit aa9d713

Please sign in to comment.