@me.mattstudios.mf.annotations.SubCommand(play)

Here are the examples of the java api @me.mattstudios.mf.annotations.SubCommand(play) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

16 Source : PlayCommand.java
with MIT License
from Holovid

@SubCommand("play")
@Completion({ "#videos", "#boolean" })
public void play(final Player player, final String folder, @Optional final boolean disableInterlace) {
    if (plugin.getHologram() == null) {
        player.sendMessage("Use /holovid spawnscreen to spawn the armor stands first.");
        return;
    }
    final File saveFolder = new File(plugin.getDataFolder(), "saves/" + folder);
    final File[] folderFiles = saveFolder.listFiles();
    if (folderFiles == null)
        return;
    final File videoFile = new File(saveFolder, "video.mp4");
    if (!videoFile.exists() || !videoFile.isFile()) {
        player.sendMessage("Could not find video.mp4 file!");
        return;
    }
    final File dataFile = new File(saveFolder, "data.yml");
    if (!dataFile.exists()) {
        player.sendMessage("Could not find data.yml file!");
        return;
    }
    plugin.playVideoFromSave(player, videoFile, dataFile, !disableInterlace);
}