Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.broken.cheststorage.ChestStorage;
- import org.broken.cheststorage.util.effects.ParticleEffects;
- import org.broken.cheststorage.util.effects.SpawnParticle;
- import org.bukkit.Location;
- import org.bukkit.entity.Player;
- import org.mineacademy.fo.command.SimpleSubCommand;
- import java.util.List;
- public class particleCommand extends SimpleSubCommand {
- protected particleCommand(CommandsGroup commandsGroup) {
- super(commandsGroup, "part");
- }
- @Override
- protected void onCommand() {
- Player player = getPlayer();
- Location loc = player.getLocation();
- List<Location> location = SpawnParticle.spawnEffects(loc, 10, 1.0, 1.0, 1.0);
- double particleDistance = 2;
- ChestStorage.getInstance().getHeavyTasks().addLoad(new ParticleEffects(location, player));
- }
- }
Add Comment
Please, Sign In to add comment