move here

This commit is contained in:
Telesphoreo 2020-08-30 14:40:31 -05:00
parent 5bb4bbde59
commit db5e00a3ac

View file

@ -1216,6 +1216,10 @@ public class PKListener implements Listener {
GeneralMethods.removeUnusableAbilities(player.getName());
}, 5);
// TFM Start - make players invincible by default
Commands.invincible.add(player.getName());
// TFM End
if (ConfigManager.languageConfig.get().getBoolean("Chat.Branding.JoinMessage.Enabled")) {
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, (Runnable) () -> {
ChatColor color = ChatColor.valueOf(ConfigManager.languageConfig.get().getString("Chat.Branding.Color").toUpperCase());
@ -1230,12 +1234,6 @@ public class PKListener implements Listener {
player.sendMessage(ChatColor.translateAlternateColorCodes('&', bottomBorder));
}
}, 20 * 4);
// TFM Start - make players invincible by default
if (!Commands.invincible.contains(player.getName())) {
Commands.invincible.add(player.getName());
}
// TFM End
}
}