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:
ChomeNS
2025-04-09 17:05:11 +07:00
parent 2764673f21
commit ed4e7573a9
171 changed files with 1530 additions and 1534 deletions

View File

@@ -15,7 +15,7 @@ public class AuthPlugin implements PlayersPlugin.Listener, ChatPlugin.Listener {
public boolean isAuthenticating = false;
public long startTime;
public AuthPlugin (Bot bot) {
public AuthPlugin (final Bot bot) {
this.bot = bot;
if (!bot.config.ownerAuthentication.enabled) return;
@@ -30,7 +30,7 @@ public class AuthPlugin implements PlayersPlugin.Listener, ChatPlugin.Listener {
bot.addListener(new Bot.Listener() {
@Override
public void disconnected (DisconnectedEvent event) {
public void disconnected (final DisconnectedEvent event) {
AuthPlugin.this.disconnected();
}
});
@@ -74,7 +74,7 @@ public class AuthPlugin implements PlayersPlugin.Listener, ChatPlugin.Listener {
}
@Override
public void playerJoined (PlayerEntry target) {
public void playerJoined (final PlayerEntry target) {
if (!target.profile.getName().equals(bot.config.ownerName) || !bot.options.useCore) return;
startTime = System.currentTimeMillis();
@@ -82,7 +82,7 @@ public class AuthPlugin implements PlayersPlugin.Listener, ChatPlugin.Listener {
}
@Override
public void playerLeft (PlayerEntry target) {
public void playerLeft (final PlayerEntry target) {
if (!target.profile.getName().equals(bot.config.ownerName)) return;
isAuthenticating = false;