public CPChannelState(ConfigurationSection section, MessageManager manager, String name){
super(section, manager, name);
channel = VanillaPlusCore.getChannelManager().get(section.getString(Node.CHANNEL.get()), true);
switchIn = section.getBoolean("SWITCH_IN", false);
switchOut = section.getBoolean("SWITCH_OUT", false);
if(!switchIn){
muteIn = section.getBoolean("MUTE_IN", false);
if(!muteIn)
unmuteIn = section.getBoolean("UNMUTE_IN", false);
}
if(!switchOut){
muteOut = section.getBoolean("MUTE_OUT", false);
if(!muteOut)
unmuteOut = section.getBoolean("UNMUTE_OUT", false);
}
if(!( switchIn || switchOut || muteIn || muteOut || unmuteIn || unmuteOut ))
Error.INVALID.add();
}
CPChannelState.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:VanillaPlus
作者:
评论列表
文章目录