Solved Counting lava doesn't work

Discussion in 'Spigot Plugin Development' started by KevinDasPikachu, Aug 1, 2020.

Thread Status:
Not open for further replies.
  1. You are right, obviously but I am desperate.
  2. When a player places lava, right.
  3. I did.
  4. As wand555 said, just listen to PlayerBucketEmptyEvent and check if it is a lava bucket.
  5. As others have stated, there is a PlayerBucketEmptyEvent and it works fine:

    Code (Java):
        public void onLava(PlayerBucketEmptyEvent e ) {
            if(e.getBucket() != Material.LAVA_BUCKET) return;
            Block b = e.getBlock();
            Player p = e.getPlayer();
            System.out.println(String.format("Player %s placed lava at %s",p.getName(),b.getLocation().toString()));
  6. IT WORKS! FINALLY! Thank you all so much!
    • Like Like x 1
Thread Status:
Not open for further replies.