Class GodMode
java.lang.Object
com.sk89q.worldguard.session.handler.Handler
com.sk89q.worldguard.session.handler.GodMode
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInvincibility
(LocalPlayer player) Return whether the player should be invincible.boolean
hasGodMode
(LocalPlayer player) static boolean
set
(LocalPlayer player, Session session, boolean value) void
setGodMode
(LocalPlayer player, boolean godMode) Methods inherited from class com.sk89q.worldguard.session.handler.Handler
getSession, initialize, onCrossBoundary, testMoveTo, tick, uninitialize
-
Field Details
-
FACTORY
-
-
Constructor Details
-
GodMode
-
-
Method Details
-
hasGodMode
-
setGodMode
-
getInvincibility
Description copied from class:Handler
Return whether the player should be invincible.StateFlag.State.DENY
can be returned to prevent invincibility even if another handler permits it.- Overrides:
getInvincibility
in classHandler
- Parameters:
player
- The player- Returns:
- Invincibility state
-
set
-