Skip to content

Commit

Permalink
up to 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
a1640727878 committed Jun 25, 2019
1 parent 9fd40c4 commit dec4398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
if (args.length >= 4 && Integer.valueOf(args[3]) != null) {
int1 = Integer.valueOf(args[3]);
}
if (TeamManager.getTeams().isEmpty()) {
TeamGui.getGui().openMainGui(player);
}
TeamGui.getGui().openTeamListGui(player, int1);
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sky_bai/bukkit/baiteam/gui/TeamGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private TextComponent getPlayerText(String playerName) {
TextComponent a1 = new TextComponent("[邀请]\n");
a1.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("点击邀请 " + playerName + " 加入队伍").create()));
a1.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/baiteam 邀请玩家 " + playerName));
return customTextName(playerName, 20, a1);
return customTextName(playerName, 38, a1);
}

private TextComponent getMemberText(String playerName) {
Expand Down

0 comments on commit dec4398

Please sign in to comment.