mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-26 10:11:27 +01:00
Fix (some) of the checkstyle violations
This commit is contained in:
parent
48ff8d8bd1
commit
ee4a8c8ec9
@ -31,18 +31,15 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List all gamerules in your current or specified world
|
* List all gamerules in your current or specified world.
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@CommandAlias("mv")
|
@CommandAlias("mv")
|
||||||
public class GamerulesCommand extends MultiverseCommand {
|
public class GamerulesCommand extends MultiverseCommand {
|
||||||
|
|
||||||
private final MVWorldManager worldManager;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public GamerulesCommand(@NotNull MVCommandManager commandManager, @NotNull MVWorldManager worldManager) {
|
public GamerulesCommand(@NotNull MVCommandManager commandManager) {
|
||||||
super(commandManager);
|
super(commandManager);
|
||||||
this.worldManager = worldManager;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subcommand("gamerules|rules")
|
@Subcommand("gamerules|rules")
|
||||||
@ -51,19 +48,16 @@ public class GamerulesCommand extends MultiverseCommand {
|
|||||||
@Syntax("[world] [page]")
|
@Syntax("[world] [page]")
|
||||||
@Description("{@@mv-core.gamerules.description}")
|
@Description("{@@mv-core.gamerules.description}")
|
||||||
public void onGamerulesCommand(@NotNull BukkitCommandIssuer issuer,
|
public void onGamerulesCommand(@NotNull BukkitCommandIssuer issuer,
|
||||||
|
@Optional
|
||||||
|
@Syntax("<world>")
|
||||||
|
@Description("{@@mv-core.gamerules.description.world}")
|
||||||
|
MVWorld world,
|
||||||
|
|
||||||
@Optional
|
@Optional
|
||||||
@Syntax("<world>")
|
@Default("1")
|
||||||
@Description("{@@mv-core.gamerules.description.world}")
|
@Syntax("<page>")
|
||||||
MVWorld world,
|
@Description("{@@mv-core.gamerules.description.page}")
|
||||||
|
int page
|
||||||
@Optional
|
|
||||||
@Default("1")
|
|
||||||
@Syntax("<page>")
|
|
||||||
@Description("{@@mv-core.gamerules.description.page}")
|
|
||||||
int page
|
|
||||||
|
|
||||||
|
|
||||||
) {
|
) {
|
||||||
Logging.finer("Page is: " + page);
|
Logging.finer("Page is: " + page);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user