Package dev.cwhead.GravesX.debug
Class KeepInventoryDetector
java.lang.Object
dev.cwhead.GravesX.debug.KeepInventoryDetector
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate static booleanisKeepInventoryGameruleTrue(org.bukkit.World w) static voidprivate static booleansafeGetKeep(org.bukkit.event.entity.PlayerDeathEvent e, boolean fallback) static voidunhookPlugin(org.bukkit.plugin.Plugin target) private static voidwrapAllExcept(org.bukkit.plugin.Plugin self) static voidwrapPlugin(org.bukkit.plugin.Plugin target)
-
Field Details
-
plugin
-
installed
private static volatile boolean installed -
HOOKED
-
-
Constructor Details
-
KeepInventoryDetector
private KeepInventoryDetector()
-
-
Method Details
-
install
-
wrapPlugin
public static void wrapPlugin(org.bukkit.plugin.Plugin target) -
unhookPlugin
public static void unhookPlugin(org.bukkit.plugin.Plugin target) -
wrapAllExcept
- Throws:
Exception
-
logWorldsWithGameruleKeepInventoryTrue
-
isKeepInventoryGameruleTrue
private static boolean isKeepInventoryGameruleTrue(org.bukkit.World w) -
safeGetKeep
private static boolean safeGetKeep(org.bukkit.event.entity.PlayerDeathEvent e, boolean fallback)
-