From b7855c348721f3d1a4563fb4134672ec0d062666 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Mon, 28 Aug 2023 11:30:04 -0400 Subject: [PATCH] Run formatter on previous changes --- src/main/java/emu/grasscutter/command/CommandMap.java | 7 +++---- .../java/emu/grasscutter/game/inventory/Inventory.java | 9 ++++----- .../server/event/game/ExecuteCommandEvent.java | 7 ++----- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/CommandMap.java b/src/main/java/emu/grasscutter/command/CommandMap.java index a1e2b39eb..2d154f4c8 100644 --- a/src/main/java/emu/grasscutter/command/CommandMap.java +++ b/src/main/java/emu/grasscutter/command/CommandMap.java @@ -1,15 +1,14 @@ package emu.grasscutter.command; +import static emu.grasscutter.config.Configuration.SERVER; + import emu.grasscutter.Grasscutter; import emu.grasscutter.database.DatabaseHelper; import emu.grasscutter.game.player.Player; import emu.grasscutter.server.event.game.ExecuteCommandEvent; import it.unimi.dsi.fastutil.objects.*; -import org.reflections.Reflections; - import java.util.*; - -import static emu.grasscutter.config.Configuration.SERVER; +import org.reflections.Reflections; @SuppressWarnings({"UnusedReturnValue", "unused"}) public final class CommandMap { diff --git a/src/main/java/emu/grasscutter/game/inventory/Inventory.java b/src/main/java/emu/grasscutter/game/inventory/Inventory.java index 8f15deb07..9a293f0f0 100644 --- a/src/main/java/emu/grasscutter/game/inventory/Inventory.java +++ b/src/main/java/emu/grasscutter/game/inventory/Inventory.java @@ -1,5 +1,7 @@ package emu.grasscutter.game.inventory; +import static emu.grasscutter.config.Configuration.INVENTORY_LIMITS; + import emu.grasscutter.Grasscutter; import emu.grasscutter.data.GameData; import emu.grasscutter.data.common.ItemParamData; @@ -16,12 +18,9 @@ import emu.grasscutter.server.packet.send.*; import emu.grasscutter.utils.Utils; import it.unimi.dsi.fastutil.ints.*; import it.unimi.dsi.fastutil.longs.*; -import lombok.val; - -import javax.annotation.Nullable; import java.util.*; - -import static emu.grasscutter.config.Configuration.INVENTORY_LIMITS; +import javax.annotation.Nullable; +import lombok.val; public class Inventory extends BasePlayerManager implements Iterable { private final Long2ObjectMap store; diff --git a/src/main/java/emu/grasscutter/server/event/game/ExecuteCommandEvent.java b/src/main/java/emu/grasscutter/server/event/game/ExecuteCommandEvent.java index 5fc8da5bd..6b880f3cf 100644 --- a/src/main/java/emu/grasscutter/server/event/game/ExecuteCommandEvent.java +++ b/src/main/java/emu/grasscutter/server/event/game/ExecuteCommandEvent.java @@ -2,9 +2,8 @@ package emu.grasscutter.server.event.game; import emu.grasscutter.game.player.Player; import emu.grasscutter.server.event.*; -import lombok.*; - import javax.annotation.Nullable; +import lombok.*; @Getter @AllArgsConstructor @@ -12,8 +11,6 @@ public final class ExecuteCommandEvent extends Event implements Cancellable { @Nullable private final Player sender; @Nullable @Setter private Player target; - /** - * This does not include the '/' prefix. - */ + /** This does not include the '/' prefix. */ @Setter private String command; }