forked from ChomeNS/chomens-bot-java
whoop
This commit is contained in:
parent
ee9b9720e0
commit
fe81e3ae35
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ public class BotVisibilityCommand extends Command {
|
||||||
final NamedTextColor greenOrGold = bot.selfCare.visibility ? NamedTextColor.GREEN : NamedTextColor.GOLD;
|
final NamedTextColor greenOrGold = bot.selfCare.visibility ? NamedTextColor.GREEN : NamedTextColor.GOLD;
|
||||||
final String visibleOrInvisible = bot.selfCare.visibility ? "visible" : "invisible";
|
final String visibleOrInvisible = bot.selfCare.visibility ? "visible" : "invisible";
|
||||||
final String disableOrEnable = bot.selfCare.visibility ? "disable" : "enable";
|
final String disableOrEnable = bot.selfCare.visibility ? "disable" : "enable";
|
||||||
bot.core.run("/essentials:vanish " + disableOrEnable);
|
bot.core.run("/essentials:vanish " + bot.profile.getName() + " " + disableOrEnable);
|
||||||
return Component.empty()
|
return Component.empty()
|
||||||
.append(Component.text("The bot's visibility is now "))
|
.append(Component.text("The bot's visibility is now "))
|
||||||
.append(Component.text(visibleOrInvisible).color(greenOrGold))
|
.append(Component.text(visibleOrInvisible).color(greenOrGold))
|
||||||
|
@ -43,7 +43,7 @@ public class BotVisibilityCommand extends Command {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case "on", "true" -> {
|
case "on", "true" -> {
|
||||||
bot.selfCare.visibility = true;
|
bot.selfCare.visibility = true;
|
||||||
bot.core.run("/essentials:vanish disable");
|
bot.core.run("/essentials:vanish " + bot.profile.getName() + " disable");
|
||||||
return Component.empty()
|
return Component.empty()
|
||||||
.append(Component.text("The bot's visibility is now "))
|
.append(Component.text("The bot's visibility is now "))
|
||||||
.append(Component.text("visible").color(NamedTextColor.GREEN))
|
.append(Component.text("visible").color(NamedTextColor.GREEN))
|
||||||
|
@ -51,7 +51,7 @@ public class BotVisibilityCommand extends Command {
|
||||||
}
|
}
|
||||||
case "off", "false" -> {
|
case "off", "false" -> {
|
||||||
bot.selfCare.visibility = false;
|
bot.selfCare.visibility = false;
|
||||||
bot.core.run("/essentials:vanish enable");
|
bot.core.run("/essentials:vanish " + bot.profile.getName() + " enable");
|
||||||
return Component.empty()
|
return Component.empty()
|
||||||
.append(Component.text("The bot's visibility is now "))
|
.append(Component.text("The bot's visibility is now "))
|
||||||
.append(Component.text("invisible").color(NamedTextColor.GOLD))
|
.append(Component.text("invisible").color(NamedTextColor.GOLD))
|
||||||
|
|
Loading…
Reference in a new issue