mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-14 15:26:54 +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();
|
DisguiseConfig.loadConfig();
|
||||||
sender.sendMessage(LibsMsg.RELOADED_CONFIG.get());
|
sender.sendMessage(LibsMsg.RELOADED_CONFIG.get());
|
||||||
return true;
|
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")) {
|
if (!sender.hasPermission("libsdisguises.scoreboardtest")) {
|
||||||
sender.sendMessage(LibsMsg.NO_PERM.get());
|
sender.sendMessage(LibsMsg.NO_PERM.get());
|
||||||
return true;
|
return true;
|
||||||
@ -153,11 +154,11 @@ public class LibsDisguisesCommand implements CommandExecutor, TabCompleter {
|
|||||||
|
|
||||||
if (team.getOption(Team.Option.COLLISION_RULE) != Team.OptionStatus.NEVER &&
|
if (team.getOption(Team.Option.COLLISION_RULE) != Team.OptionStatus.NEVER &&
|
||||||
team.getOption(Team.Option.COLLISION_RULE) != Team.OptionStatus.FOR_OTHER_TEAMS) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
sender.sendMessage(LibsMsg.LIBS_SCOREBOARD_SUCCESS.get());
|
sender.sendMessage(LibsMsg.LIBS_SCOREBOARD_SUCCESS.get(team.getName()));
|
||||||
return true;
|
return true;
|
||||||
} else if (args[0].equalsIgnoreCase("permtest")) {
|
} else if (args[0].equalsIgnoreCase("permtest")) {
|
||||||
if (!sender.hasPermission("libsdisguises.permtest")) {
|
if (!sender.hasPermission("libsdisguises.permtest")) {
|
||||||
@ -296,8 +297,8 @@ public class LibsDisguisesCommand implements CommandExecutor, TabCompleter {
|
|||||||
|
|
||||||
sender.spigot().sendMessage(builder.create());
|
sender.spigot().sendMessage(builder.create());
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(
|
sender.sendMessage(LibsMsg.META_VALUES_NO_CLICK
|
||||||
LibsMsg.META_VALUES_NO_CLICK.get(StringUtils.join(names, LibsMsg.META_VALUE_SEPERATOR.get())));
|
.get(StringUtils.join(names, LibsMsg.META_VALUE_SEPERATOR.get())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -263,10 +263,10 @@ public enum LibsMsg {
|
|||||||
ITEM_SERIALIZED_MC_LD_NO_COPY(ChatColor.GOLD + "MC Serialized for LD: " + ChatColor.YELLOW + "%s"),
|
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"),
|
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(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 +
|
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 " +
|
"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"),
|
"you have a plugin modifying scoreboard through packets."),
|
||||||
LIBS_SCOREBOARD_DISABLED(
|
LIBS_SCOREBOARD_DISABLED(
|
||||||
"The scoreboard modification has been disabled in config, will continue the debug incase this is intended" +
|
"The scoreboard modification has been disabled in config, will continue the debug incase this is intended" +
|
||||||
".");
|
".");
|
||||||
|
Loading…
Reference in New Issue
Block a user