File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ To add this project as a dependency to your project, add the following to your p
37
37
<dependency >
38
38
<groupId >com.github.Despical</groupId >
39
39
<artifactId >CommandFramework</artifactId >
40
- <version >1.4.7 </version >
40
+ <version >1.4.8 </version >
41
41
<scope >compile</scope >
42
42
</dependency >
43
43
```
@@ -50,7 +50,7 @@ repositories {
50
50
```
51
51
``` groovy
52
52
dependencies {
53
- implementation 'com.github.Despical:CommandFramework:1.4.7 '
53
+ implementation 'com.github.Despical:CommandFramework:1.4.8 '
54
54
}
55
55
```
56
56
@@ -61,6 +61,7 @@ dependencies {
61
61
62
62
``` java
63
63
import me.despical.commandframework.* ;
64
+ import me.despical.commandframework.annotations.* ;
64
65
import org.bukkit.Bukkit ;
65
66
import org.bukkit.plugin.java.JavaPlugin ;
66
67
@@ -139,9 +140,9 @@ public class ExampleClass extends JavaPlugin {
139
140
// If parameter is not annotated by @Default then command will throw an exception on execution.
140
141
// See the wiki page for creating custom parameters using @Param and @Default annotations.
141
142
public void customParamsCommand (CommandArguments arguments ,
142
- @Param (" secondAsInt" )
143
- @Default (" 50" )
144
- int secondArg ) {
143
+ @Param (" secondAsInt" )
144
+ @Default (" 50" )
145
+ int secondArg ) {
145
146
arguments. sendMessage(" Second argument as integer is " + secondArg);
146
147
}
147
148
You can’t perform that action at this time.
0 commit comments