Skip to content

Commit 4f97718

Browse files
committed
Updated version and README
1 parent 7183d63 commit 4f97718

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To add this project as a dependency to your project, add the following to your p
3737
<dependency>
3838
<groupId>com.github.Despical</groupId>
3939
<artifactId>CommandFramework</artifactId>
40-
<version>1.3.2</version>
40+
<version>1.3.3</version>
4141
<scope>compile</scope>
4242
</dependency>
4343
```
@@ -50,7 +50,7 @@ repositories {
5050
```
5151
```
5252
dependencies {
53-
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.3.2";
53+
compileOnly group: "com.github.Despical", name: "CommandFramework", version: "1.3.3";
5454
}
5555
```
5656

@@ -59,8 +59,11 @@ dependencies {
5959
```java
6060
import me.despical.commandframework.Command;
6161
import me.despical.commandframework.CommandArguments;
62+
import me.despical.commandframework.Cooldown;
6263
import me.despical.commandframework.CustomParameters;
6364

65+
import java.util.concurrent.TimeUnit;
66+
6467
public class ExampleClass extends JavaPlugin {
6568

6669
// Don't forget to shade framework in to your project
@@ -104,13 +107,18 @@ public class ExampleClass extends JavaPlugin {
104107
usage = "/example",
105108
min = 1,
106109
max = 5,
107-
cooldown = 10,
108110
onlyOp = false, // this option will ignore permission if it is set
109111
// be careful if you are using non-thread safe operations
110112
// and if you want to enable option below
111113
async = false,
112114
senderType = Command.SenderType.CONSOLE
113115
)
116+
@Cooldown(
117+
cooldown = 10,
118+
timeUnit = TimeUnit.SECONDS,
119+
bypassPerm = "command.cooldownBypass",
120+
overrideConsole = true // console will now be affected by cooldown
121+
)
114122
public void exampleCommand(CommandArguments arguments) {
115123
// CommandArguments class contains basic things related Bukkit commands
116124
// And here it's all done, you've created command with properties above!
@@ -137,7 +145,7 @@ public class ExampleClass extends JavaPlugin {
137145
// CommandArguments parameter can be added to anywhere in method as a parameter.
138146
arguments.sendMessage("First parameter is " + firstParameter);
139147
}
140-
148+
141149
// Aliases don't need to be same with the command above
142150
@Completer(
143151
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.2</version>
6+
<version>1.3.3</version>
77

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

0 commit comments

Comments
 (0)