1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Add top 10 faction in plugin

Discussion in 'Requests' started by dragonflex, Jan 23, 2017.

  1. dragonflex

    dragonflex Spider Jockey

    Messages:
    44
    Hi! my name dragon. well, i need add to my plugin command "top"
    What this command? This command add top 10 faction on the sever.
    Code:
    PHP:
                        if(strtolower($args[0] == "punkty")) {
                            if(!
    $this->plugin->isInFaction($player)) {
                                
    $sender->sendMessage($this->plugin->formatMessage("§c • Nie posiadasz gildi • "));
                                return 
    true;
                            }
                            
    $faction_power $this->plugin->getFactionPower($this->plugin->getPlayerFaction($sender->getName()));
                           
                            
    $sender->sendMessage($this->plugin->formatMessage("§a • Punkty gildi - $faction_power punktów • ",true));
                        }
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    ??? please be more descriptive
    no one like to ask follow up question
    dont assume everyone knows how to read other's mind
    right now, there so many ways to interpret what you are asking for:
    - code on how to add top factions
    - how to add commands
    > wrong section
    - requesting a faction plugin with TOP factions command

    the code it self causes more confusion
     
  3. dragonflex

    dragonflex Spider Jockey

    Messages:
    44
    code on how to add top factions
     
    Criticalmc likes this.
  4. dragonflex

    dragonflex Spider Jockey

    Messages:
    44
    Make this command for me
     

    Attached Files:

  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    but this is plugin request forum
     
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    This post is in the wrong section, please use the development section for plugin development. This section is for plugin recommendations and complete plugin creation
     
  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.