mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 08:25:07 +00:00
dont do static import for last commit
This commit is contained in:
parent
b712364e86
commit
2cf4ecdbd8
1 changed files with 4 additions and 6 deletions
|
@ -74,8 +74,6 @@ import org.bukkit.util.Vector;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
import static com.projectkorra.projectkorra.ProjectKorra.isStatisticsEnabled;
|
||||
|
||||
public class PKListener implements Listener {
|
||||
ProjectKorra plugin;
|
||||
|
||||
|
@ -631,11 +629,11 @@ public class PKListener implements Listener {
|
|||
}
|
||||
}.runTaskLater(ProjectKorra.plugin, 20);
|
||||
}
|
||||
if (event.getAttacker() != null && isStatisticsEnabled()) {
|
||||
if (event.getAttacker() != null && ProjectKorra.isStatisticsEnabled()) {
|
||||
StatisticsMethods.addStatisticAbility(event.getAttacker().getUniqueId(), CoreAbility.getAbility(event.getAbility().getName()), com.projectkorra.projectkorra.util.Statistic.PLAYER_KILLS, 1);
|
||||
}
|
||||
}
|
||||
if (event.getAttacker() != null && isStatisticsEnabled()) {
|
||||
if (event.getAttacker() != null && ProjectKorra.isStatisticsEnabled()) {
|
||||
StatisticsMethods.addStatisticAbility(event.getAttacker().getUniqueId(), CoreAbility.getAbility(event.getAbility().getName()), com.projectkorra.projectkorra.util.Statistic.TOTAL_KILLS, 1);
|
||||
}
|
||||
}
|
||||
|
@ -1014,7 +1012,7 @@ public class PKListener implements Listener {
|
|||
JUMPS.put(player, player.getStatistic(Statistic.JUMP));
|
||||
|
||||
GeneralMethods.createBendingPlayer(player.getUniqueId(), player.getName());
|
||||
if (isStatisticsEnabled()) {
|
||||
if (ProjectKorra.isStatisticsEnabled()) {
|
||||
Manager.getManager(StatisticsManager.class).load(player.getUniqueId());
|
||||
}
|
||||
Bukkit.getScheduler().runTaskLater(ProjectKorra.plugin, new Runnable() {
|
||||
|
@ -1151,7 +1149,7 @@ public class PKListener implements Listener {
|
|||
final Player player = event.getPlayer();
|
||||
final BendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player);
|
||||
|
||||
if (isStatisticsEnabled()) {
|
||||
if (ProjectKorra.isStatisticsEnabled()) {
|
||||
Manager.getManager(StatisticsManager.class).store(player.getUniqueId());
|
||||
}
|
||||
if (bPlayer != null) {
|
||||
|
|
Loading…
Reference in a new issue