mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-23 00:21:26 +01:00
Style fixes
This commit is contained in:
parent
2292da79df
commit
900c0173f1
@ -38,7 +38,12 @@ import net.essentialsx.discord.interactions.InteractionRoleImpl;
|
|||||||
import net.essentialsx.discord.interactions.commands.ExecuteCommand;
|
import net.essentialsx.discord.interactions.commands.ExecuteCommand;
|
||||||
import net.essentialsx.discord.interactions.commands.ListCommand;
|
import net.essentialsx.discord.interactions.commands.ListCommand;
|
||||||
import net.essentialsx.discord.interactions.commands.MessageCommand;
|
import net.essentialsx.discord.interactions.commands.MessageCommand;
|
||||||
import net.essentialsx.discord.listeners.*;
|
import net.essentialsx.discord.listeners.BukkitChatListener;
|
||||||
|
import net.essentialsx.discord.listeners.BukkitListener;
|
||||||
|
import net.essentialsx.discord.listeners.DiscordCommandDispatcher;
|
||||||
|
import net.essentialsx.discord.listeners.DiscordListener;
|
||||||
|
import net.essentialsx.discord.listeners.EssentialsChatListener;
|
||||||
|
import net.essentialsx.discord.listeners.PaperChatListener;
|
||||||
import net.essentialsx.discord.util.ConsoleInjector;
|
import net.essentialsx.discord.util.ConsoleInjector;
|
||||||
import net.essentialsx.discord.util.DiscordUtil;
|
import net.essentialsx.discord.util.DiscordUtil;
|
||||||
import net.essentialsx.discord.util.MessageUtil;
|
import net.essentialsx.discord.util.MessageUtil;
|
||||||
@ -354,8 +359,7 @@ public class JDADiscordService implements DiscordService, IEssentialsModule {
|
|||||||
|
|
||||||
if (getSettings().isUseEssentialsEvents() && plugin.isEssentialsChat()) {
|
if (getSettings().isUseEssentialsEvents() && plugin.isEssentialsChat()) {
|
||||||
chatListener = new EssentialsChatListener(this);
|
chatListener = new EssentialsChatListener(this);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
try {
|
try {
|
||||||
Class.forName("io.papermc.paper.event.player.AsyncChatEvent");
|
Class.forName("io.papermc.paper.event.player.AsyncChatEvent");
|
||||||
chatListener = new PaperChatListener(this);
|
chatListener = new PaperChatListener(this);
|
||||||
|
@ -25,7 +25,7 @@ public class AbstractAsyncChatEvent extends PlayerEvent {
|
|||||||
|
|
||||||
public Set<Player> getRecipients() {
|
public Set<Player> getRecipients() {
|
||||||
return playerRecipients;
|
return playerRecipients;
|
||||||
};
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull HandlerList getHandlers() {
|
public @NotNull HandlerList getHandlers() {
|
||||||
|
@ -32,7 +32,6 @@ public class PaperAsyncChatListenerProvider implements Listener {
|
|||||||
this.serializer = yeOldSerializer;
|
this.serializer = yeOldSerializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onAsyncChatEvent(final AsyncChatEvent event) {
|
public void onAsyncChatEvent(final AsyncChatEvent event) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(
|
||||||
|
Loading…
Reference in New Issue
Block a user