Class KeepInventoryDetector

java.lang.Object
dev.cwhead.GravesX.debug.KeepInventoryDetector

public final class KeepInventoryDetector extends Object
  • Field Details

    • plugin

      private static Graves plugin
    • installed

      private static volatile boolean installed
    • HOOKED

      private static final Set<String> HOOKED
  • Constructor Details

    • KeepInventoryDetector

      private KeepInventoryDetector()
  • Method Details

    • install

      public static void install(Graves pluginInstance)
    • wrapPlugin

      public static void wrapPlugin(org.bukkit.plugin.Plugin target)
    • unhookPlugin

      public static void unhookPlugin(org.bukkit.plugin.Plugin target)
    • wrapAllExcept

      private static void wrapAllExcept(org.bukkit.plugin.Plugin self) throws Exception
      Throws:
      Exception
    • logWorldsWithGameruleKeepInventoryTrue

      public static void logWorldsWithGameruleKeepInventoryTrue(Graves plugin)
    • isKeepInventoryGameruleTrue

      private static boolean isKeepInventoryGameruleTrue(org.bukkit.World w)
    • safeGetKeep

      private static boolean safeGetKeep(org.bukkit.event.entity.PlayerDeathEvent e, boolean fallback)