mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-26 12:05:49 +01:00
Safely call VentureChatEvent
This commit is contained in:
parent
e24ee5d94f
commit
b43d7a53d2
4
.gitignore
vendored
4
.gitignore
vendored
@ -4,3 +4,7 @@
|
||||
|
||||
/.idea/
|
||||
/*.iml
|
||||
|
||||
.classpath
|
||||
.project
|
||||
.settings
|
||||
|
2
pom.xml
2
pom.xml
@ -225,7 +225,7 @@
|
||||
<dependency>
|
||||
<groupId>com.cnaude.venturechat</groupId>
|
||||
<artifactId>VentureChat</artifactId>
|
||||
<version>2.17.0</version>
|
||||
<version>2.17.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Jobs -->
|
||||
|
@ -66,6 +66,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
|
||||
import me.botsko.prism.actionlibs.QueryParameters;
|
||||
import me.botsko.prism.events.BlockStateChange;
|
||||
import org.bukkit.Achievement;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Location;
|
||||
@ -1359,7 +1360,7 @@ public final class PurpleBot {
|
||||
}
|
||||
if (plugin.ventureChatEnabled) {
|
||||
plugin.logDebug("Calling VentureChatEvent: " + event.getMessage());
|
||||
plugin.getServer().getPluginManager().callEvent(new VentureChatEvent(event, this, channelName));
|
||||
plugin.getServer().getScheduler().runTask(plugin, () -> plugin.getServer().getPluginManager().callEvent(new VentureChatEvent(event, this, channelName)));
|
||||
}
|
||||
if (isMessageEnabled(channelName, TemplateName.GAME_CHAT)) {
|
||||
asyncIRCMessage(channelName, plugin.tokenizer
|
||||
|
Loading…
Reference in New Issue
Block a user