refactor: use final on basically everything
i'm kinda tired of the inconsistency since some stuff are non-final and some are final so i just made everything final, not sure how much it impacts on stuff but everything should be fine, there were around 1,400 replacements according to the idea code analyzer
This commit is contained in:
@@ -29,7 +29,7 @@ public class NetMessageCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Component execute (CommandContext context) throws CommandException {
|
||||
public Component execute (final CommandContext context) throws CommandException {
|
||||
final Bot bot = context.bot;
|
||||
final List<Bot> bots = bot.bots;
|
||||
|
||||
@@ -78,7 +78,7 @@ public class NetMessageCommand extends Command {
|
||||
)
|
||||
).color(NamedTextColor.DARK_GRAY);
|
||||
|
||||
for (Bot eachBot : bots) {
|
||||
for (final Bot eachBot : bots) {
|
||||
if (!eachBot.loggedIn) continue;
|
||||
eachBot.chat.tellraw(component);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user