This commit is contained in:
Norbi Peti 2020-10-26 23:05:03 +01:00
parent 61986c9b51
commit 2b549227a6
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
2 changed files with 0 additions and 6 deletions

View file

@ -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)

View file

@ -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();
}