mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
move here
This commit is contained in:
parent
5bb4bbde59
commit
db5e00a3ac
1 changed files with 4 additions and 6 deletions
|
@ -1216,6 +1216,10 @@ public class PKListener implements Listener {
|
||||||
GeneralMethods.removeUnusableAbilities(player.getName());
|
GeneralMethods.removeUnusableAbilities(player.getName());
|
||||||
}, 5);
|
}, 5);
|
||||||
|
|
||||||
|
// TFM Start - make players invincible by default
|
||||||
|
Commands.invincible.add(player.getName());
|
||||||
|
// TFM End
|
||||||
|
|
||||||
if (ConfigManager.languageConfig.get().getBoolean("Chat.Branding.JoinMessage.Enabled")) {
|
if (ConfigManager.languageConfig.get().getBoolean("Chat.Branding.JoinMessage.Enabled")) {
|
||||||
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, (Runnable) () -> {
|
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, (Runnable) () -> {
|
||||||
ChatColor color = ChatColor.valueOf(ConfigManager.languageConfig.get().getString("Chat.Branding.Color").toUpperCase());
|
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));
|
player.sendMessage(ChatColor.translateAlternateColorCodes('&', bottomBorder));
|
||||||
}
|
}
|
||||||
}, 20 * 4);
|
}, 20 * 4);
|
||||||
|
|
||||||
// TFM Start - make players invincible by default
|
|
||||||
if (!Commands.invincible.contains(player.getName())) {
|
|
||||||
Commands.invincible.add(player.getName());
|
|
||||||
}
|
|
||||||
// TFM End
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue