I Want To Make Like on Player first time break A block = Send Massage

Discussion in 'Development' started by GamingMan, Oct 28, 2021.

  1. GamingMan

    GamingMan Creeper

    Messages:
    5
    GitHub:
    DaGamingGuy
    I Want To Make Like on Player first time break A block = Send Massage
    How Can I Make This? Any Developer Can Help Me?
     
  2. TheWatcherrrr

    TheWatcherrrr Creeper

    Messages:
    2
  3. TheWatcherrrr

    TheWatcherrrr Creeper

    Messages:
    2
    <?php

    public array $first = [];

    public function onBreack(BlockBreakEvent $evt){
    $player = $evt->getPlayer();
    $this->first[] = $player;
    if(isset($this->first[$player]{
    $player->sendMessage("Firstblockkkkk");
    }
    }
     
  4. GamingMan

    GamingMan Creeper

    Messages:
    5
    GitHub:
    DaGamingGuy
  5. GamingMan

    GamingMan Creeper

    Messages:
    5
    GitHub:
    DaGamingGuy
    But bro i want player first time break oak = Send Massage
     
  6. minijaham

    minijaham Zombie Pigman

    Messages:
    749
    GitHub:
    minijaham
    Array gets cleared on server restart
     
    Primus likes this.
  7. Primus

    Primus Zombie Pigman

    Messages:
    707
    Should have been more explicit about your wishes.
     
  8. GamingMan

    GamingMan Creeper

    Messages:
    5
    GitHub:
    DaGamingGuy
    Ohh sorry i was tell any player pickup first time pickup oak save on config and send massage to player {per player)
     
    Primus likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.