Skip to content

Commit a83532b

Browse files
author
TheProgramSrc
committed
Change log:
• Fixed error while disabling plugin with custom commands
1 parent 5503752 commit a83532b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>xyz.theprogramsrc</groupId>
88
<artifactId>SuperCoreAPI</artifactId>
9-
<version>3.2.8</version>
9+
<version>3.2.9</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SuperCoreAPI</name>

src/main/java/xyz/theprogramsrc/supercoreapi/spigot/commands/SpigotCommand.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public boolean execute(CommandSender sender, String commandLabel, String[] args)
3333
};
3434
command.setPermission(this.getPermission());
3535
plugin.getSuperUtils().registerBukkitCommand(command);
36-
plugin.addDisableHook(()-> plugin.getSuperUtils().unregisterCommand(this.getCommand()));
3736
}
3837

3938
private void onResult(CommandSender sender, CommandResult result){

0 commit comments

Comments
 (0)