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.booleanhasGodMode(LocalPlayer player)static booleanset(LocalPlayer player, Session session, boolean value)voidsetGodMode(LocalPlayer player, boolean godMode)Methods inherited from class com.sk89q.worldguard.session.handler.Handler
getSession, getWrappedHandler, initialize, onCrossBoundary, testMoveTo, tick
-
Field Details
-
FACTORY
-
-
Constructor Details
-
GodMode
-
-
Method Details
-
hasGodMode
-
setGodMode
-
getInvincibility
Description copied from class:HandlerReturn whether the player should be invincible.StateFlag.State.DENYcan be returned to prevent invincibility even if another handler permits it.- Overrides:
getInvincibilityin classHandler- Parameters:
player- The player- Returns:
- Invincibility state
-
set
-