Changed Utility#callEventSync to
PluginManager#callEvent
このコミットが含まれているのは:
1 親
1cc17ec0b6
コミット
534130f0a8
6ファイル変更
+15
-11
検索条件に一致するファイルはありません
@@ -12,13 +12,13 @@ import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.LunaChatAPI;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelCreateEvent;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelRemoveEvent;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
@@ -441,7 +441,7 @@ public class ChannelManager implements LunaChatAPI {
|
||||
// イベントコール
|
||||
LunaChatChannelCreateEvent event =
|
||||
new LunaChatChannelCreateEvent(channelName, sender);
|
||||
Utility.callEventSync(event);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
if ( event.isCancelled() ) {
|
||||
return null;
|
||||
}
|
||||
@@ -478,7 +478,7 @@ public class ChannelManager implements LunaChatAPI {
|
||||
// イベントコール
|
||||
LunaChatChannelRemoveEvent event =
|
||||
new LunaChatChannelRemoveEvent(channelName, sender);
|
||||
Utility.callEventSync(event);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
if ( event.isCancelled() ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする