MiniPlaceholders Плагін для Minecraft 1.20.1, 1.21.1
MiniMessage Component-based Placeholders API for Minecraft Platforms
MiniPlaceholders
MiniMessage Component-based Placeholders API for Minecraft Platforms
Compatibility
- Paper 1.21+
- Velocity 3.4.0+
- Fabric 1.21.4+
- Sponge API 12+
User Usage
Check our user usage wiki
API
Check the available Javadocs
Or check the Developer Wiki
Java
class Main { public static void registerExpansion() { final Expansion expansion = Expansion.builder("my-expansion") .audiencePlaceholder(Player.class, "name", (player, ctx, queue) -> { return Tag.selfClosingInserting(player.getName()); }) .globalPlaceholder("tps", (ctx, queue) -> Tag.selfClosingInserting(Component.text(Bukkit.getTps()[0])) ).build;
expansion.register();
Player player; final TagResolver playerResolver = MiniPlaceholders.audiencePlaceholders(); player.sendMessage(miniMessage().deserialize("Player Name: ", player, playerResolver)); } }
Kotlin
fun register() { val expansion = expansion("my-expansion") { audience("name") { aud, _, _ -> aud.getName().asClosingTag() } global("tps") { _, _ -> Component.text(Bukkit.getTps()[0]).asInsertingTag() } }
expansion.register()
val player: Player val playerResolver = MiniPlaceholders.audiencePlaceholders() player.sendMessage(miniMessage().deserialize("Player Name: ", player, playerResolver)) }
Як встановити MiniPlaceholders
A server on Paper, Purpur, Folia or Velocity
The plugin runs on the server core for Minecraft 1.7.2–26.2; players do not need to install anything.
File goes into the plugins folder
Download the file MiniPlaceholders-Paper-3.2.0.jar (239 KB) and put it into the server’s plugins folder.
Restart the server
On startup the plugin creates its own settings folder in plugins.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
Версії
Із залежностями
| Minecraft | Завантажувач | Файл | Дії |
|---|---|---|---|
| 26.2 | Folia, Paper, Purpur | 26.2239 КБ | |
| 26.1 | Folia, Paper, Purpur | 26.1239 КБ | |
| 1.21.11 | Folia, Paper, Purpur | 1.21.11239 КБ | |
| 1.21 | Folia, Paper, Purpur | 1.21239 КБ | |
| 1.20.1 | Velocity | 1.20.1238 КБ | |
| 1.19.2 | Velocity | 1.19.2238 КБ | |
| 1.18.2 | Velocity | 1.18.2238 КБ | |
| 1.16.5 | Velocity | 1.16.5238 КБ |
Контент, що його потребує
Відгуки
Станьте першим, хто оцінить MiniPlaceholders




