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

Command like HormonesPlugin but not with permissions, with database.

Discussion in 'Requests' started by LewBr, Jan 10, 2018.

  1. LewBr

    LewBr Baby Zombie

    Messages:
    170
    GitHub:
    lewbr
    Hello, i have a question if someone can create a simple plugin like hormones but (SIMPLE), that's connect servers with signal too, and connect to your database, but when you do a broadcastcommand like /nsay you must have some group on database like
    PHP:
    public function getperm($player){
            
    $result $this->db->query("SELECT permission FROM table WHERE nick = '".$player->getName()."");
    $row $result->fetch_assoc();
    $result->close();
            return 
    $row;
        }
     
     
        if(
    $this->getperm($player) == "nsay.use"){
               
    //run the broadcast command for all servers
        
    }else{
    $sender->sendMessage("You dont have permissions.");
    }
    And when the player send the message, the other players receive this message only when he has the same permission? Can someone do that? Or similar

    I don't understand SOF3 code, it's too much for me. :facepalm: :shoghi:
    How did work Hormones with signals connect with other server and etc..?

    Srry bad english, and all, I had to write fast today.
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,400
    GitHub:
    sof3
    HyGlobalHD likes this.

Share This Page