Skip to content

Commit

Permalink
fix enable/disable groups bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BillYang2016 committed Jul 31, 2021
1 parent 8cc2e2c commit d1994bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "com.billyang"
version = "1.0.7"
version = "1.0.8"

repositories {
maven{ url =uri("https://maven.aliyun.com/nexus/content/groups/public/")}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/billyang/entrylib/EntryLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
public final class EntryLib extends JavaPlugin {
public static final EntryLib INSTANCE = new EntryLib();
private EntryLib() {
super(new JvmPluginDescriptionBuilder("EntryLib", "1.0.7")
super(new JvmPluginDescriptionBuilder("EntryLib", "1.0.8")
.id("com.billyang.entrylib")
.info("Ask and replay plugin for Mirai-Console")
.author("Bill Yang")
Expand Down Expand Up @@ -493,7 +493,7 @@ public void onEnable() {
String command = uio.parse(g.getMessage().contentToString()); //全局指令解析

if(command != null) {
if(!uio.getSwitchPermission() || g.getSender().getPermission() != MemberPermission.MEMBER && !al.isAdmin(g.getSender().getId())) { //权限判断
if(!uio.getSwitchPermission() || g.getSender().getPermission() != MemberPermission.MEMBER || al.isAdmin(g.getSender().getId())) { //权限判断
if(command.equals("switch-on")) {
getLogger().info("Got Input Command: " + command);
if(eg.turnOn(g.getGroup().getId())) sendGroupMessage(g,"switch", "on");
Expand Down

0 comments on commit d1994bb

Please sign in to comment.