aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-04-16 22:23:20 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-04-16 22:23:20 +0200
commitd163af77f66ef998f3689e57fe58c8f125f626cb (patch)
tree27da9c5c842a1ff0a0cd2dcfcd9e6e9bccf90224 /src/main/java
parent7d940d35cf867061de75176c3db7d0011a35b0b8 (diff)
downloadparquet-d163af77f66ef998f3689e57fe58c8f125f626cb.tar.gz
Cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/re/jag/parquet/commands/Savedata.java30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/main/java/re/jag/parquet/commands/Savedata.java b/src/main/java/re/jag/parquet/commands/Savedata.java
index 5d1c8e3..deb4c83 100644
--- a/src/main/java/re/jag/parquet/commands/Savedata.java
+++ b/src/main/java/re/jag/parquet/commands/Savedata.java
@@ -47,18 +47,30 @@ public class Savedata {
then(literal("stats").
then(argument("player", EntityArgumentType.player()).
then(argument("criteria", ObjectiveCriteriaArgumentType.objectiveCriteria()).
- executes((c)->print_player_stat(c.getSource(), EntityArgumentType.getPlayer(c, "player"), ObjectiveCriteriaArgumentType.getCriteria(c, "criteria"))).
+ executes((c) -> print_player_stat (
+ c.getSource(),
+ EntityArgumentType.getPlayer(c, "player"),
+ ObjectiveCriteriaArgumentType.getCriteria(c, "criteria")
+ )).
then(literal("import").then(argument("score", ObjectiveArgumentType.objective()).
- executes((c) -> import_stat_to_scoreboard(c.getSource(), EntityArgumentType.getPlayer(c, "player"), ObjectiveCriteriaArgumentType.getCriteria(c, "criteria"),
+ executes((c) -> import_stat_to_scoreboard (
+ c.getSource(),
+ EntityArgumentType.getPlayer(c, "player"),
+ ObjectiveCriteriaArgumentType.getCriteria(c, "criteria"),
ObjectiveArgumentType.getWritableObjective(c, "score"), 1)).
then(argument("multiplier", FloatArgumentType.floatArg()).
- executes((c) -> import_stat_to_scoreboard(c.getSource(), EntityArgumentType.getPlayer(c, "player"), ObjectiveCriteriaArgumentType.getCriteria(c, "criteria"),
- ObjectiveArgumentType.getWritableObjective(c, "score"), FloatArgumentType.getFloat(c, "multiplier")))))
- ))
- )
- )
- ;
-
+ executes((c) -> import_stat_to_scoreboard(
+ c.getSource(),
+ EntityArgumentType.getPlayer(c, "player"),
+ ObjectiveCriteriaArgumentType.getCriteria(c, "criteria"),
+ ObjectiveArgumentType.getWritableObjective(c, "score"),
+ FloatArgumentType.getFloat(c, "multiplier"))
+ )
+ )
+ ))
+ )
+ )
+ );
dispatcher.register(savedata);
}