broken-arrow

Untitled

Aug 17th, 2021 (edited)
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. import org.broken.cheststorage.ChestStorage;
  2. import org.broken.cheststorage.util.effects.ParticleEffects;
  3. import org.broken.cheststorage.util.effects.SpawnParticle;
  4. import org.bukkit.Location;
  5. import org.bukkit.entity.Player;
  6. import org.mineacademy.fo.command.SimpleSubCommand;
  7.  
  8. import java.util.List;
  9.  
  10. public class particleCommand extends SimpleSubCommand {
  11.  
  12.  
  13.     protected particleCommand(CommandsGroup commandsGroup) {
  14.         super(commandsGroup, "part");
  15.     }
  16.  
  17.     @Override
  18.     protected void onCommand() {
  19.         Player player = getPlayer();
  20.         Location loc = player.getLocation();
  21.         List<Location> location = SpawnParticle.spawnEffects(loc, 10, 1.0, 1.0, 1.0);
  22.         double particleDistance = 2;
  23.  
  24.         ChestStorage.getInstance().getHeavyTasks().addLoad(new ParticleEffects(location, player));
  25.     }
  26. }
Add Comment
Please, Sign In to add comment