forked from SteamWar/SteamWar
Add debug output for DiscordAlert malfunction, add plugin messages
This commit is contained in:
@@ -21,6 +21,7 @@ package de.steamwar.velocitycore.discord.util;
|
||||
|
||||
import de.steamwar.messages.Chatter;
|
||||
import de.steamwar.messages.Message;
|
||||
import de.steamwar.velocitycore.VelocityCore;
|
||||
import de.steamwar.velocitycore.discord.DiscordBot;
|
||||
import de.steamwar.velocitycore.discord.channels.DiscordChannel;
|
||||
import lombok.experimental.UtilityClass;
|
||||
@@ -33,6 +34,7 @@ import net.dv8tion.jda.api.utils.messages.MessageCreateBuilder;
|
||||
|
||||
import java.awt.*;
|
||||
import java.time.Instant;
|
||||
import java.util.logging.Level;
|
||||
|
||||
@UtilityClass
|
||||
public class DiscordAlert {
|
||||
@@ -59,6 +61,7 @@ public class DiscordAlert {
|
||||
builder.setComponents(ActionRow.of(Button.success("tada", Emoji.fromUnicode("U+1F389"))));
|
||||
|
||||
new DiscordChannel(user).send(builder);
|
||||
VelocityCore.getLogger().log(Level.INFO, "Tried to send private message to " + player.user().getUserName() + " " + user);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ public class PluginMessage extends BasicListener {
|
||||
|
||||
for(String channel : Arrays.asList(
|
||||
"fabric:container/open", "fabric:registry/sync/direct", "fabric:registry/sync",
|
||||
"fabric-screen-handler-api-v1:open_screen",
|
||||
"fabric-screen-handler-api-v1:open_screen", "fabric:attachment_sync_v1",
|
||||
|
||||
FML.CHANNEL, "FML|MP", "FML", "FORGE",
|
||||
"fml:loginwrapper", "fml:handshake", "fml:play",
|
||||
@@ -117,7 +117,7 @@ public class PluginMessage extends BasicListener {
|
||||
Alpine.HANDSHAKE, Alpine.PLAY,
|
||||
|
||||
"sw:hotkeys",
|
||||
"floodgate:form", "floodgate:transfer", "floodgate:packet",
|
||||
"floodgate:form", "floodgate:w", "floodgate:packet",
|
||||
|
||||
"Replay|Restrict", "replaymod:restrict",
|
||||
"WDL|CONTROL", "wdl:control",
|
||||
@@ -163,7 +163,7 @@ public class PluginMessage extends BasicListener {
|
||||
"graveyard:spawn_entity", //https://github.com/finallion/The-Graveyard-FORGE (Adding graveyard themed blocks, items and mobs)
|
||||
"immersive_weathering:0", //https://github.com/AstralOrdana/Immersive-Weathering (Adds additional random block transitions)
|
||||
"kiwi:sync_cosmetic", //github.com/Snownee/Kiwi (General purpose library)
|
||||
"libgui:screen_messag", "libgui:screen_message_s2c", //https://github.com/cottonmc/libgui (Ingame GUI library)
|
||||
"libgui:screen_messag", "libgui:screen_message", "libgui:screen_message_s2c", //https://github.com/cottonmc/libgui (Ingame GUI library)
|
||||
"libjf-config-network", "libjf-config-network-v0:request", "libjf-config-network-v0:response", //https://git.frohnmeyer-wds.de/JfMods/LibJF (General purpose library)
|
||||
"libz:set_mouse_position", "libz:sync_config", //https://github.com/Globox1997/LibZ (General purpose library)
|
||||
"moonlight:0", "moonlight:1", "moonlight:2", "moonlight:3", "moonlight:4", "moonlight:5", //https://github.com/MehVahdJukaar/Moonlight (General purpose library)
|
||||
@@ -295,7 +295,7 @@ public class PluginMessage extends BasicListener {
|
||||
"noxesium-v2:reset", "noxesium-v2:change_server_rules", "noxesium-v2:server_info",
|
||||
"noxesium-v2:mcc_server", "noxesium-v2:mcc_game_state", "noxesium-v2:reset_server_rules",
|
||||
"noxesium-v2:stop_sound", "noxesium-v2:start_sound", "noxesium-v2:modify_sound",
|
||||
"noxesium-v2:change_extra_entity_data"
|
||||
"noxesium-v2:change_extra_entity_data", "noxesium-v2:reset_extra_entity_data"
|
||||
))
|
||||
channelRegisterHandlers.put(channel, player -> {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user