You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This library aims to completely replace [Fanciful](https://bukkit.org/threads/li
6
6
7
7
## Installation
8
8
9
+
### Maven
9
10
For those of you using Maven, just add the following to your `pom.xml` file:
10
11
11
12
```xml
@@ -23,6 +24,23 @@ For those of you using Maven, just add the following to your `pom.xml` file:
23
24
</dependency>
24
25
```
25
26
27
+
### Gradle
28
+
If you're using Gradle, add this to your `build.gradle` file:
29
+
30
+
```gradle
31
+
repositories {
32
+
maven { url 'https://rayzr.dev/repo/' }
33
+
}
34
+
```
35
+
36
+
```gradle
37
+
dependencies {
38
+
compile 'me.rayzr522:jsonmessage:1.2.0'
39
+
}
40
+
```
41
+
42
+
### Other
43
+
26
44
Otherwise, just drag n' drop the [single class file](https://github.com/Rayzr522/JSONMessage/blob/master/src/main/java/me/rayzr522/jsonmessage/JSONMessage.java) into your project.
27
45
> If you are not yet using Maven, you should be. Really, you should. It's amazing.
28
46
@@ -151,6 +169,8 @@ Method | Description
151
169
`bar(int)` | Creates a horizontal divider bar of the given length
152
170
`create(String)` | Creates a new JSONMessage with the given text as a starting point
153
171
`color(ChatColor)` | Sets the color of the current message part
172
+
`color(String)` | Same as `color(ChatColor)` but allows the usage of HEX colors in 1.16 and newer
173
+
`font(String)` | Changes the font used for the text. Only usable in 1.16 and newer
154
174
`newline()` | Inserts a newline. It really isn't necessary, you can just use `\n` if you want
155
175
`style(ChatColor)` | Adds a style to the current message part
0 commit comments