Skip to content

Commit

Permalink
📌[main/App] String formate
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepymalc committed Aug 8, 2021
1 parent 7b1ace9 commit f781310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/linyuanlin/minecraft/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,14 @@ public boolean onCommand(CommandSender sender, Command cmd, String cmdlable, Str
allPlayers.get(p.getUniqueId()).team = team;
team.get().leader = allPlayers.get(p1.getUniqueId());
msg = new TextComponent(
p.getName() + "已加入" + "(" + allPlayers.get(p1.getUniqueId()).team.get().size() + "/4");
p.getName() + "已加入" + "(" + allPlayers.get(p1.getUniqueId()).team.get().size() + "/4)");
} else if (!allPlayers.get(p1.getUniqueId()).team.get().isFull()) {
allPlayers.get(p1.getUniqueId()).team.get().playerList
.add(allPlayers.get(Bukkit.getPlayer(args[0]).getUniqueId()));
allPlayers.get(Bukkit.getPlayer(p.getName()).getUniqueId()).team = allPlayers
.get(p1.getUniqueId()).team;
msg = new TextComponent(
p.getName() + "已加入" + "(" + allPlayers.get(p1.getUniqueId()).team.get().size() + "/4");
p.getName() + "已加入" + "(" + allPlayers.get(p1.getUniqueId()).team.get().size() + "/4)");
} else {
msg = new TextComponent("隊伍已滿");
}
Expand Down

0 comments on commit f781310

Please sign in to comment.