Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

using sign for 0.10.0

Comments in 'Plugin Development' started by a9eelsh, Nov 14, 2014.

  1. a9eelsh
    Offline

    a9eelsh New Member

    Joined:
    Nov 6, 2014
    Posts:
    16
    Minecraft User:
    a9eelsh
    How do I playerBlockTouch sign in using 0.10.0
  2. Sergey_D
    Offline

    Sergey_D Active Member

    Joined:
    Jan 19, 2014
    Posts:
    75
    Minecraft User:
    CLILLZ
    PHP:
    public function onPlayerInteract(PlayerInteractEvent $e){
      if(
    $e->getBlock() instanceof Sign){

      }
    }
    Note: You must implement pocketmine\event\Listener and register the event using the PluginManager.
    Last edited by a moderator: Nov 14, 2014
  3. a9eelsh
    Offline

    a9eelsh New Member

    Joined:
    Nov 6, 2014
    Posts:
    16
    Minecraft User:
    a9eelsh
    error
  4. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    ?
  5. Exxarion
    Offline

    Exxarion Active Member Plugin Developer

    Joined:
    Jan 5, 2014
    Posts:
    242
    Plugins:
    1
    Minecraft User:
    Notch
    Can you specify the error?
    ForgedPassport likes this.
  6. Sergey_D
    Offline

    Sergey_D Active Member

    Joined:
    Jan 19, 2014
    Posts:
    75
    Minecraft User:
    CLILLZ
    ?
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    I believer tattoo know how to use Events right? Then use @Sergey_D's code, and inside that code make what you want to do
  8. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
  9. a9eelsh
    Offline

    a9eelsh New Member

    Joined:
    Nov 6, 2014
    Posts:
    16
    Minecraft User:
    a9eelsh
  10. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
  11. GlaciercreepsMC
    Offline

    GlaciercreepsMC Active Member Plugin Developer

    Joined:
    Jan 21, 2014
    Posts:
    91
    Plugins:
    1
    Minecraft User:
    GlaciercreepsMC
    Just saying it doesnt work doesnt help us in helping you. Be more specific, is there an error message in the console, and if so, what is it? And paste your script's code, please ;).
    iksaku likes this.

Share This Page

Advertisement