@@ -0,0 +1,2893 @@
+/**%0A * This file is part of MinigameCore, licensed under the MIT License (MIT).%0A *%0A * Copyright (c) 2016 - 2016 MinigameCore%0A * Copyright (c) Contributors%0A *%0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to deal%0A * in the Software without restriction, including without limitation the rights%0A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A * copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A *%0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN%0A * THE SOFTWARE.%0A */%0Apackage io.github.minigamecore.plugin;%0A%0Aimport static org.spongepowered.api.event.Order.EARLY;%0A%0Aimport com.google.inject.Inject;%0Aimport com.google.inject.Injector;%0Aimport org.slf4j.Logger;%0Aimport org.spongepowered.api.config.ConfigDir;%0Aimport org.spongepowered.api.event.Listener;%0Aimport org.spongepowered.api.event.game.state.GamePreInitializationEvent;%0Aimport org.spongepowered.api.plugin.Plugin;%0Aimport org.spongepowered.api.plugin.PluginContainer;%0A%0Aimport java.nio.file.Path;%0A%0A/*%0A * The main class for MinigameCore%0A */%0A@Plugin(authors = %7B%22Flibio%22%7D, id = %22minigamecore%22, url = %22http://minigamecore.github.io/docs/%22)%0Apublic final class MinigameCore %7B%0A%0A    private final Path configDir;%0A    private final Injector defaultInjector;%0A    private final Logger logger;%0A    private final PluginContainer pluginContainer;%0A%0A    @Inject%0A    private MinigameCore(@ConfigDir(sharedRoot = false) Path configDir, Injector defaultInjector, Logger logger, PluginContainer pluginContainer) %7B%0A        this.configDir = configDir;%0A        this.defaultInjector = defaultInjector;%0A        this.logger = logger;%0A        this.pluginContainer = pluginContainer;%0A    %7D%0A%0A    @Listener(order = EARLY) // Flexibility reasons%0A    public void onPreInitializationEarly(final GamePreInitializationEvent event) %7B%0A        getLogger().info(%22Starting %22 + getPluginContainer().getId());%0A    %7D%0A%0A    public Path getConfigDir() %7B%0A        return configDir;%0A    %7D%0A%0A    public Injector getDefaultInjector() %7B%0A        return defaultInjector;%0A    %7D%0A%0A    public Logger getLogger() %7B%0A        return logger;%0A    %7D%0A%0A    public PluginContainer getPluginContainer() %7B%0A        return pluginContainer;%0A    %7D%0A%0A%7D%0A

Add plugin class