chore: make code style consistent
This commit is contained in:
parent
a2cea2f33e
commit
89ec3fbf29
380 changed files with 479 additions and 936 deletions
|
|
@ -601,7 +601,5 @@ public final class ExamplePlugin extends JavaPlugin {
|
|||
* @return Required game mode
|
||||
*/
|
||||
GameMode value();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ import org.checkerframework.framework.qual.DefaultQualifier;
|
|||
|
||||
@DefaultQualifier(NonNull.class)
|
||||
final class Mc113 {
|
||||
|
||||
private final BukkitCommandManager<CommandSender> manager;
|
||||
|
||||
Mc113(final BukkitCommandManager<CommandSender> manager) {
|
||||
|
|
@ -98,5 +99,4 @@ final class Mc113 {
|
|||
ctx.getSender().sendMessage("result: " + predicate.test(
|
||||
protoItemStack.createItemStack(1, true)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,5 +148,4 @@ public final class ExamplePlugin extends Plugin {
|
|||
})
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,5 +57,4 @@ public final class ExampleBot {
|
|||
|
||||
SimplixInstaller.instance().install(Platform.STANDALONE);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,5 +119,4 @@ public class ExampleApplication {
|
|||
this.discordApiComponent.shutdown();
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,5 +100,4 @@ public class CommandsComponent {
|
|||
Preconditions.checkNotNull(this.commandManager, "Command Manager has not been initialized yet");
|
||||
return this.commandManager;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,5 +99,4 @@ public class DiscordApiComponent {
|
|||
CONNECTED,
|
||||
DISCONNECTED
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,5 +47,4 @@ public class ExampleModule extends AbstractSimplixModule {
|
|||
public final @NonNull ScheduledExecutorService provideExecutorService() {
|
||||
return Executors.newScheduledThreadPool(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,5 +79,4 @@ public abstract class CustomUser {
|
|||
public final @NonNull MessageChannel getChannel() {
|
||||
return this.channel;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -148,5 +148,4 @@ public final class ExampleBot {
|
|||
textChannel.sendMessage(user.getName() + " kicked").complete();
|
||||
}));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,11 @@ public final class GuildUser extends CustomUser {
|
|||
* @param member Guild member that sent the message
|
||||
* @param channel Text channel that the message was sent in
|
||||
*/
|
||||
public GuildUser(final @Nullable MessageReceivedEvent event, final @NonNull Member member, final @NonNull TextChannel channel) {
|
||||
public GuildUser(
|
||||
final @Nullable MessageReceivedEvent event,
|
||||
final @NonNull Member member,
|
||||
final @NonNull TextChannel channel
|
||||
) {
|
||||
super(event, member.getUser(), channel);
|
||||
this.member = member;
|
||||
this.channel = channel;
|
||||
|
|
@ -64,5 +68,4 @@ public final class GuildUser extends CustomUser {
|
|||
public @NonNull TextChannel getTextChannel() {
|
||||
return this.channel;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,5 +73,4 @@ public final class PermissionRegistry {
|
|||
this.permissions.putIfAbsent(userId, new HashSet<>());
|
||||
return this.permissions.get(userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,11 @@ public final class PrivateUser extends CustomUser {
|
|||
* @param user User that sent the message
|
||||
* @param channel Text channel that the message was sent in
|
||||
*/
|
||||
public PrivateUser(final @Nullable MessageReceivedEvent event, final @NonNull User user, final @NonNull PrivateChannel channel) {
|
||||
public PrivateUser(
|
||||
final @Nullable MessageReceivedEvent event,
|
||||
final @NonNull User user,
|
||||
final @NonNull PrivateChannel channel
|
||||
) {
|
||||
super(event, user, channel);
|
||||
this.privateChannel = channel;
|
||||
}
|
||||
|
|
@ -53,5 +57,4 @@ public final class PrivateUser extends CustomUser {
|
|||
public @NonNull PrivateChannel getPrivateChannel() {
|
||||
return this.privateChannel;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,5 +118,4 @@ public final class ExampleVelocityPlugin {
|
|||
})
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue