v4.5 Update

Bug fixes
This commit is contained in:
Esophose 2017-05-18 18:20:51 -06:00
parent cfa846604f
commit 9c7659a092
5 changed files with 91 additions and 84 deletions

View file

@ -1,5 +1,8 @@
== UPDATING WILL DELETE YOUR CONFIG.YML == == UPDATING WILL DELETE YOUR CONFIG.YML ==
* Create a backup of your config.yml if you wish to import all your old settings! * Create a backup of your config.yml if you wish to import all your old settings!
=== v4.5 ===
* Fix issue with the style 'halo' that caused 10 errors per second to be printed to the config. These were listed as "java.lang.NullPointerException" or "Task #### for PlayerParticles generated an exception". Thanks to everybody who helped find this error. (It's been in the plugin for over 6 months somehow)
* Fix a rare issue with the update checker that would cause the plugin to fail loading if there was no internet connection or the Curse API servers were down. It will now fail without an error and a notice will be printed to the console.
=== v4.4 === === v4.4 ===
* Fix problems with subversions * Fix problems with subversions
* Fix issues with custom style plugins * Fix issues with custom style plugins
@ -32,98 +35,98 @@
* You can now view the spawned particles from 2x as far away * You can now view the spawned particles from 2x as far away
* Checking disabled worlds is now taken from cache * Checking disabled worlds is now taken from cache
=== v4.1 === === v4.1 ===
Added support for the 1.11 particles 'totem' and 'spit' * Added support for the 1.11 particles 'totem' and 'spit'
Added new style 'cube' - it should be self explanatory * Added new style 'cube' - it should be self explanatory
Added full plugin message configuration * Added full plugin message configuration
Fixed odd coloring of some messages * Fixed odd coloring of some messages
Fixed missing message entry in config, nobody probably noticed * Fixed missing message entry in config, nobody probably noticed
Maintains support for 1.11, 1.10, 1.9, 1.8, and 1.7 - that's a lot! * Maintains support for 1.11, 1.10, 1.9, 1.8, and 1.7 - that's a lot!
=== v4 === === v4 ===
Changes some permissions, make sure to update those * Changes some permissions, make sure to update those
Changed some commands, make sure you check up on those * Changed some commands, make sure you check up on those
Added four new particles, fallingdust, blockcrack, iconcrack, blockdust * Added four new particles, fallingdust, blockcrack, iconcrack, blockdust
Added new command /pp data - Allows you to modify effect data * Added new command /pp data - Allows you to modify effect data
Colorable particles can now be colored! * Colorable particles can now be colored!
Particles no longer show up in spectator mode * Particles no longer show up in spectator mode
Added Styles API, a way for developers to add more styles to the plugin * Added Styles API, a way for developers to add more styles to the plugin
v4.1 will come out relatively soon with any found bugs fixes and the remainder of the features v4.1 will come out relatively soon with any found bugs fixes and the remainder of the features
=== v3.9 === === v3.9 ===
Added 1.10+ support (Still support with 1.7, 1.8, and 1.9) * Added 1.10+ support (Still support with 1.7, 1.8, and 1.9)
Fixed a bug preventing the message-no-styles from not displaying * Fixed a bug preventing the message-no-styles from not displaying
Removed leading comma from /pp styles * Removed leading comma from /pp styles
Reorganized command executors in code * Reorganized command executors in code
Reorganized how customized messages work in code * Reorganized how customized messages work in code
Did not add the new particle 'fallingdust' (Will be in PlayerParticles v4 update) * Did not add the new particle 'fallingdust' (Will be in PlayerParticles v4 update)
Changed GitHub Repository name from 'PlayerParticles-3' to 'PlayerParticles' (https://github.com/Esophose/PlayerParticles) * Changed GitHub Repository name from 'PlayerParticles-3' to 'PlayerParticles' (https://github.com/Esophose/PlayerParticles)
This version was not tested on any other version than 1.10. If you have problems on >1.10 versions post a comment. * This version was not tested on any other version than 1.10. If you have problems on >1.10 versions post a comment.
=== v3.8 === === v3.8 ===
Added new style 'orb' (Same as 'quadhelix' except it doesn't go up and down) * Added new style 'orb' (Same as 'quadhelix' except it doesn't go up and down)
Fixed a bug with the 'move' style relating to permissions * Fixed a bug with the 'move' style relating to permissions
Added some stuff to the plugin.yml, will affect nothing * Added some stuff to the plugin.yml, will affect nothing
Cleaned up some code * Cleaned up some code
=== v3.7 === === v3.7 ===
Added new update checking system (Can be disabled by setting check-updates to false in config.yml) * Added new update checking system (Can be disabled by setting check-updates to false in config.yml)
Update system will notify OPs when they join the server, and will be shown in the console when the plugin loads * Update system will notify OPs when they join the server, and will be shown in the console when the plugin loads
Added new style "quadhelix" - Try it out! * Added new style "quadhelix" - Try it out!
Removed /pp reload (This never worked properly, restart or reload your server instead) * Removed /pp reload (This never worked properly, restart or reload your server instead)
Changed default config value for disabled-worlds * Changed default config value for disabled-worlds
Changed colors for the default prefix * Changed colors for the default prefix
Fixed some possible console errors * Fixed some possible console errors
=== v3.6 === === v3.6 ===
Added new 1.9 particles * Added new 1.9 particles
Added tab completion * Added tab completion
Removed useless reset command that caused a NPE * Removed useless reset command that caused a NPE
Got version numbers back on track * Got version numbers back on track
=== v3.0.5 === === v3.0.5 ===
Fixed issue where particles would be displayed in ALL worlds * Fixed issue where particles would be displayed in ALL worlds
Added new style "spin" - Displays in a spinning fashion above head * Added new style "spin" - Displays in a spinning fashion above head
Added new style "move" - Displays only when player is moving * Added new style "move" - Displays only when player is moving
This update won't reset your config.yml * This update won't reset your config.yml
=== v3.0.3 === === v3.0.3 ===
Fixed major issue where plugin wouldn't work unless connected to a database * Fixed major issue where plugin wouldn't work unless connected to a database
Fixed particles not working until you choose a style (Uses 'None' by default) * Fixed particles not working until you choose a style (Uses 'None' by default)
=== v3.0.2 === === v3.0.2 ===
Probably fixed masses of errors printed by disconnecting from database issue * Probably fixed masses of errors printed by disconnecting from database issue
=== v3.0.1 === === v3.0.1 ===
Fixed NullPointerException when players logged in while database is disabled * Fixed NullPointerException when players logged in while database is disabled
Fixed incorrect colors for no permission messages * Fixed incorrect colors for no permission messages
Fixed issue with particles not showing up when logging in sometimes * Fixed issue with particles not showing up when logging in sometimes
=== v3 === === v3 ===
Added new Styles! Try them with /pp style [style] * Added new Styles! Try them with /pp style [style]
Added command '/pp styles' which lists all styles available to you * Added command '/pp styles' which lists all styles available to you
Added command '/pp help' which displays all commands available * Added command '/pp help' which displays all commands available
Added mySQL database support for those of you into that sort of thing * Added mySQL database support for those of you into that sort of thing
Removed failed attempt at negative permissions, nothing changed here * Removed failed attempt at negative permissions, nothing changed here
Fixed some bugs * Fixed some bugs
Added more hugs * Added more hugs
=== v2.7 === === v2.7 ===
Fixed issues with reddust and rainbow permissions * Fixed issues with reddust and rainbow permissions
Added support for disabling particles in specific worlds (Found in config) * Added support for disabling particles in specific worlds (Found in config)
Added command '/pp worlds' to see what worlds are disabled in-game * Added command '/pp worlds' to see what worlds are disabled in-game
Added command '/pp version' to see the current installed plugin version * Added command '/pp version' to see the current installed plugin version
=== v2.6 === === v2.6 ===
Added complete message configuration! * Added complete message configuration!
Added reload command /pp reload * Added reload command /pp reload
Footstep particles now display at your feet * Footstep particles now display at your feet
=== v2.5 === === v2.5 ===
Added support for Minecraft 1.8 * Added support for Minecraft 1.8
Added backwards compatibility for Minecraft 1.6 and 1.7 * Added backwards compatibility for Minecraft 1.6 and 1.7
Added new particles (Only visible when using Minecraft 1.8) * Added new particles (Only visible when using Minecraft 1.8)
Removed some particles that did nothing * Removed some particles that did nothing
Edited the config a little bit, it will be reset upon updating the plugin * Edited the config a little bit, it will be reset upon updating the plugin
Fixed a few bugs * Fixed a few bugs
Added extra hugs * Added extra hugs
=== v2.3 Fix === === v2.3 Fix ===
Fixed permission playerparticles.* not correctly rendering particles around player * Fixed permission playerparticles.* not correctly rendering particles around player
=== v2.2 === === v2.2 ===
Support for 40 particles a second by setting "ticks-per-particle" to a value of 0.5 * Support for 40 particles a second by setting "ticks-per-particle" to a value of 0.5
=== v2.1 Fix === === v2.1 Fix ===
Should now be compatible with Java 7 servers * Should now be compatible with Java 7 servers
=== v2.0 === === v2.0 ===
Rewrote entire plugin from scratch * Rewrote entire plugin from scratch
Now more efficient * Now more efficient
37 total particles types! * 37 total particles types!
New customization * New customization
Particle effect data now stored in effectData.yml * Particle effect data now stored in effectData.yml
config.yml added that allows for customization of message prefix, and particle count * config.yml added that allows for customization of message prefix, and particle count
Removed permission playerparticles.clearall and command /pp clearall (To clear all particles of everyone delete effectData.yml and /reload) * Removed permission playerparticles.clearall and command /pp clearall (To clear all particles of everyone delete effectData.yml and /reload)

View file

@ -84,10 +84,14 @@ public class PlayerParticles extends JavaPlugin {
startTask(); startTask();
if (shouldCheckUpdates()) { if (shouldCheckUpdates()) {
Updater updater = new Updater(this, 82823, this.getFile(), Updater.UpdateType.NO_DOWNLOAD, false); try { // For some reason this can throw an exception sometimes. I suppose it happens when you run the server without an internet connection?
if (Double.parseDouble(updater.getLatestName().replaceAll("PlayerParticles v", "").replaceAll("\\.", "")) > Double.parseDouble(getPlugin().getDescription().getVersion().replaceAll("\\.", ""))) { Updater updater = new Updater(this, 82823, this.getFile(), Updater.UpdateType.NO_DOWNLOAD, false);
updateVersion = updater.getLatestName().replaceAll("PlayerParticles v", ""); if (Double.parseDouble(updater.getLatestName().replaceAll("PlayerParticles v", "").replaceAll("\\.", "")) > Double.parseDouble(getPlugin().getDescription().getVersion().replaceAll("\\.", ""))) {
getLogger().info("[PlayerParticles] An update (v" + updateVersion + ") is available! You are running v" + getPlugin().getDescription().getVersion()); updateVersion = updater.getLatestName().replaceAll("PlayerParticles v", "");
getLogger().info("[PlayerParticles] An update (v" + updateVersion + ") is available! You are running v" + getPlugin().getDescription().getVersion());
}
} catch (Exception e) {
getLogger().warning("[PlayerParticles] An error occurred checking for an update. There is either no established internet connection or the Curse API is down.");
} }
} }
} }

View file

@ -11,7 +11,7 @@ public class ParticleStyleHalo implements ParticleStyle {
private float step = 0; private float step = 0;
public PParticle[] getParticles(PPlayer pplayer, Location location) { public PParticle[] getParticles(PPlayer pplayer, Location location) {
if (step % 2 == 0) return null; if (step % 2 == 0) return new PParticle[0];
int points = 16; int points = 16;
double radius = .65; double radius = .65;
double slice = 2 * Math.PI / points; double slice = 2 * Math.PI / points;

View file

@ -14,7 +14,7 @@
# Changing this value will reset your config on the next server reload / restart. # Changing this value will reset your config on the next server reload / restart.
# I don't recommend changing it # I don't recommend changing it
version: 4.4 version: 4.5
# How many ticks to wait before spawning more particles # How many ticks to wait before spawning more particles
# Increasing this value may cause less lag (if there was any), but will decrease prettiness # Increasing this value may cause less lag (if there was any), but will decrease prettiness

View file

@ -1,6 +1,6 @@
name: PlayerParticles name: PlayerParticles
main: com.esophose.playerparticles.PlayerParticles main: com.esophose.playerparticles.PlayerParticles
version: 4.4 version: 4.5
description: Make particles around players in fancy ways. description: Make particles around players in fancy ways.
author: Esophose author: Esophose
website: http://dev.bukkit.org/bukkit-plugins/playerparticles/ website: http://dev.bukkit.org/bukkit-plugins/playerparticles/