// Path: src/main/java/ru/endlesscode/rpginventory/utils/Log.java
// @SuppressWarnings("CheckStyle")
// public final class Log {
// 
//     private static Logger logger;
// 
//     private Log() {
//         // static class
//     }
// 
//     public static void init(@NotNull Logger logger) {
//         Log.logger = logger;
//     }
// 
//     public static void i(@NotNull String message, Object... args) {
//         logger.info(prepareMessage(message, args));
//     }
// 
//     public static void w(Throwable t) {
//         logger.log(Level.WARNING, t.getMessage(), t);
//     }
// 
//     public static void w(@NotNull String message, Object... args) {
//         logger.warning(prepareMessage(message, args));
//     }
// 
//     public static void w(Throwable t, @NotNull String message, Object... args) {
//         logger.log(Level.WARNING, prepareMessage(message, args), t);
//     }
// 
//     public static void d(Throwable t) {
//         logger.log(Level.FINE, "", t);
//     }
// 
//     public static void s(@NotNull String message, Object... args) {
//         logger.severe(prepareMessage(message, args));
//     }
// 
//     private static String prepareMessage(String message, Object... args) {
//         return MessageFormat.format(message, args);
//     }
// }


import ru.endlesscode.inspector.bukkit.plugin.TrackedPlugin;
import ru.endlesscode.inspector.bukkit.report.BukkitEnvironment;
import ru.endlesscode.inspector.report.*;
import ru.endlesscode.inspector.sentry.bukkit.SentryBukkitIntegration;
import ru.endlesscode.rpginventory.utils.Log;
import java.util.Arrays;
import java.util.List;
/*
 * This file is part of RPGInventory.
 * Copyright (C) 2018 EndlessCode Group and contributors
 *
 * RPGInventory is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * RPGInventory is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with RPGInventory.  If not, see <http://www.gnu.org/licenses/>.
 */

package ru.endlesscode.rpginventory;



@SuppressWarnings("unused")
public class RPGInventoryPlugin extends TrackedPlugin {

    private static final List<String> INTEREST_PLUGINS = Arrays.asList(
            "ProtocolLib", "Vault", "Mimic", "BattleLevels", "Skills", "Heroes", "RacesAndClasses",
            "SkillAPI", "MyPet", "RPGPlayerLeveling", "PlaceholderAPI", "MMOItems", "QuantumRPG",
            "MMOCore", "MMOInventory"
    );

    public RPGInventoryPlugin() {
        super(RPGInventory.class, new BukkitEnvironment.Properties(INTEREST_PLUGINS));
    }

    @Override
    protected final Reporter createReporter() {
        String dsn = "@sentry_dsn@";
        // Token will be replaced in compile time, so it can be empty
        // noinspection ConstantConditions
        if (dsn.isEmpty()) {
// Path: src/main/java/ru/endlesscode/rpginventory/utils/Log.java
// @SuppressWarnings("CheckStyle")
// public final class Log {
// 
//     private static Logger logger;
// 
//     private Log() {
//         // static class
//     }
// 
//     public static void init(@NotNull Logger logger) {
//         Log.logger = logger;
//     }
// 
//     public static void i(@NotNull String message, Object... args) {
//         logger.info(prepareMessage(message, args));
//     }
// 
//     public static void w(Throwable t) {
//         logger.log(Level.WARNING, t.getMessage(), t);
//     }
// 
//     public static void w(@NotNull String message, Object... args) {
//         logger.warning(prepareMessage(message, args));
//     }
// 
//     public static void w(Throwable t, @NotNull String message, Object... args) {
//         logger.log(Level.WARNING, prepareMessage(message, args), t);
//     }
// 
//     public static void d(Throwable t) {
//         logger.log(Level.FINE, "", t);
//     }
// 
//     public static void s(@NotNull String message, Object... args) {
//         logger.severe(prepareMessage(message, args));
//     }
// 
//     private static String prepareMessage(String message, Object... args) {
//         return MessageFormat.format(message, args);
//     }
// }


// Path: src/main/java/ru/endlesscode/rpginventory/RPGInventoryPlugin.java
import ru.endlesscode.inspector.bukkit.plugin.TrackedPlugin;
import ru.endlesscode.inspector.bukkit.report.BukkitEnvironment;
import ru.endlesscode.inspector.report.*;
import ru.endlesscode.inspector.sentry.bukkit.SentryBukkitIntegration;
import ru.endlesscode.rpginventory.utils.Log;
import java.util.Arrays;
import java.util.List;

/*
 * This file is part of RPGInventory.
 * Copyright (C) 2018 EndlessCode Group and contributors
 *
 * RPGInventory is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * RPGInventory is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with RPGInventory.  If not, see <http://www.gnu.org/licenses/>.
 */

package ru.endlesscode.rpginventory;



@SuppressWarnings("unused")
public class RPGInventoryPlugin extends TrackedPlugin {

    private static final List<String> INTEREST_PLUGINS = Arrays.asList(
            "ProtocolLib", "Vault", "Mimic", "BattleLevels", "Skills", "Heroes", "RacesAndClasses",
            "SkillAPI", "MyPet", "RPGPlayerLeveling", "PlaceholderAPI", "MMOItems", "QuantumRPG",
            "MMOCore", "MMOInventory"
    );

    public RPGInventoryPlugin() {
        super(RPGInventory.class, new BukkitEnvironment.Properties(INTEREST_PLUGINS));
    }

    @Override
    protected final Reporter createReporter() {
        String dsn = "@sentry_dsn@";
        // Token will be replaced in compile time, so it can be empty
        // noinspection ConstantConditions
        if (dsn.isEmpty()) {
            Log.w("It is unofficial build of RPGInventory.");