Skip to content

Commit

Permalink
格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
JWJUN233233 committed Jan 20, 2024
1 parent 548332d commit dd9652d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public List<String> onTabComplete(CommandSender sender, Command cmd, String labe
.collect(Collectors.toList());
return createReturnList(list, args[1]);
} else if (args[0].equalsIgnoreCase("cleardata")) {
List<String> list =
new ArrayList<>(Bukkit.getWorlds().stream().map(WorldInfo::getName).toList());
List<String> list = new ArrayList<>(
Bukkit.getWorlds().stream().map(WorldInfo::getName).toList());
list.add("*");
return createReturnList(list, args[1]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ public void onExecute(@Nonnull CommandSender sender, @Nonnull String[] args) {
controller.removeAllDataInWorldAsync(
world,
() -> Slimefun.runSync(() -> Slimefun.getLocalization()
.sendMessage(
sender,
"commands.cleardata.success",
true,
msg -> msg.replace("{0}", world.getName()).replace("{1}", block))));
.sendMessage(sender, "commands.cleardata.success", true, msg -> msg.replace(
"{0}", world.getName())
.replace("{1}", block))));
} else if (cleartype.equals("oil")) {
GEOResource oilresource = null;
for (GEOResource resource :
Expand All @@ -74,11 +72,9 @@ public void onExecute(@Nonnull CommandSender sender, @Nonnull String[] args) {
world,
oilresource.getKey().toString().replace(":", "-"),
() -> Slimefun.runSync(() -> Slimefun.getLocalization()
.sendMessage(
sender,
"commands.cleardata.success",
true,
msg -> msg.replace("{0}", world.getName()).replace("{1}", oil))));
.sendMessage(sender, "commands.cleardata.success", true, msg -> msg.replace(
"{0}", world.getName())
.replace("{1}", oil))));
}
}
}
Expand Down

0 comments on commit dd9652d

Please sign in to comment.