mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Add more information to scoreboard teams command
This commit is contained in:
parent
3a77245353
commit
00585c6c44
@ -106,7 +106,8 @@ public class LibsDisguisesCommand implements CommandExecutor, TabCompleter {
|
||||
DisguiseConfig.loadConfig();
|
||||
sender.sendMessage(LibsMsg.RELOADED_CONFIG.get());
|
||||
return true;
|
||||
} else if (args[0].equalsIgnoreCase("scoreboard") || args[0].equalsIgnoreCase("board")) {
|
||||
} else if (args[0].equalsIgnoreCase("scoreboard") || args[0].equalsIgnoreCase("board") ||
|
||||
args[0].equalsIgnoreCase("teams")) {
|
||||
if (!sender.hasPermission("libsdisguises.scoreboardtest")) {
|
||||
sender.sendMessage(LibsMsg.NO_PERM.get());
|
||||
return true;
|
||||
@ -153,11 +154,11 @@ public class LibsDisguisesCommand implements CommandExecutor, TabCompleter {
|
||||
|
||||
if (team.getOption(Team.Option.COLLISION_RULE) != Team.OptionStatus.NEVER &&
|
||||
team.getOption(Team.Option.COLLISION_RULE) != Team.OptionStatus.FOR_OTHER_TEAMS) {
|
||||
sender.sendMessage(LibsMsg.LIBS_SCOREBOARD_NO_TEAM_PUSH.get());
|
||||
sender.sendMessage(LibsMsg.LIBS_SCOREBOARD_NO_TEAM_PUSH.get(team.getName()));
|
||||
return true;
|
||||
}
|
||||
|
||||
sender.sendMessage(LibsMsg.LIBS_SCOREBOARD_SUCCESS.get());
|
||||
sender.sendMessage(LibsMsg.LIBS_SCOREBOARD_SUCCESS.get(team.getName()));
|
||||
return true;
|
||||
} else if (args[0].equalsIgnoreCase("permtest")) {
|
||||
if (!sender.hasPermission("libsdisguises.permtest")) {
|
||||
@ -296,8 +297,8 @@ public class LibsDisguisesCommand implements CommandExecutor, TabCompleter {
|
||||
|
||||
sender.spigot().sendMessage(builder.create());
|
||||
} else {
|
||||
sender.sendMessage(
|
||||
LibsMsg.META_VALUES_NO_CLICK.get(StringUtils.join(names, LibsMsg.META_VALUE_SEPERATOR.get())));
|
||||
sender.sendMessage(LibsMsg.META_VALUES_NO_CLICK
|
||||
.get(StringUtils.join(names, LibsMsg.META_VALUE_SEPERATOR.get())));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -263,10 +263,10 @@ public enum LibsMsg {
|
||||
ITEM_SERIALIZED_MC_LD_NO_COPY(ChatColor.GOLD + "MC Serialized for LD: " + ChatColor.YELLOW + "%s"),
|
||||
ITEM_SIMPLE_STRING_NO_COPY(ChatColor.GOLD + "Simple: " + ChatColor.YELLOW + "%s"),
|
||||
LIBS_SCOREBOARD_NO_TEAM(ChatColor.RED + "Not on a scoreboard team!"),
|
||||
LIBS_SCOREBOARD_NO_TEAM_PUSH(ChatColor.RED + "Scoreboard team has pushing enabled!"),
|
||||
LIBS_SCOREBOARD_NO_TEAM_PUSH(ChatColor.RED + "On scoreboard team '%s' and pushing is enabled!"),
|
||||
LIBS_SCOREBOARD_SUCCESS(ChatColor.GOLD +
|
||||
"On a team and pushing is disabled! If you're still having issues and you are disguised right now, then " +
|
||||
"you have a plugin modifying scoreboard through packets"),
|
||||
"On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right now, then " +
|
||||
"you have a plugin modifying scoreboard through packets."),
|
||||
LIBS_SCOREBOARD_DISABLED(
|
||||
"The scoreboard modification has been disabled in config, will continue the debug incase this is intended" +
|
||||
".");
|
||||
|
Loading…
Reference in New Issue
Block a user