This repository was archived by the owner on Oct 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +122
-48
lines changed Expand file tree Collapse file tree 10 files changed +122
-48
lines changed Original file line number Diff line number Diff line change 2
2
<buildprofiles xsi : noNamespaceSchemaLocation =" https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
3
3
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
4
4
5
- <variables ></variables >
6
5
<build-profile instance =" hi" >
7
6
<variables >
8
7
<noindex-content >true</noindex-content >
8
+ <primary-color >purple</primary-color >
9
+ <color-preset >purple</color-preset >
9
10
</variables >
10
11
</build-profile >
11
12
Original file line number Diff line number Diff line change 7
7
start-page =" Introdution.md" >
8
8
9
9
<toc-element topic =" Introdution.md" >
10
- <toc-element topic =" Getting-started.md" />
10
+ <toc-element topic =" Dependency.md" />
11
+ <toc-element topic =" Configuration.md" />
11
12
</toc-element >
12
13
<toc-element topic =" Platforms.md" >
13
14
<toc-element topic =" SENDER.md" />
14
15
</toc-element >
15
- <toc-element topic =" Command-Structure .md" />
16
+ <toc-element topic =" Command.md" />
16
17
<toc-element topic =" Arguments.md" >
17
18
<toc-element topic =" Supported-Types.md" />
18
19
<toc-element topic =" Unsupported-Types-TODO.md" />
Original file line number Diff line number Diff line change 34
34
<description >Created after removal of "| III | Command Str" from LiteCommands</description >
35
35
<accepts >Features.html</accepts >
36
36
</rule >
37
+ <rule id =" dbb0302" >
38
+ <description >Created after removal of "Configuration - Bukkit" from LiteCommands</description >
39
+ <accepts >Configuration-Bukkit.html</accepts >
40
+ </rule >
37
41
</rules >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Command
2
+
3
+ <tldr >
4
+ <p>
5
+ Annotations <shortcut>@Command</shortcut> <shortcut>@Execute</shortcut>
6
+ </p>
7
+ </tldr >
8
+
9
+ The command structure is the most important part of the command. It is the structure that determines how the command will be executed.
10
+
11
+ For example, the command ` /time day `
12
+
13
+ ``` java
14
+ @Command (name = " time" )
15
+ public class TimeCommand {
16
+
17
+ @Execute (name = " day" )
18
+ public void day () {
19
+ // ... set time to day
20
+ }
21
+
22
+ }
23
+ ```
Original file line number Diff line number Diff line change
1
+ # Configuration
2
+
3
+ Create a new instance of ` LiteCommands ` using specific factory for your platform.
4
+
5
+ <tabs >
6
+
7
+ <!-- Bukkit -->
8
+ <tab title =" Bukkit " >
9
+
10
+ ``` Java
11
+ this . liteCommands = LiteCommandsBukkit . builder(" my-plugin" , this )
12
+ .commands(
13
+ new FlyCommand (),
14
+ new GameModeCommand ()
15
+ )
16
+ .build();
17
+ ```
18
+ </tab >
19
+
20
+ <!-- Velocity -->
21
+ <tab title =" Velocity " >
22
+
23
+ ``` Java
24
+ this . liteCommands = LiteVelocityFactory . builder(this . proxyServer)
25
+ .commands(
26
+ new SendCommand (),
27
+ new MoveCommand ()
28
+ )
29
+ .build();
30
+ ```
31
+ </tab >
32
+
33
+ <!-- BungeeCord -->
34
+ <tab title =" BungeeCord " >
35
+
36
+ ``` Java
37
+ this . liteCommands = LiteBungeeFactory . builder(this )
38
+ .commands(
39
+ new SendCommand (),
40
+ new MoveCommand ()
41
+ )
42
+ .build();
43
+ ```
44
+ </tab >
45
+
46
+ <!-- Minestom -->
47
+ <tab title =" Minestom " >
48
+
49
+ ``` Java
50
+ Server server = MinecraftServer . getServer();
51
+ CommandManager commandManager = MinecraftServer . getCommandManager();
52
+
53
+ this . liteCommands = LiteMinestomFactory . builder(server, commandManager)
54
+ .commands(
55
+ new FlyCommand (),
56
+ new GameModeCommand ()
57
+ )
58
+ .build();
59
+ ```
60
+ </tab >
61
+
62
+ <!-- JDA -->
63
+ <tab title =" JDA " >
64
+
65
+ ``` Java
66
+ JDA jda = JDABuilder . createDefault(" token" )
67
+ .build();
68
+
69
+ this . liteCommands = LiteJDAFactory . builder(jda)
70
+ .commands(
71
+ new EmbedCommand (),
72
+ new MessageCommand ()
73
+ )
74
+ .build();
75
+ ```
76
+ </tab >
77
+
78
+
79
+ </tabs >
Original file line number Diff line number Diff line change 1
- # Getting started
1
+ # Dependency
2
2
3
3
This page will guide you through the process of adding LiteCommands to your project.
4
4
<tip >
@@ -43,7 +43,7 @@ Add the following line to your `build.gradle.kts` file in the `dependencies` sec
43
43
<br /><br />
44
44
45
45
``` kotlin
46
- implementation(" dev.rollczi:[[[ARTIFACT_ID|Platforms.md]]]:3.0.1 " )
46
+ implementation(" dev.rollczi:[[[ARTIFACT_ID|Platforms.md]]]:%latest_version% " )
47
47
```
48
48
</tab >
49
49
@@ -56,7 +56,7 @@ Add the following lines to your `pom.xml` file in the `dependencies` section:
56
56
<dependency >
57
57
<groupId >dev.rollczi</groupId >
58
58
<artifactId >[[[ARTIFACT_ID|Platforms.md]]]</artifactId >
59
- <version >3.0.1 </version >
59
+ <version >%latest_version% </version >
60
60
</dependency >
61
61
```
62
62
</tab >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Add the following dependency to your project:
15
15
<tab title =" Gradle KTS " >
16
16
17
17
``` kotlin
18
- implementation(" dev.rollczi:litecommands-adventure-platform:3.0.1 " )
18
+ implementation(" dev.rollczi:litecommands-adventure-platform:%latest_version% " )
19
19
```
20
20
</tab >
21
21
<tab title =" Maven " >
@@ -24,7 +24,7 @@ implementation("dev.rollczi:litecommands-adventure-platform:3.0.1")
24
24
<dependency >
25
25
<groupId >dev.rollczi</groupId >
26
26
<artifactId >litecommands-adventure-platform</artifactId >
27
- <version >3.0.1 </version >
27
+ <version >%latest_version% </version >
28
28
</dependency >
29
29
```
30
30
</tab >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Add the following dependency to your project:
16
16
<tab title =" Gradle KTS " >
17
17
18
18
``` kotlin
19
- implementation(" dev.rollczi:litecommands-adventure:3.0.1 " )
19
+ implementation(" dev.rollczi:litecommands-adventure:%latest_version% " )
20
20
```
21
21
</tab >
22
22
<tab title =" Maven " >
@@ -25,7 +25,7 @@ implementation("dev.rollczi:litecommands-adventure:3.0.1")
25
25
<dependency >
26
26
<groupId >dev.rollczi</groupId >
27
27
<artifactId >litecommands-adventure</artifactId >
28
- <version >3.0.1 </version >
28
+ <version >%latest_version% </version >
29
29
</dependency >
30
30
```
31
31
</tab >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<!DOCTYPE vars SYSTEM "https://resources.jetbrains.com/writerside/1.0/vars.dtd">
3
3
<vars >
4
- <var name =" product" value =" Writerside" />
4
+ <var name =" product" value =" LiteCommands" />
5
+ <var name =" latest_version"
6
+ value =" 3.1.2"
7
+ />
5
8
</vars >
You can’t perform that action at this time.
0 commit comments