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

Create new folder in plugin folder

Comments in 'Plugin Development' started by Sergey_D, Aug 9, 2014.

  1. Sergey_D
    Offline

    Sergey_D Active Member

    Joined:
    Jan 19, 2014
    Posts:
    75
    Minecraft User:
    CLILLZ
    In OLD API this function make a new folder in the main folder of the plugin:
    $this->clansClaims = $this->api->plugin->configPath($this)."/ClansClaims";
    How to do this in NEW API?
    Last edited: Aug 9, 2014
  2. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    388
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    I think its @mkdir
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    @mkdir($this->getDataFolder()."ClansClaims/", 0777, true);
    Dutok likes this.

Share This Page

Advertisement