@@ -10,23 +10,31 @@ Imperat is a generic command dispatching framework, It can work almost on every
10
10
so to depend on any of the platforms you must first declare our repoistory in your build tool configuration file as follows:
11
11
<Tabs >
12
12
<TabItem value="maven" label="Maven pom.xml" default>
13
- MAVEN REPO
13
+ Maven central (default)
14
14
</TabItem>
15
15
16
16
<TabItem value="gradle" label="Gradle build.gradle">
17
- GRADLE REPO
17
+ repositories {
18
+ mavenCentral();
19
+ }
18
20
</TabItem>
19
21
</Tabs >
20
22
21
23
In order to add the dependency of any platform, you should first add the dependency of the core module, then add the
22
24
platform's dependency as below:
23
25
<Tabs >
24
26
<TabItem value="maven" label="Maven" default>
25
- MAVEN DEPENDENCIES
27
+
28
+ <dependency>
29
+ <groupId>dev.velix</groupId>
30
+ <artifactId>imperat-PLATFORM</artifactId>
31
+ <version>VERSION</version>
32
+ </dependency>
33
+
26
34
</TabItem>
27
35
28
- <TabItem value="gradle" label="Gradle">
29
- GRADLE DEPENDENCIES
36
+ <TabItem value="gradle" label="Gradle (short) ">
37
+ implementation "dev.velix:imperat-PLATFORM:VERSION"
30
38
</TabItem>
31
39
</Tabs >
32
40
@@ -39,6 +47,15 @@ Imperat currently has implementations for the current minecraft-related platform
39
47
- Bukkit/Spigot/Paper
40
48
- Bungeecord
41
49
50
+ ::: tip [ Pro Tip]
51
+ You can use and integrate Imperat with Mojang's Brigadier
52
+ you can do the following after initializing Imperat and BEFORE registering any commands.
53
+ ``` java
54
+ imperat. applyBrigadier();
55
+ ```
56
+
57
+ :::
58
+
42
59
### Bukkit
43
60
The ` BukkitImperat ` is the impl for Imperat on bukkit platform.
44
61
The command source in bukkit is called ` BukkitSource ` .
@@ -50,6 +67,7 @@ You are free to make use of them.
50
67
### Bungee
51
68
SAME AS BUKKIT but the prefix is ` Bungee `
52
69
70
+
53
71
## Other platforms
54
72
Coming soon...
55
73
0 commit comments