Updated color to purple

This commit is contained in:
Logan Saso
2025-10-04 21:33:23 -07:00
parent c56e854dff
commit 9395065465
3 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ Once installed, the plugin automatically works with your existing WorldGuard reg
1. Create a WorldGuard region: `/rg define myregion`
2. Set the entry flag to deny: `/rg flag myregion entry deny`
3. Players who cannot enter the region will see a cyan forcefield around it
3. Players who cannot enter the region will see a purple forcefield around it
### Permissions
@@ -61,9 +61,9 @@ render-walls: true
# Particle color (RGB 0-255)
particle-color:
red: 0
green: 255
blue: 255
red: 147
green: 112
blue: 219
# Particle size (0.5-2.0 recommended)
particle-size: 1.0

View File

@@ -33,10 +33,10 @@ public class ForcefieldRenderer {
this.plugin = plugin;
this.particleSpacing = plugin.getConfig().getDouble("particle-spacing", 0.5);
// Get color from config or use default (cyan)
int red = plugin.getConfig().getInt("particle-color.red", 0);
int green = plugin.getConfig().getInt("particle-color.green", 255);
int blue = plugin.getConfig().getInt("particle-color.blue", 255);
// Get color from config or use default (purple)
int red = plugin.getConfig().getInt("particle-color.red", 147);
int green = plugin.getConfig().getInt("particle-color.green", 112);
int blue = plugin.getConfig().getInt("particle-color.blue", 219);
float size = (float) plugin.getConfig().getDouble("particle-size", 1.0);
this.dustOptions = new Particle.DustOptions(Color.fromRGB(red, green, blue), size);

View File

@@ -17,9 +17,9 @@ render-walls: true
# Particle color (RGB values from 0-255)
particle-color:
red: 0
green: 255
blue: 255
red: 147
green: 112
blue: 219
# Particle size (recommended range: 0.5 to 2.0)
particle-size: 1.0