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

Delete a File

Comments in 'Plugin Development' started by JackboyPlay, Feb 9, 2016.

  1. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    My Plugin creates files for each Player how can i make it to delete a file with a command?
    if($command->getName() == "blabla"){
    //delete file
    }
    sorry for my bad english!
  2. Svile
    Offline

    Svile Active Member

    Joined:
    Mar 30, 2015
    Posts:
    239
    Minecraft User:
    svile
    http://php.net/manual/en/function.unlink.php
    The next time try to use google before ;) maybe can be more fast than us
    EvolSoft, PEMapModder and Vaivez66 like this.
  3. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    Thanks :p

Share This Page

Advertisement