Validate particle size
This commit is contained in:
@@ -64,16 +64,16 @@ public class ParticleSet {
|
||||
public void run(Player player, PlayerSettings playerSettings) {
|
||||
if (tooSoon(player.getUniqueId()) && !player.hasPermission("apart.bypass-cooldown"))
|
||||
return;
|
||||
if (Config.DEBUG)
|
||||
Logger.info("Starting particle set % for %.", uniqueId, player.getName());
|
||||
if (Config.DEBUG) {
|
||||
log.info("Starting particle set {} for {}.", uniqueId, player.getName());
|
||||
}
|
||||
FrameSpawnerPlayer frameSpawnerPlayer = new FrameSpawnerPlayer(repeat, frames, frameDelay, player, playerSettings, aPartType, uniqueId, stationary);
|
||||
frameSpawnerPlayer.runTaskTimerAsynchronously(AltitudeParticles.getInstance(), 0, repeatDelay);
|
||||
}
|
||||
|
||||
private boolean tooSoon(UUID uuid) {
|
||||
PlayerSettings ps = PlayerSettings.getPlayer(uuid);
|
||||
if (ps.canRun(aPartType))
|
||||
{
|
||||
if (ps.canRun(aPartType)) {
|
||||
ps.run(aPartType);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user