Aw man
This commit is contained in:
parent
61986c9b51
commit
2b549227a6
2 changed files with 0 additions and 6 deletions
|
@ -69,10 +69,6 @@ public class MCChatUtils {
|
|||
}
|
||||
|
||||
private static boolean notEnabled() {
|
||||
/*System.out.println("module: " + module);
|
||||
if (module != null)
|
||||
System.out.println("Disabling: " + module.disabling);*/
|
||||
//new Exception().printStackTrace();
|
||||
return (module == null || !module.disabling) && getModule() == null; //Allow using things while disabling the module
|
||||
}
|
||||
|
||||
|
@ -166,7 +162,6 @@ public class MCChatUtils {
|
|||
* @param hookmsg Whether the message is also sent from the hook
|
||||
*/
|
||||
public static Mono<?> forCustomAndAllMCChat(Function<Mono<MessageChannel>, Mono<?>> action, @Nullable ChannelconBroadcast toggle, boolean hookmsg) {
|
||||
System.out.println("Not enabled: " + notEnabled());
|
||||
if (notEnabled()) return Mono.empty();
|
||||
var list = new ArrayList<Publisher<?>>();
|
||||
if (!GeneralEventBroadcasterModule.isHooked() || !hookmsg)
|
||||
|
|
|
@ -241,7 +241,6 @@ public class MinecraftChatModule extends Component<DiscordPlugin> {
|
|||
* It will block to make sure all messages are sent
|
||||
*/
|
||||
private void sendStateMessage(Color color, String message) {
|
||||
System.out.println("Sending message: " + message);
|
||||
MCChatUtils.forCustomAndAllMCChat(chan -> chan.flatMap(ch -> ch.createEmbed(ecs -> ecs.setColor(color)
|
||||
.setTitle(message))), ChannelconBroadcast.RESTART, false).block();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue