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

HELP WITH CODE

Comments in 'Plugin Development' started by Legomite, Jan 26, 2014.

  1. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Im trying to make it so it will work like this
    /documentedit <Name> * <Text>

    Will this work?

    $name = implode(" ", $args);
    $msg = implode("*", $args);
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What do you want it to work like?
  3. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Like umm
    /edit name * text
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I would use this:
    $params=explode ("*", implode (" ", $args));
    file_put_contents ($this->dir.$params[0], $params[1]);

    Work yourself if you want the file contents to be able to contain characters of "*".

Share This Page

Advertisement