mirror of
https://github.com/loganintech/render-region-forcefield.git
synced 2026-05-30 22:31:15 +00:00
More updates
This commit is contained in:
@@ -111,17 +111,28 @@ public class ForcefieldCommand implements CommandExecutor, TabCompleter {
|
||||
plugin.getConfig().getLong("update-interval-ticks", 20L) + " ticks");
|
||||
sender.sendMessage(ChatColor.YELLOW + "Max Render Distance: " + ChatColor.WHITE +
|
||||
plugin.getConfig().getInt("max-render-distance", 100) + " blocks");
|
||||
sender.sendMessage(ChatColor.YELLOW + "Particle Spacing: " + ChatColor.WHITE +
|
||||
plugin.getConfig().getDouble("particle-spacing", 0.5) + " blocks");
|
||||
sender.sendMessage(ChatColor.YELLOW + "Render Walls: " + ChatColor.WHITE +
|
||||
(plugin.getConfig().getBoolean("render-walls", true) ? "Yes" : "No"));
|
||||
|
||||
sender.sendMessage(ChatColor.GOLD + "Particles:");
|
||||
sender.sendMessage(ChatColor.YELLOW + " Enabled: " + ChatColor.WHITE +
|
||||
(plugin.getConfig().getBoolean("render-particles", true) ? "Yes" : "No"));
|
||||
sender.sendMessage(ChatColor.YELLOW + " Spacing: " + ChatColor.WHITE +
|
||||
plugin.getConfig().getDouble("particle-spacing", 0.5) + " blocks");
|
||||
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);
|
||||
sender.sendMessage(ChatColor.YELLOW + "Particle Color: " + ChatColor.WHITE +
|
||||
sender.sendMessage(ChatColor.YELLOW + " Color: " + ChatColor.WHITE +
|
||||
"RGB(" + red + ", " + green + ", " + blue + ")");
|
||||
|
||||
sender.sendMessage(ChatColor.GOLD + "Blocks:");
|
||||
sender.sendMessage(ChatColor.YELLOW + " Enabled: " + ChatColor.WHITE +
|
||||
(plugin.getConfig().getBoolean("render-blocks", true) ? "Yes" : "No"));
|
||||
sender.sendMessage(ChatColor.YELLOW + " Spacing: " + ChatColor.WHITE +
|
||||
plugin.getConfig().getDouble("block-spacing", 1.0) + " blocks");
|
||||
sender.sendMessage(ChatColor.YELLOW + " Material: " + ChatColor.WHITE +
|
||||
plugin.getConfig().getString("block-material", "PURPLE_STAINED_GLASS_PANE"));
|
||||
|
||||
sender.sendMessage(ChatColor.YELLOW + "Online Players: " + ChatColor.WHITE +
|
||||
plugin.getServer().getOnlinePlayers().size());
|
||||
|
||||
|
||||
@@ -269,6 +269,10 @@ public class ForcefieldRenderer {
|
||||
* Spawns a single particle at the specified location for a player.
|
||||
*/
|
||||
private void spawnParticle(@NotNull Player player, @NotNull World world, double x, double y, double z) {
|
||||
if (!plugin.getConfig().getBoolean("render-particles", true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Location location = new Location(world, x, y, z);
|
||||
player.spawnParticle(Particle.DUST, location, 1, 0, 0, 0, 0, dustOptions);
|
||||
}
|
||||
|
||||
@@ -10,14 +10,18 @@ update-interval-ticks: 20
|
||||
# Reducing this can improve performance on servers with many regions
|
||||
max-render-distance: 100
|
||||
|
||||
# Distance between particles (in blocks)
|
||||
# Smaller values = more particles = more detailed forcefields but more performance intensive
|
||||
particle-spacing: 0.5
|
||||
|
||||
# Whether to render the walls (faces) of regions, or just the edges
|
||||
# Setting to false will only render the outlines/edges
|
||||
render-walls: true
|
||||
|
||||
# Particle rendering settings
|
||||
# Whether to render particles
|
||||
render-particles: true
|
||||
|
||||
# Distance between particles (in blocks)
|
||||
# Smaller values = more particles = more detailed forcefields but more performance intensive
|
||||
particle-spacing: 0.5
|
||||
|
||||
# Particle color (RGB values from 0-255)
|
||||
particle-color:
|
||||
red: 147
|
||||
|
||||
Reference in New Issue
Block a user