mirror of
https://github.com/loganintech/render-region-forcefield.git
synced 2026-05-30 22:31:15 +00:00
Updated color to purple
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user