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

Factions Crash ?

Comments in 'Plugin Development' started by Radix, Dec 6, 2015.

  1. Radix
    Offline

    Radix Active Member

    Joined:
    Jul 2, 2015
    Posts:
    211
    Minecraft User:
    Dicks123
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    No, this isn't the original plugin. This is a modified copy, as you can see.
    What's this:
    Code:
    [259]                        if($this->plugin->getPlayerFaction($player) != $this->$args[1]) {
    
    Change $this->$args[1] to just $args[1].
  3. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    Didn't notice, Oops.
  4. Radix
    Offline

    Radix Active Member

    Joined:
    Jul 2, 2015
    Posts:
    211
    Minecraft User:
    Dicks123
    I have no idea ,, we didnt modify the /f leader command

    so make
    PHP:
    if($this->plugin->getPlayerFaction($player) != $this->$args[1]) {
    to

    PHP:
    if($this->plugin->getPlayerFaction($player) != $args[1]) {

Share This Page

Advertisement