make commandspy selfcare silent = QUIET self care (only /prefix left)

This commit is contained in:
Chayapak 2024-10-18 17:54:18 +07:00
parent 6f0dad508c
commit 46bf78c984

View file

@ -96,7 +96,14 @@ public class SelfCarePlugin extends Bot.Listener {
// chat only
if (selfCares.op && permissionLevel < 2) bot.chat.send("/minecraft:op @s[type=player]");
else if (selfCares.gamemode && gamemode != GameMode.CREATIVE && !bot.options.creayun) bot.chat.send("/minecraft:gamemode creative @s[type=player]");
else if (selfCares.cspy && !cspy && kaboom) bot.chat.send("/commandspy:commandspy on");
// core
else if (selfCares.cspy && !cspy && kaboom) {
if (bot.options.useChat) bot.chat.sendCommandInstantly("/commandspy:commandspy on");
else bot.core.run("commandspy:commandspy " + bot.username + " on");
}
// back to chat only
else if (selfCares.prefix.enabled && !prefix && kaboom && !bot.options.creayun) bot.chat.send("/extras:prefix " + bot.config.selfCare.prefix.prefix);
else if (selfCares.username && !username && kaboom) bot.chat.send("/extras:username " + bot.username);