Skip to content

Commit d6f9de5

Browse files
committed
Bump version
1 parent 6520012 commit d6f9de5

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To add this project as a dependency to your project, add the following to your p
3838
<dependency>
3939
<groupId>com.github.Despical</groupId>
4040
<artifactId>CommandFramework</artifactId>
41-
<version>1.3.6</version>
41+
<version>1.3.7</version>
4242
<scope>compile</scope>
4343
</dependency>
4444
```
@@ -51,7 +51,7 @@ repositories {
5151
```
5252
```
5353
dependencies {
54-
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.3.6";
54+
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.3.7";
5555
}
5656
```
5757

@@ -143,6 +143,21 @@ public class ExampleClass extends JavaPlugin {
143143
arguments.sendMessage("First parameter is " + firstParameter);
144144
}
145145

146+
// Command with @Confirmation annotation.
147+
@Command(
148+
name = "confirmationTest"
149+
)
150+
@Confirmation(
151+
message = "Are you sure, if so, please execute command again to confirm.",
152+
expireAfter = 10,
153+
bypassPerm = "confirmation.bypass",
154+
timeUnit = TimeUnit.SECONDS,
155+
overrideConsole = true
156+
)
157+
public void confirmationCommand(CommandArguments arguments) {
158+
arguments.sendMessage("Confirmation successful.");
159+
}
160+
146161
// Aliases don't need to be same with the command above
147162
@Completer(
148163
name = "example",

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>me.despical</groupId>
55
<artifactId>command-framework</artifactId>
6-
<version>1.3.6</version>
6+
<version>1.3.7</version>
77

88
<name>Command Framework</name>
99
<inceptionYear>2020</inceptionYear>

0 commit comments

Comments
 (0)