Add check if thread is primary

on creating event instance
このコミットが含まれているのは:
LazyGon committed 2019-11-09 12:38:38 +09:00
1 親 edbba82258
コミット 1cc17ec0b6
1ファイル変更
+2
+2
ファイルの表示
@@ -5,6 +5,7 @@
*/
package com.github.ucchyocean.lc.event;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
@@ -25,6 +26,7 @@ public abstract class LunaChatBaseEvent extends Event {
* @param channelName チャンネル名
*/
public LunaChatBaseEvent(String channelName) {
super(!Bukkit.isPrimaryThread());
this.channelName = channelName;
}