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

[PHP] FactionsPro help

Comments in 'Plugin Development' started by PolskiTHEPLAYER, Feb 16, 2016.

  1. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    /////////////////////////////// CREATE ///////////////////////////////

    if($args[0] == "create") {
    if(!isset($args[1])) {
    $sender->sendMessage($this->plugin->formatMessage("§c • Wpisz komende - /f create <nazwa gildi> • "));
    return true;
    }
    if(!(ctype_alnum($args[1]))) {
    $sender->sendMessage($this->plugin->formatMessage(""));
    return true;
    }
    if($this->plugin->isNameBanned($args[1])) {
    $sender->sendMessage($this->plugin->formatMessage("§c • Nazwa gildi jest niedozwolona • "));
    return true;
    }
    if($this->plugin->factionExists($args[1]) == true ) {
    $sender->sendMessage($this->plugin->formatMessage("§c • Taka gildia już jeste • • "));
    return true;
    }
    if(strlen($args[1]) > $this->plugin->prefs->get("MaxFactionNameLength")) {
    $sender->sendMessage($this->plugin->formatMessage("§c • Nazwa gildi jest za długa • "));
    return true;
    }
    if($this->plugin->isInFaction($sender->getName())) {
    $sender->sendMessage($this->plugin->formatMessage("§c • Opuść gildie aby stworzyć nową • "));
    return true;
    } else {
    $factionName = $args[1];
    $player = strtolower($player);
    $rank = "Leader";
    $stmt = $this->plugin->db->prepare("INSERT OR REPLACE INTO master (player, faction, rank) VALUES :)player, :faction, :rank);");
    $stmt->bindValue(":player", $player);
    $stmt->bindValue(":faction", $factionName);
    $stmt->bindValue(":rank", $rank);
    $result = $stmt->execute();
    $this->plugin->updateTag($player);
    $sender->sendMessage($this->plugin->formatMessage("§a • Stworzyłeś gildie • ", true));
    return true;
    }
    }

    What add pay faction economyapi
  2. KubixQ
    Offline

    KubixQ Active Member

    Joined:
    Sep 13, 2015
    Posts:
    85
    Minecraft User:
    KubixQ
    Learn English, this is PLUGIN DEVELOPMENT?
    You publishing Factions Pro code with edited messages and you please to anyone give you all code, you paste it (...) DONE!
    Muqsit, IcePL, PocketKiller and 3 others like this.
  3. KubixQ
    Offline

    KubixQ Active Member

    Joined:
    Sep 13, 2015
    Posts:
    85
    Minecraft User:
    KubixQ
    So why you never use [PHP]#CODE[/PHP] tags?
  4. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    IMA use your way, Learn php to create plugins ;3
    you can find out the EconomyAPI on https://github.com/onebone/EconomyS/tree/master/EconomyAPI/src/onebone/economyapi
    AndrewBit, HotFireyDeath and KubixQ like this.
  5. PolskiTHEPLAYER
    Offline

    PolskiTHEPLAYER New Member

    Joined:
    Apr 1, 2015
    Posts:
    55
    Minecraft User:
    Flsmers
    That message no help for me !
  6. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    ALL your messages are never helping too... and most of them are spam.
    and the link on my post helps bruh...
    AndrewBit and KubixQ like this.
  7. KubixQ
    Offline

    KubixQ Active Member

    Joined:
    Sep 13, 2015
    Posts:
    85
    Minecraft User:
    KubixQ
    See EconomyS code//documentation is very difficult, 5 min (...) Done.
    AndrewBit and PocketKiller like this.
  8. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    AndrewBit, HotFireyDeath and KubixQ like this.
  9. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Why you NEVER learn from people messages?
    If we said use PHP tags, USE IT! We can't help you if we can't see -y-o-u-r- FactionsPro modified code.
    PocketKiller, Vaivez66 and KubixQ like this.
  10. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    And I always see you ask for money while you don't even understand with PHP. Ckckckck...pathetic...
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    If you want to complain about the actions of a certain member, click the report button.
    If you want to discuss about the poor behaviour of a certain member, create a conversation group.
    Plugin Development threads are not for you to yell at (a) forum member(s). Please do not be off-topic and turn the thread into a battlefield. This will make future readers unable/difficult/less convenient to find what they want when they search for this. For the sake of everyone here, please do not go off-topic and turn a thread about the Economys API into a thread about the bad deeds of a forum member.
    KubixQ and PocketKiller like this.
  12. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    We are not "disscussing", we are telling he what he has to do, how you interpret it is your problem.
  13. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    Learn php, learn english, get a job instead of selling plugins!
  14. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Actually, I am the only one who goes Off-Topic here. I apologize for it :(
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Then it's even worse. Why not tell him that in a PM instead of distracting readers with these useless posts?
    Also, I wasn't mainly directing at you.
  16. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    What if i tell you learn chinese and polish... what do you feel?
    PEMapModder likes this.
  17. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    Uhm...mhmm...huh..
    Amm...isn't that off topic?
  18. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    No, it's plugin development, and this an unsolved post :p

Share This Page

Advertisement