diff --git a/src/com/esophose/playerparticles/FixedParticleEffect.java b/src/com/esophose/playerparticles/FixedParticleEffect.java index 4f65d07..a510910 100644 --- a/src/com/esophose/playerparticles/FixedParticleEffect.java +++ b/src/com/esophose/playerparticles/FixedParticleEffect.java @@ -1,5 +1,5 @@ /** - * Copyright Esophose 2016 + * Copyright Esophose 2017 * While using any of the code provided by this plugin * you must not claim it as your own. This plugin may * be modified and installed on a server, but may not @@ -251,7 +251,7 @@ public class FixedParticleEffect { * @return The effect's location */ public Location getLocation() { - return this.location; + return this.location.clone(); } } diff --git a/src/com/esophose/playerparticles/PPlayer.java b/src/com/esophose/playerparticles/PPlayer.java index 9bb401a..2d14cdd 100644 --- a/src/com/esophose/playerparticles/PPlayer.java +++ b/src/com/esophose/playerparticles/PPlayer.java @@ -1,5 +1,5 @@ /** - * Copyright Esophose 2016 + * Copyright Esophose 2017 * While using any of the code provided by this plugin * you must not claim it as your own. This plugin may * be modified and installed on a server, but may not @@ -90,6 +90,7 @@ public class PPlayer { * @return The player's particle style */ public ParticleStyle getParticleStyle() { + if (this.particleStyle == null) return DefaultStyles.NONE; return this.particleStyle; } diff --git a/src/com/esophose/playerparticles/ParticleCommandCompleter.java b/src/com/esophose/playerparticles/ParticleCommandCompleter.java index 1314ccd..7f9423b 100644 --- a/src/com/esophose/playerparticles/ParticleCommandCompleter.java +++ b/src/com/esophose/playerparticles/ParticleCommandCompleter.java @@ -1,5 +1,5 @@ /** - * Copyright Esophose 2016 + * Copyright Esophose 2017 * While using any of the code provided by this plugin * you must not claim it as your own. This plugin may * be modified and installed on a server, but may not diff --git a/src/com/esophose/playerparticles/ParticleCommandExecutor.java b/src/com/esophose/playerparticles/ParticleCommandExecutor.java index cdb25ad..19fcdc3 100644 --- a/src/com/esophose/playerparticles/ParticleCommandExecutor.java +++ b/src/com/esophose/playerparticles/ParticleCommandExecutor.java @@ -1,5 +1,5 @@ /** - * Copyright Esophose 2016 + * Copyright Esophose 2017 * While using any of the code provided by this plugin * you must not claim it as your own. This plugin may * be modified and installed on a server, but may not @@ -36,7 +36,7 @@ import com.esophose.playerparticles.manager.PermissionManager; import com.esophose.playerparticles.styles.DefaultStyles; import com.esophose.playerparticles.styles.api.ParticleStyle; import com.esophose.playerparticles.styles.api.ParticleStyleManager; -import com.esophose.playerparticles.util.ParticlesUtils; +import com.esophose.playerparticles.util.ParticleUtils; public class ParticleCommandExecutor implements CommandExecutor { @@ -244,7 +244,7 @@ public class ParticleCommandExecutor implements CommandExecutor { int data = -1; try { - material = ParticlesUtils.closestMatch(args[0]); + material = ParticleUtils.closestMatch(args[0]); if (material == null) material = Material.matchMaterial(args[0]); if (material == null) throw new Exception(); } catch (Exception e) { @@ -280,7 +280,7 @@ public class ParticleCommandExecutor implements CommandExecutor { int data = -1; try { - material = ParticlesUtils.closestMatch(args[0]); + material = ParticleUtils.closestMatch(args[0]); if (material == null) material = Material.matchMaterial(args[0]); if (material == null) throw new Exception(); } catch (Exception e) { @@ -586,7 +586,7 @@ public class ParticleCommandExecutor implements CommandExecutor { g = Integer.parseInt(args[6]); b = Integer.parseInt(args[7]); } catch (Exception e) { - MessageManager.sendMessage(p, MessageType.CREATE_FIXED_DATA_ERROR, "colr"); + MessageManager.sendMessage(p, MessageType.CREATE_FIXED_DATA_ERROR, "color"); return; } @@ -604,7 +604,7 @@ public class ParticleCommandExecutor implements CommandExecutor { int data = -1; try { - material = ParticlesUtils.closestMatch(args[5]); + material = ParticleUtils.closestMatch(args[5]); if (material == null) material = Material.matchMaterial(args[5]); if (material == null) throw new Exception(); } catch (Exception e) { @@ -630,7 +630,7 @@ public class ParticleCommandExecutor implements CommandExecutor { int data = -1; try { - material = ParticlesUtils.closestMatch(args[5]); + material = ParticleUtils.closestMatch(args[5]); if (material == null) material = Material.matchMaterial(args[5]); if (material == null) throw new Exception(); } catch (Exception e) { diff --git a/src/com/esophose/playerparticles/PlayerParticles.java b/src/com/esophose/playerparticles/PlayerParticles.java index 26647ef..f509aa7 100644 --- a/src/com/esophose/playerparticles/PlayerParticles.java +++ b/src/com/esophose/playerparticles/PlayerParticles.java @@ -1,5 +1,5 @@ /** - * Copyright Esophose 2016 + * Copyright Esophose 2017 * While using any of the code provided by this plugin * you must not claim it as your own. This plugin may * be modified and installed on a server, but may not @@ -13,16 +13,13 @@ * Fix arrow style particles staying after an arrow is considered dead (in rare cases this occurred) * Fix SQL queries getting logged to console when database-enable is set to true * Fix tab completion, it stopped working at one point and I didn't notice until now + * Fix style 'arrows' not working with tipped/spectral arrows + * Added fixed particle effects, see how to use them on the main plugin page + * Requires permission playerparticles.fixed or playerparticles.* + * Infinite fixed effects with permission playerparticles.fixed.unlimited (playerparticles.* does not grant this permission) * Added new style 'thick' TODO: - + Add command /pp fixed - - /pp fixed create