This commit is contained in:
nearfe 2024-06-15 05:55:59 -03:00
parent a1432ad782
commit 9773f3e68e
5 changed files with 37 additions and 25 deletions

View File

@ -29,8 +29,19 @@ public class BoardAdapter implements AssembleAdapter {
@Override @Override
public String getTitle(Player player) { public String getTitle(Player player) {
final PlayerData playerData = Practice.getInstance().getPlayerManager()
.getPlayerData(player.getUniqueId());
switch (playerData.getOptions().getScoreboardStyle()) {
case OLD:
return CC.GOLD + CC.BOLD + (!Practice.getInstance().isHolanda() ? "Battle " + CC.GRAY + "" + CC.WHITE + " Practice" : "Practice"); return CC.GOLD + CC.BOLD + (!Practice.getInstance().isHolanda() ? "Battle " + CC.GRAY + "" + CC.WHITE + " Practice" : "Practice");
case MODERN:
return CC.GOLD + CC.BOLD + " Practice";
default:
return "";
} }
}
@Override @Override
public List<String> getLines(Player player) { public List<String> getLines(Player player) {

View File

@ -386,7 +386,6 @@ public class MatchListener implements Listener {
} }
} }
match.broadcast(" ");
if (eloMessage != null) { if (eloMessage != null) {
match.broadcast(eloMessage); match.broadcast(eloMessage);

View File

@ -814,8 +814,10 @@ public class PlayerListener implements Listener {
switch (playerData.getOptions().getBodyAnimated()) { switch (playerData.getOptions().getBodyAnimated()) {
case ANIMATED: case ANIMATED:
PlayerUtil.animateDeath(player, !plugin.getMatchManager().getMatch(playerData).isPartyMatch()); PlayerUtil.animateDeath(player, !plugin.getMatchManager().getMatch(playerData).isPartyMatch());
break;
case STATIC: case STATIC:
PlayerUtil.staticDeath(player, !plugin.getMatchManager().getMatch(playerData).isPartyMatch()); PlayerUtil.staticDeath(player, !plugin.getMatchManager().getMatch(playerData).isPartyMatch());
break;
} }
} }
this.plugin.getMatchManager().removeFighter(player, playerData, true); this.plugin.getMatchManager().removeFighter(player, playerData, true);

View File

@ -62,7 +62,7 @@ public class KitEditorMenu extends Menu {
if (integer > 3 && !player.hasPermission("practice.editor.more")) { if (integer > 3 && !player.hasPermission("practice.editor.more")) {
player.sendMessage(new String[]{ player.sendMessage(new String[]{
ChatColor.RED + "You do not have permission to create kit #" + integer + ".", ChatColor.RED + "You do not have permission to create kit #" + integer + ".",
ChatColor.RED + "Purchase the " + ChatColor.AQUA + "Basic" + ChatColor.RED + " rank at " + ChatColor.YELLOW + "store.nodebuff.com" + ChatColor.RED + " to unlock this feature." ChatColor.RED + "Purchase the " + ChatColor.AQUA + "Basic" + ChatColor.RED + " rank at " + ChatColor.YELLOW + "store.battle.land" + ChatColor.RED + " to unlock this feature."
}); });
return; return;
} }

View File

@ -35,12 +35,12 @@ public class PracticeSettingsImpl implements ISettings {
final PlayerData data = Practice.getInstance().getPlayerManager().getPlayerData(player.getUniqueId()); final PlayerData data = Practice.getInstance().getPlayerManager().getPlayerData(player.getUniqueId());
buttonList.add(new ItemBuilder(Material.SIGN) buttonList.add(new ItemBuilder(Material.SIGN)
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Sidebar Mode") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Score")
.addLore( .addLore(
"", "",
CC.GRAY + "Would you like to view", CC.GRAY + "você gostaria de deixar",
CC.GRAY + "our sidebar at spawn or", CC.GRAY + "score ativa ou desativada no spawn",
CC.GRAY + "in a match?", CC.GRAY + "um em uma partida?",
" ", " ",
(data.getOptions().isScoreboardEnabled() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled", (data.getOptions().isScoreboardEnabled() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled",
(!data.getOptions().isScoreboardEnabled() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled" (!data.getOptions().isScoreboardEnabled() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled"
@ -49,12 +49,12 @@ public class PracticeSettingsImpl implements ISettings {
); );
buttonList.add(new ItemBuilder(Material.ITEM_FRAME) buttonList.add(new ItemBuilder(Material.ITEM_FRAME)
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Sidebar Style") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Estilo de Scoreboard")
.addLore( .addLore(
"", "",
CC.GRAY + "Which style of our board", CC.GRAY + "Qual estilo de Scoreboard",
CC.GRAY + "would you like to view", CC.GRAY + "você gostaria de ver",
CC.GRAY + "during a match?", CC.GRAY + "durante a fight?",
" ", " ",
(data.getOptions().getScoreboardState().name().equals("PING") ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fPing", (data.getOptions().getScoreboardState().name().equals("PING") ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fPing",
(data.getOptions().getScoreboardState().name().equals("ARENA") ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fArena", (data.getOptions().getScoreboardState().name().equals("ARENA") ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fArena",
@ -81,11 +81,11 @@ public class PracticeSettingsImpl implements ISettings {
); );
buttonList.add(new ItemBuilder(Material.PAINTING) buttonList.add(new ItemBuilder(Material.PAINTING)
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Sidebar Lines") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Linhas da Score")
.addLore( .addLore(
"", "",
CC.GRAY + "Would you like a different view", CC.GRAY + "Você gostaria de um estilo diferente",
CC.GRAY + "on your scoreboard?", CC.GRAY + "na sua Scoreboard?",
" ", " ",
(data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.OLD ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fOld", (data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.OLD ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fOld",
(data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.MODERN ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fModern" (data.getOptions().getScoreboardStyle() == SidebarOptionsItemState.MODERN ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fModern"
@ -103,8 +103,8 @@ public class PracticeSettingsImpl implements ISettings {
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Duel Requests") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Duel Requests")
.addLore( .addLore(
"", "",
CC.GRAY + "Would you like to receive", CC.GRAY + "Você gostaria de receber",
CC.GRAY + "duel requests?", CC.GRAY + "duelos?",
" ", " ",
(data.getOptions().isDuelRequests() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled", (data.getOptions().isDuelRequests() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled",
(!data.getOptions().isDuelRequests() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled" (!data.getOptions().isDuelRequests() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled"
@ -116,8 +116,8 @@ public class PracticeSettingsImpl implements ISettings {
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Party Invites") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Party Invites")
.addLore( .addLore(
"", "",
CC.GRAY + "Would you like to receive", CC.GRAY + "Você gostaria de receber",
CC.GRAY + "party invites?", CC.GRAY + "convites pra Party?",
" ", " ",
(data.getOptions().isPartyInvites() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled", (data.getOptions().isPartyInvites() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled",
(!data.getOptions().isPartyInvites() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled" (!data.getOptions().isPartyInvites() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled"
@ -129,8 +129,8 @@ public class PracticeSettingsImpl implements ISettings {
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Allow Spectators") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Allow Spectators")
.addLore( .addLore(
"", "",
CC.GRAY + "Would you like to allow", CC.GRAY + "Você gostaria de deixar",
CC.GRAY + "spectators in matches?", CC.GRAY + "espectadores na fight?",
" ", " ",
(data.getOptions().isSpectators() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled", (data.getOptions().isSpectators() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fEnabled",
(!data.getOptions().isSpectators() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled" (!data.getOptions().isSpectators() ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fDisabled"
@ -141,7 +141,7 @@ public class PracticeSettingsImpl implements ISettings {
buttonList.add(new ItemBuilder(Material.BLAZE_ROD) buttonList.add(new ItemBuilder(Material.BLAZE_ROD)
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Kill Effects") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Kill Effects")
.addLore( .addLore(
CC.GRAY + "Click to view kill effects.", CC.GRAY + "Clique para abrir as kill effects.",
" ", " ",
CC.YELLOW + "[View all kill effects]" CC.YELLOW + "[View all kill effects]"
@ -154,7 +154,7 @@ public class PracticeSettingsImpl implements ISettings {
buttonList.add(new ItemBuilder(Material.BOOK_AND_QUILL) buttonList.add(new ItemBuilder(Material.BOOK_AND_QUILL)
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Kill Messages") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Kill Messages")
.addLore( .addLore(
CC.GRAY + "Click to view kill messages.", CC.GRAY + "Clique para ver as mensagens de kill.",
" ", " ",
CC.YELLOW + "[View all kill messages]" CC.YELLOW + "[View all kill messages]"
@ -165,11 +165,11 @@ public class PracticeSettingsImpl implements ISettings {
); );
buttonList.add(new ItemBuilder(Material.SKULL_ITEM) buttonList.add(new ItemBuilder(Material.SKULL_ITEM)
.setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Body animation") .setDisplayName(Color.MAIN_COLOR + CC.BOLD + "Animações de corpo")
.addLore( .addLore(
"", "",
CC.GRAY + "Would you like a different body", CC.GRAY + "Qual tipo de animação de corpo",
CC.GRAY + "animation on your gameplay?", CC.GRAY + "você quer na sua gameplay?",
" ", " ",
(data.getOptions().getBodyAnimated() == BodyOptionsItemState.ANIMATED ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fAnimated", (data.getOptions().getBodyAnimated() == BodyOptionsItemState.ANIMATED ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fAnimated",
(data.getOptions().getBodyAnimated() == BodyOptionsItemState.STATIC ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fStatic" (data.getOptions().getBodyAnimated() == BodyOptionsItemState.STATIC ? CC.GREEN + CC.BOLD + "" : CC.DARK_GRAY + CC.BOLD + "") + "&fStatic"