crwdns151599:0crwdne151599:0

crwdns151601:0:javadoc:crwdne151601:0

crwdns151603:0crwdne151603:0

crwdns151605:0crwdne151605:0

import org.spongepowered.api.asset.Asset;

Asset asset = plugin.getAsset("myfile.txt").get();

crwdns151607:0crwdne151607:0

import org.spongepowered.api.Sponge;

Asset asset = Sponge.getAssetManager().getAsset(plugin, "myfile.txt").get();

Tip

crwdns151609:0crwdne151609:0

Note

crwdns151611:0:javadoc:crwdne151611:0

crwdns151613:0crwdne151613:0

crwdns151615:0:javadoc:crwdne151615:0

import java.nio.file.Files;

if (Files.notExists(configPath)) {
    plugin.getAsset("default.conf").copyToFile(configPath);
}

Note

crwdns151617:0crwdne151617:0