This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed right clicks air contexts Also added player.block_on_cursor[#] tag. * Default Distance for the Previous Commit %.0 when on creative, 4.0 otherwise. * Documentation Improvements * Player Clicks Block Contexts Also moved a check to an Utilities file. * Fix Formatting Flaw
- Loading branch information
1 parent
43333c4
commit ccd3952
Showing
3 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/com/denizenscript/denizen2sponge/utilities/Utilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.denizenscript.denizen2sponge.utilities; | ||
|
||
import org.spongepowered.api.entity.living.player.Player; | ||
import org.spongepowered.api.entity.living.player.gamemode.GameModes; | ||
|
||
public class Utilities { | ||
|
||
public static double getHandReach(Player player) { | ||
return player.gameMode().equals(GameModes.CREATIVE) ? 5.0 : 4.0; | ||
} | ||
} |