Skip to content

Commit bc22213

Browse files
committed
Use more Paper/Spigot preference switches
1 parent eb7d287 commit bc22213

File tree

4 files changed

+61
-35
lines changed

4 files changed

+61
-35
lines changed

docs/en/dev-setup/setup.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
order: 1
3-
preferences: ["build-system"]
3+
preferences: ["build-system", "paper-spigot"]
44
authors:
55
- JorelAli
66
- DerEchtePilz
@@ -46,8 +46,8 @@ If you've never used a build system before, I highly recommend it! It makes it e
4646
4747
- Add the dependency to your `pom.xml`:
4848

49-
:::tabs
50-
===Paper
49+
<div class="paper">
50+
5151
```xml
5252
<dependencies>
5353
<dependency>
@@ -58,7 +58,10 @@ If you've never used a build system before, I highly recommend it! It makes it e
5858
</dependency>
5959
</dependencies>
6060
```
61-
===Spigot
61+
62+
</div>
63+
<div class="spigot">
64+
6265
```xml
6366
<dependencies>
6467
<dependency>
@@ -69,7 +72,8 @@ If you've never used a build system before, I highly recommend it! It makes it e
6972
</dependency>
7073
</dependencies>
7174
```
72-
:::
75+
76+
</div>
7377

7478
</div>
7579
<div class="gradle">
@@ -102,38 +106,46 @@ If you've never used a build system before, I highly recommend it! It makes it e
102106

103107
<div class="groovy">
104108

105-
:::tabs
106-
===Paper
109+
<div class="paper">
110+
107111
```groovy
108112
dependencies {
109113
compileOnly "dev.jorel:commandapi-paper-core:11.0.0-SNAPSHOT"
110114
}
111115
```
112-
===Spigot
116+
117+
</div>
118+
<div class="spigot">
119+
113120
```groovy
114121
dependencies {
115122
compileOnly "dev.jorel:commandapi-spigot-core:11.0.0-SNAPSHOT"
116123
}
117124
```
118-
:::
125+
126+
</div>
119127

120128
</div>
121129
<div class="kts">
122130

123-
:::tabs
124-
===Paper
131+
<div class="paper">
132+
125133
```kotlin
126134
dependencies {
127135
compileOnly("dev.jorel:commandapi-paper-core:11.0.0-SNAPSHOT")
128136
}
129137
```
130-
===Spigot
138+
139+
</div>
140+
<div class="spigot">
141+
131142
```kotlin
132143
dependencies {
133144
compileOnly("dev.jorel:commandapi-spigot-core:11.0.0-SNAPSHOT")
134145
}
135146
```
136-
:::
147+
148+
</div>
137149
</div>
138150

139151
</div>

docs/en/dev-setup/shading.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ The `onDisable()` method disables the CommandAPI gracefully. This should be plac
110110

111111
:::tip Example – Setting up the CommandAPI in your plugin
112112

113+
<div>
113114
<div class="paper">
114115

115116
:::tabs
@@ -129,6 +130,7 @@ The `onDisable()` method disables the CommandAPI gracefully. This should be plac
129130
<<< @/../reference-code/spigot/src/main/kotlin/devsetup/Shading.kt#shadingExample
130131
:::
131132

133+
</div>
132134
</div>
133135

134136
## A note about relocating

docs/en/kotlin-dsl/intro.md

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
order: 1
3-
preferences: ["build-system"]
3+
preferences: ["build-system", "paper-spigot"]
44
authors:
55
- JorelAli
66
- willkroboth
@@ -20,9 +20,8 @@ To install the DSL, you need to add the Kotlin DSL dependency into your build sc
2020
### Adding the dependency
2121

2222
<div class="maven">
23+
<div class="paper">
2324

24-
:::tabs
25-
===Paper
2625
```xml
2726
<dependencies>
2827
<dependency>
@@ -32,17 +31,21 @@ To install the DSL, you need to add the Kotlin DSL dependency into your build sc
3231
</dependency>
3332
</dependencies>
3433
```
35-
===Spigot
34+
35+
</div>
36+
<div class="spigot">
37+
3638
```xml
3739
<dependencies>
3840
<dependency>
3941
<groupId>dev.jorel</groupId>
4042
<artifactId>commandapi-kotlin-spigot</artifactId>
41-
<version>11.0.0</version>
43+
<version>11.0.0-SNAPSHOT</version>
4244
</dependency>
4345
</dependencies>
4446
```
45-
:::
47+
48+
</div>
4649

4750
Next, you need to add Kotlin to your project. For this, you first need to add the dependency:
4851

@@ -117,38 +120,45 @@ Next, you need to add the dependency:
117120

118121
<div class="groovy">
119122

120-
:::tabs
121-
===Paper
123+
<div class="paper">
124+
122125
```groovy
123126
dependencies {
124-
implementation "dev.jorel:commandapi-kotlin-paper:11.0.0"
127+
implementation "dev.jorel:commandapi-kotlin-paper:11.0.0-SNAPSHOT"
125128
}
126129
```
127-
===Spigot
130+
131+
</div>
132+
<div class="spigot">
133+
128134
```groovy
129135
dependencies {
130-
implementation "dev.jorel:commandapi-kotlin-spigot:11.0.0"
136+
implementation "dev.jorel:commandapi-kotlin-spigot:11.0.0-SNAPSHOT"
131137
}
132138
```
133-
:::
134139

140+
</div>
135141
</div>
136142
<div class="kts">
137143

138-
:::tabs
139-
===Paper
144+
<div class="paper">
145+
140146
```kotlin
141147
dependencies {
142-
implementation("dev.jorel:commandapi-kotlin-paper:11.0.0")
148+
implementation("dev.jorel:commandapi-kotlin-paper:11.0.0-SNAPSHOT")
143149
}
144150
```
145-
===Spigot
151+
152+
</div>
153+
<div class="spigot">
154+
146155
```kotlin
147156
dependencies {
148-
implementation("dev.jorel:commandapi-kotlin-spigot:11.0.0")
157+
implementation("dev.jorel:commandapi-kotlin-spigot:11.0.0-SNAPSHOT")
149158
}
150159
```
151-
:::
160+
161+
</div>
152162

153163
</div>
154164

update.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ sed -i "s/<version>$oldVer<\/version>/<version>$newVer<\/version>/" docs/en/velo
1717

1818
# Update CommandAPI version in documentation files (Gradle)
1919
sed -i "s/dev.jorel:commandapi-annotations:$oldVer/dev.jorel:commandapi-annotations:$newVer/" docs/en/dev-setup/annotations.md
20-
sed -i "s/dev.jorel:commandapi-bukkit-core:$oldVer/dev.jorel:commandapi-bukkit-core:$newVer/" docs/en/dev-setup/setup.md
21-
sed -i "s/dev.jorel:commandapi-bukkit-shade:$oldVer/dev.jorel:commandapi-bukkit-shade:$newVer/" docs/en/dev-setup/shading.md
22-
sed -i "s/dev.jorel:commandapi-bukkit-shade-mojang-mapped:$oldVer/dev.jorel:commandapi-bukkit-shade-mojang-mapped:$newVer/" docs/en/dev-setup/shading.md
23-
sed -i "s/dev.jorel:commandapi-bukkit-kotlin:$oldVer/dev.jorel:commandapi-bukkit-kotlin:$newVer/" docs/en/kotlin-dsl/intro.md
20+
sed -i "s/dev.jorel:commandapi-paper-core:$oldVer/dev.jorel:commandapi-paper-core:$newVer/" docs/en/dev-setup/setup.md
21+
sed -i "s/dev.jorel:commandapi-spigot-core:$oldVer/dev.jorel:commandapi-spigot-core:$newVer/" docs/en/dev-setup/setup.md
22+
sed -i "s/dev.jorel:commandapi-paper-shade:$oldVer/dev.jorel:commandapi-paper-shade:$newVer/" docs/en/dev-setup/shading.md
23+
sed -i "s/dev.jorel:commandapi-spigot-shade:$oldVer/dev.jorel:commandapi-spigot-shade:$newVer/" docs/en/dev-setup/shading.md
24+
sed -i "s/dev.jorel:commandapi-kotlin-paper:$oldVer/dev.jorel:commandapi-kotlin-paper:$newVer/" docs/en/kotlin-dsl/intro.md
25+
sed -i "s/dev.jorel:commandapi-kotlin-spigot:$oldVer/dev.jorel:commandapi-kotlin-spigot:$newVer/" docs/en/kotlin-dsl/intro.md
2426
sed -i "s/dev.jorel:commandapi-bukkit-test-toolkit:$oldVer/dev.jorel:commandapi-bukkit-test-toolkit:$newVer/" docs/en/test/setup.md
2527
sed -i "s/dev.jorel:commandapi-bukkit-core:$oldVer/dev.jorel:commandapi-bukkit-core:$newVer/" docs/en/test/setup.md
2628
sed -i "s/dev.jorel:commandapi-velocity-shade:$oldVer/dev.jorel:commandapi-velocity-shade:$newVer/" docs/en/velocity/intro.md

0 commit comments

Comments
 (0)