Reformat project

This commit is contained in:
broccolai 2020-12-07 12:01:30 +00:00 committed by Alexander Söderberg
parent 01d36aecd8
commit 237eda75ef
30 changed files with 130 additions and 87 deletions

View file

@ -2,4 +2,4 @@ name: ExamplePlugin
version: 1.2.0-SNAPSHOT
api-version: 1.13
main: cloud.commandframework.examples.bukkit.ExamplePlugin
depends: [Essentials]
depends: [ Essentials ]

View file

@ -34,7 +34,7 @@ public final class PrivateUser extends CustomUser {
/**
* Construct a Private user
*
* @param user User that sent the message
* @param user User that sent the message
* @param channel Text channel that the message was sent in
*/
public PrivateUser(final @NonNull User user, final @NonNull PrivateChannel channel) {

View file

@ -92,8 +92,8 @@ public final class ExampleVelocityPlugin {
);
commandManager.command(
commandManager.commandBuilder("example-server")
.argument(ServerArgument.of("server"))
.handler(context -> {
.argument(ServerArgument.of("server"))
.handler(context -> {
final RegisteredServer server = context.get("server");
context.getSender().sendMessage(
Identity.nil(),
@ -103,7 +103,7 @@ public final class ExampleVelocityPlugin {
Component.text(server.getServerInfo().getName(), NamedTextColor.AQUA)
).build()
);
})
})
);
}