Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
library:minedown:usage [2020/09/16 15:40] – [How to use it] phoenix616library:minedown:usage [2020/09/22 23:22] – Add adventure example phoenix616
Line 3: Line 3:
 The library's main API access is through the [MineDown.class](https://docs.phoenix616.dev/minedown/de/themoep/minedown/MineDown.html) and its parse methods. The library's main API access is through the [MineDown.class](https://docs.phoenix616.dev/minedown/de/themoep/minedown/MineDown.html) and its parse methods.
  
-E.g. you can use it like this in your Spigot plugin:+===== BungeeCord-chat API on Spigot ===== 
 ```java ```java
 player.spigot().sendMessage(new MineDown(rawMessage).replace(replacements).toComponent()); player.spigot().sendMessage(new MineDown(rawMessage).replace(replacements).toComponent());
Line 13: Line 14:
  
 Take a look at the [MineDown JavaDocs](https://docs.minebench.de/minedown/) for more Take a look at the [MineDown JavaDocs](https://docs.minebench.de/minedown/) for more
 +detailed info on the library and the included classes.
 +
 +===== kyori-adventure on Spigot =====
 +
 +```java
 +BukkitAudiences.create(plugin).player(player).sendMessage(new MineDown(rawMessage).replace(replacements).toComponent());
 +```
 +or with a static approach:
 +```java
 +BukkitAudiences.create(plugin).player(player).sendMessage(MineDown.parse(rawMessage, replacements));
 +```
 +Take a look at the [MineDown JavaDocs](https://docs.minebench.de/minedown-adventure/) for more
 detailed info on the library and the included classes. detailed info on the library and the included classes.