Advertisement
Guest User

thisClass =3

a guest
Dec 29th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. package ;
  2.  
  3. import java.io.File;
  4. import java.io.IOException;
  5.  
  6. import <mymainclass>;
  7.  
  8. public class thisClass {
  9.     static <mymainclass> plugin;
  10.     public thisClass(<mymainclass> plugin) {
  11.         thisClass.plugin = plugin;
  12.     }
  13.    
  14.     private static File thisFile = null;
  15.    
  16.     public static void createFile() {
  17.         if (thisFile == null) {
  18.             File thisFile = new File(plugin.getDataFolder(), "file.txt");
  19.             try {
  20.                 thisFile.createNewFile();
  21.             } catch (IOException e) {
  22.                 e.printStackTrace();
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement