CPChannelState.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:VanillaPlus 作者:
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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号