Skip to content

Commit a329d76

Browse files
committed
Update information
1 parent 0590f7f commit a329d76

File tree

3 files changed

+31
-16
lines changed

3 files changed

+31
-16
lines changed

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: [CroaBeast]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: croabeast
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: https://www.paypal.com/donate/?hosted_button_id=FQQR9FEHPLNQL

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.idea/
2+
/PrismaticAPI.iml

README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ PrismaticAPI is a powerful, versatile utility designed to enhance text formattin
88

99
The **PrismaticAPI** package offers a suite of methods to:
1010

11-
- **Map Colors:**
12-
Convert AWT `Color` objects to Bukkit `ChatColor` using a predefined color map, ensuring that both legacy and modern RGB color support are handled.
13-
1411
- **Apply Color Effects:**
1512
Apply gradient and rainbow effects to strings. These methods generate arrays of `ChatColor` objects that are then applied character-by-character to create smooth color transitions.
1613

@@ -51,23 +48,24 @@ All these functionalities are provided in a single, unified API that makes it si
5148
package com.example.myplugin;
5249

5350
import me.croabeast.prismatic.PrismaticAPI;
51+
import org.bukkit.Bukkit;
5452
import org.bukkit.entity.Player;
5553
import org.bukkit.plugin.java.JavaPlugin;
5654

5755
public class MyPlugin extends JavaPlugin {
5856

59-
@Override
60-
public void onEnable() {
61-
// Example player (could be obtained from an event)
62-
Player player = /* get player reference */;
63-
64-
// Colorize a message using PrismaticAPI
65-
String message = "&aHello, &bworld!";
66-
String coloredMessage = PrismaticAPI.colorize(player, message);
67-
68-
// Send the colorized message
69-
player.sendMessage(coloredMessage);
70-
}
57+
@Override
58+
public void onEnable() {
59+
// Example player (could be obtained from an event)
60+
Player player = Bukkit.getPlayer("a player reference");
61+
62+
// Colorize a message using PrismaticAPI
63+
String message = "&aHello, &bworld!";
64+
String coloredMessage = PrismaticAPI.colorize(player, message);
65+
66+
// Send the colorized message
67+
player.sendMessage(coloredMessage);
68+
}
7169
}
7270
```
7371

@@ -87,7 +85,7 @@ public class MyPlugin extends JavaPlugin {
8785
public void onEnable() {
8886
// Define the start and end colors for the gradient
8987
Color startColor = new Color(255, 0, 0); // Red
90-
Color endColor = new Color(0, 0, 255); // Blue
88+
Color endColor = new Color(0, 0, 255); // Blue
9189

9290
// Apply a gradient effect to the text "Gradient Text"
9391
String gradientText = PrismaticAPI.applyGradient("Gradient Text", startColor, endColor, false);

0 commit comments

Comments
 (0)