Skip to content

Commit 8f0618e

Browse files
committed
Update for Folia
1 parent 3767eb6 commit 8f0618e

File tree

3 files changed

+48
-13
lines changed

3 files changed

+48
-13
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Folia
2+
3+
Folia is a <mark>high-performance</mark> fork of Paper, designed to improve server performance by asynchronously processing regions.
4+
The Folia extension provides the necessary integration for LiteCommands to work seamlessly with Folia server.
5+
6+
### Adding the dependency
7+
8+
---
9+
10+
::: code-group
11+
12+
```kotlin [Gradle Kotlin]
13+
implementation("dev.rollczi:litecommands-folia:{version:litecommands}")
14+
```
15+
16+
```groovy [Gradle Groovy]
17+
implementation "dev.rollczi:litecommands-folia:{version:litecommands}"
18+
```
19+
20+
```xml [Maven]
21+
<dependency>
22+
<groupId>dev.rollczi</groupId>
23+
<artifactId>litecommands-folia</artifactId>
24+
<version>{version:litecommands}</version>
25+
</dependency>
26+
```
27+
28+
:::
29+
30+
### Registering the extension
31+
32+
Register the extension in the `LiteCommands` builder:
33+
34+
```java
35+
.extension(new FoliaExtension(this))
36+
```

docs/documentation/litecommands/features/asynchronous/scheduler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ You can change a scheduler in LiteCommands builder:
2525
| Fabric (client) | [FabricClientScheduler](https://github.com/Rollczi/LiteCommands/blob/master/litecommands-fabric/src/main/java/dev/rollczi/litecommands/fabric/client/FabricClientScheduler.java) |
2626
| Sponge | [SpongeScheduler](https://github.com/Rollczi/LiteCommands/blob/master/litecommands-sponge/src/dev/rollczi/litecommands/sponge/SpongeScheduler.java) |
2727
| JDA | `default` |
28-
| Folia | Coming Soon... |
28+
| Folia | [FoliaScheduler](https://github.com/Rollczi/LiteCommands/blob/master/litecommands-folia/src/dev/rollczi/litecommands/folia/FoliaScheduler.java) |
2929

3030
`default` - [SchedulerExecutorPoolImpl](https://github.com/Rollczi/LiteCommands/blob/master/litecommands-core/src/dev/rollczi/litecommands/scheduler/SchedulerExecutorPoolImpl.java)

docs/documentation/litecommands/platforms.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
LiteCommands supports multiple platforms. You can find all of them in the table below.
44

5-
| Platform Name | Compatible with | Compatible version |
6-
|-----------------------------|----------------------------------|---------------------|
7-
| `litecommands-bukkit` | Bukkit / Spigot / Paper / Purpur | 1.8.8 - 1.21.5 |
8-
| `litecommands-velocity` | Velocity | 3.2.0 |
9-
| `litecommands-bungeecord` | BungeeCord / Waterfall | 1.20-R0.1 |
10-
| `litecommands-minestom` | Minestom | 1.20.6 |
11-
| `litecommands-sponge` | Sponge | 8.2.0 |
12-
| `litecommands-fabric` | Fabric | See current version |
13-
| `litecommands-jda` | JDA | 5.0.2 |
14-
| `litecommands-telegrambots` | TelegramBots | 8.2.0 |
15-
| - | Folia | - |
5+
| Platform Name | Compatible with | Compatible version |
6+
|--------------------------------------------------------|----------------------------------|---------------------|
7+
| `litecommands-bukkit` | Bukkit / Spigot / Paper / Purpur | 1.8.8 - 1.21.8 |
8+
| `litecommands-folia` [(extension)](./extensions/folia) | Folia | 1.20 - 1.21.6 |
9+
| `litecommands-velocity` | Velocity | 3.4.0 |
10+
| `litecommands-bungeecord` | BungeeCord / Waterfall | 1.21-R0.3 |
11+
| `litecommands-minestom` | Minestom | 1.21.8 |
12+
| `litecommands-sponge` | Sponge | 13.0.0 |
13+
| `litecommands-fabric` | Fabric | See current version |
14+
| `litecommands-jda` | JDA | 5.6.1 |
15+
| `litecommands-telegrambots` | TelegramBots | 9.0.0 |
1616

1717
::: tip How to use it?
1818
To use LiteCommands with a specific platform, you need to add the platform dependency to your project.
@@ -34,5 +34,4 @@ You can find the sender type for each platform in the table below:
3434
| Fabric | `ServerCommandSource` |
3535
| JDA | `User` |
3636
| TelegramBots | `User` |
37-
| Folia | - |
3837

0 commit comments

Comments
 (0)