Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
library:minedown:usage [2020/09/15 14:22] – [Artifact] Add info about velocity phoenix616library:minedown:usage [2020/10/06 22:36] – Update version to 1.6.2 phoenix616
Line 1: Line 1:
 ====== How to use it ====== ====== How to use it ======
  
-The library's main API access is through the [MineDown.class](https://docs.minebench.de/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. 
 + 
 +===== BungeeCord-chat API on Spigot =====
  
-E.g. you can use it like this in your Spigot plugin: 
 ```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-adventure 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.
  
Line 39: Line 52:
         <groupId>de.themoep</groupId>         <groupId>de.themoep</groupId>
         <artifactId>minedown</artifactId>         <artifactId>minedown</artifactId>
-        <version>1.6.1-SNAPSHOT</version>+        <version>1.6.2-SNAPSHOT</version>
         <scope>compile</scope>         <scope>compile</scope>
     </dependency>     </dependency>
Line 51: Line 64:
         <groupId>de.themoep</groupId>         <groupId>de.themoep</groupId>
         <artifactId>minedown-adventure</artifactId>         <artifactId>minedown-adventure</artifactId>
-        <version>1.6.1-SNAPSHOT</version>+        <version>1.6.2-SNAPSHOT</version>
         <scope>compile</scope>         <scope>compile</scope>
     </dependency>     </dependency>