Quantcast
Channel: SpigotMC - High Performance Minecraft
Viewing all articles
Browse latest Browse all 128654

Need help getting data from a file directory

$
0
0
I need to get a file directory to a file set up kinda like this.

Server.Plugins.PluginWIP.NewFolder.file.txt

So far I have this
Code (Text):
file = new File(Bukkit.getServer().getPluginManager().getPlugin("PluginWIP").getDataFolder(), "file.txt");
This just leads into the data folder for the plugin "PluginWIP", and I need to move the file.txt one more folder in called NewFolder, how can I set up my directory to map to this file, in the new folder?

Viewing all articles
Browse latest Browse all 128654

Trending Articles