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

Sign Help.

Comments in 'Plugin Development' started by NIM, Jan 9, 2014.

  1. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    NIM likes this.
  2. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    AWESOME!!!!!!!!! the only thing is that it doesn't replace the hi, but if that is what you wanted, then you AWESOME!!!!!!! And can you like my video? so i can get the achievement....
  3. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    but can we make a plugin together? Or can i use your code, but give you credit?
  4. NIM
    Offline

    NIM Active Member

    Joined:
    Nov 28, 2013
    Posts:
    74
    Minecraft User:
    NIMGamingPRO
    I will fix it, but There is lots coming from this little plugin, thanks for testing :)
  5. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    can i use your code, but give you credit?
  6. NIM
    Offline

    NIM Active Member

    Joined:
    Nov 28, 2013
    Posts:
    74
    Minecraft User:
    NIMGamingPRO
    Depends for what, I wouldnt allow it to be uploaded to the forums though :(
    I was gonna keep all my plugins private, but I chose to make a huge combination of plugins and share it!
  7. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    What if I made a "lift" based plugin started from your code, And give you credit for the sign code? I would make it very clear that you helped
  8. NIM
    Offline

    NIM Active Member

    Joined:
    Nov 28, 2013
    Posts:
    74
    Minecraft User:
    NIMGamingPRO
    What are you going to be making? because "SignPro" is going to include lots of different options!
  9. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    Well, I would make an elevator type plugin, where you place a sign, and it saves a position and set another one at the second level and when you tap it, it teleports you to the second floor.
  10. NIM
    Offline

    NIM Active Member

    Joined:
    Nov 28, 2013
    Posts:
    74
    Minecraft User:
    NIMGamingPRO
    Alright, but that one plugin :D
    Mason Gareis likes this.
  11. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    Thank You!!!!!:D:p:):rolleyes:
  12. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    [quote="Mason Gareis, post: 19800, member: 5608"I am also experienced in pocketmine php code. We can give suggestions to each other![/quote]

    you said you are experienced with pocketmine code however, you still not able to manage your plugin to work?
    hmm?
  13. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    none of your buisness
  14. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    k. but its useless to say you are not what you say. feels dumb.
  15. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    And i did kind of start making plugins like a week ago, but that doesnt mean i can make my own on the site. I lack advandced knowledge, but i know how to work my way around them.
  16. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    so, dont say your experienced yet you aren't cuz, if your experienced, ill really ask a lot of help from you.
  17. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    Alright....... Correction: I have some experience with pocketmine code
    iJoshuaHD likes this.
  18. NIM
    Offline

    NIM Active Member

    Joined:
    Nov 28, 2013
    Posts:
    74
    Minecraft User:
    NIMGamingPRO
    Can you test this Plugin?
    This time you have to put [Server] but it has to be exact
    PHP:
    <?php

    /* 
    __PocketMine Plugin__ 
    name=SignPro
    description= Live Signs at its best!
    version=1.0
    author=NIM
    class=Sign
    apiversion=11
    */

    class Sign implements Plugin{
        private 
    $api$server;
        public function 
    __construct(ServerAPI $api$server false){
            
    $this->api $api;
            
    $this->server ServerAPI::request();
        }

        public function 
    init(){
            
    $this->api->addHandler("tile.update", array($this"eventHandler"), 10);
        }

        public function 
    eventHandler($data$event){
            switch (
    $event) {
                case 
    "tile.update":
                
    $playercount $this->api->dhandle('pc.get.count'false);
                    if (
    $data->class === TILE_SIGN) {
                        if (
    $data->data['Text1'] != "[Server]")
                      return;
                              
    $data->setText("Player Count: $playercount "$data->data['Text2']);
                                }
                            }
                        }
                     }
              }
                       public function 
    __destruct(){
        }
        }
  19. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    will do!
  20. Mason Gareis
    Offline

    Mason Gareis Active Member

    Joined:
    Jan 8, 2014
    Posts:
    52
    Minecraft User:
    MasonLovesMCPE
    1-10-2014 9-53-38 PM.png

Share This Page

Advertisement