mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-01-30 23:01:50 +01:00
Explain why updates will not work when user has set a specific update branch. Fixes #785
This commit is contained in:
parent
9d50ad21bb
commit
6278d3a993
@ -43,8 +43,18 @@ public class LDUpdate implements LDCommand {
|
||||
|
||||
if (args[1].equalsIgnoreCase("dev")) {
|
||||
releaseBuilds = false;
|
||||
|
||||
if (DisguiseConfig.getUpdatesBranch() == DisguiseConfig.UpdatesBranch.RELEASES) {
|
||||
LibsMsg.LIBS_UPDATE_CANT_SWITCH_BRANCH.send(sender, DisguiseConfig.getUpdatesBranch().name());
|
||||
return;
|
||||
}
|
||||
} else if (args[1].equalsIgnoreCase("release")) {
|
||||
releaseBuilds = true;
|
||||
|
||||
if (DisguiseConfig.getUpdatesBranch() == DisguiseConfig.UpdatesBranch.SNAPSHOTS) {
|
||||
LibsMsg.LIBS_UPDATE_CANT_SWITCH_BRANCH.send(sender, DisguiseConfig.getUpdatesBranch().name());
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
LibsMsg.LIBS_UPDATE_UNKNOWN_BRANCH.send(sender);
|
||||
return;
|
||||
|
@ -113,6 +113,9 @@ public enum LibsMsg {
|
||||
INVALID_CLONE("<dark_red>Unknown method '%s' - Valid methods are 'IgnoreEquipment' 'DoSneakSprint' 'DoSneak' 'DoSprint'"),
|
||||
LIBS_COMMAND_WRONG_ARG("<red>[LibsDisguises] Invalid argument, use /libsdisguises help"),
|
||||
LIBS_UPDATE_UNKNOWN_BRANCH("<red>[LibsDisguises] Invalid argument, use 'dev' or 'release' to switch branches"),
|
||||
LIBS_UPDATE_CANT_SWITCH_BRANCH(
|
||||
"<red>[LibsDisguises] Invalid argument, update branch has been set to %s in libsdisguises.yml and cannot be ignored. Change this " +
|
||||
"to SAME_BUILDS and use /ld reload to restore normal behavior."),
|
||||
LIMITED_RADIUS("<red>Limited radius to %s! Don't want to make too much lag right?"),
|
||||
LISTEN_ENTITY_ENTITY_DISG_ENTITY("<red>Disguised %s as a %s!"),
|
||||
LISTEN_ENTITY_ENTITY_DISG_ENTITY_FAIL("<red>Failed to disguise %s as a %s!"),
|
||||
@ -176,7 +179,8 @@ public enum LibsMsg {
|
||||
PARSE_PARTICLE_SHULK_CHARGE("<red>Expected <green>%s:Roll(number.0)</green>, received <green>%s</green> instead"),
|
||||
PARSE_PARTICLE_SHRIEK("<red>Expected <green>%s:Delay(number.0)</green>, received <green>%s</green> instead"),
|
||||
PARSE_PARTICLE_TRAIL(
|
||||
"<red>Expected <green>%s:Target(3 numbers),Color(3 numbers or red/blue/etc)</green> eg <green>X,Y,Z:RED</green>, received <green>%s</green> instead"),
|
||||
"<red>Expected <green>%s:Target(3 numbers),Color(3 numbers or red/blue/etc)</green> eg <green>X,Y,Z:RED</green>, received " +
|
||||
"<green>%s</green> instead"),
|
||||
PARSE_PARTICLE_DUST(
|
||||
"<red>Expected <green>%s:Size(Optional Number),Color(3 numbers or red/blue/etc)</green>, received <green>%s</green> instead"),
|
||||
PARSE_PARTICLE_DUST_TRANSITION(
|
||||
|
Loading…
Reference in New Issue
Block a user