Skip to content

Commit

Permalink
Add dPlayer.sprinting mec
Browse files Browse the repository at this point in the history
  • Loading branch information
mergu committed Feb 13, 2018
1 parent 3d7db54 commit 547e6cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugin/src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -2415,6 +2415,19 @@ public void adjust(Mechanism mechanism) {
getPlayerEntity().setFlying(value.asBoolean());
}

// <--[mechanism]
// @object dPlayer
// @name sprinting
// @input Element(Boolean)
// @description
// Sets whether the player is sprinting.
// @tags
// <p@player.is_sprinting>
// -->
if (mechanism.matches("sprinting") && mechanism.requireBoolean()) {
getPlayerEntity().setSprinting(value.asBoolean());
}

// <--[mechanism]
// @object dPlayer
// @name gamemode
Expand Down

0 comments on commit 547e6cb

Please sign in to comment.