crwdns132275:0crwdne132275:0
crwdns132277:0:javadoc:crwdne132277:0
crwdns132279:0crwdne132279:0
crwdns132281:0crwdne132281:0
import org.spongepowered.api.asset.Asset;
Asset asset = plugin.getAsset("myfile.txt").get();
crwdns132283:0crwdne132283:0
import org.spongepowered.api.Sponge;
Asset asset = Sponge.getAssetManager().getAsset(plugin, "myfile.txt").get();
Tip
crwdns132285:0crwdne132285:0
Note
crwdns132287:0:javadoc:crwdne132287:0
crwdns132289:0crwdne132289:0
crwdns132291:0:javadoc:crwdne132291:0
import java.nio.file.Files;
if (Files.notExists(configPath)) {
plugin.getAsset("default.conf").copyToFile(configPath);
}
Note
crwdns132293:0crwdne132293:0