Skip to content

Commit

Permalink
Imports optimisés (IntelliJ)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Sep 5, 2023
1 parent 24ae019 commit 7b1ed64
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
5 changes: 1 addition & 4 deletions core/src/main/java/fr/efreicraft/ludos/core/Core.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package fr.efreicraft.ludos.core;

import com.comphenix.protocol.ProtocolManager;
import fr.efreicraft.ACP.ACP;
import fr.efreicraft.ludos.core.commands.CommandManager;
import fr.efreicraft.ludos.core.games.GameServerDispatcher;
import fr.efreicraft.ludos.core.handlers.RedisHandler;
import fr.efreicraft.ludos.core.players.PlayerManager;
import fr.efreicraft.ludos.core.games.GameManager;
import fr.efreicraft.ludos.core.maps.MapManager;
import fr.efreicraft.ludos.core.players.PlayerManager;
import fr.efreicraft.ludos.core.teams.TeamManager;
import org.bukkit.Server;
import org.bukkit.plugin.java.JavaPlugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,17 @@
import fr.efreicraft.ludos.core.games.GameManager;
import fr.efreicraft.ludos.core.players.LudosPlayer;
import fr.efreicraft.ludos.core.utils.ActionBarUtils;
import fr.efreicraft.ludos.core.utils.NBTUtils;
import net.kyori.adventure.text.Component;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.FoodLevelChangeEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.player.*;
import org.jetbrains.annotations.NotNull;
import org.spigotmc.event.player.PlayerSpawnLocationEvent;

import java.util.UUID;

/**
* Evenements de Core.
*
Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/fr/efreicraft/ludos/core/LudosCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.comphenix.protocol.ProtocolLibrary;
import fr.efreicraft.ACP.ACP;
import fr.efreicraft.ludos.core.games.GameServerDispatcher;
import fr.efreicraft.ludos.core.handlers.RedisHandler;
import org.bukkit.plugin.java.JavaPlugin;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
import fr.efreicraft.ludos.core.Core;
import fr.efreicraft.ludos.core.games.exceptions.GameRegisteringException;
import fr.efreicraft.ludos.core.games.exceptions.GameStatusException;
import fr.efreicraft.ludos.core.players.LudosPlayer;
import fr.efreicraft.ludos.core.utils.MessageUtils;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.jetbrains.annotations.NotNull;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fr.efreicraft.ludos.core.games.interfaces;

import fr.efreicraft.ludos.core.Core;
import fr.efreicraft.ludos.core.games.exceptions.GameRegisteringException;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import fr.efreicraft.ecatup.players.scoreboards.PlayerScoreboard;
import fr.efreicraft.ecatup.players.scoreboards.ScoreboardField;
import fr.efreicraft.ludos.core.Core;
import fr.efreicraft.ludos.core.LudosCore;
import fr.efreicraft.ludos.core.games.GameManager;
import fr.efreicraft.ludos.core.games.interfaces.Game;
import fr.efreicraft.ludos.core.players.runnables.PlayerRespawnCountdown;
Expand All @@ -14,7 +13,6 @@
import fr.efreicraft.ludos.core.utils.SoundUtils;
import fr.efreicraft.ludos.core.utils.TitleUtils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.JoinConfiguration;
import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.TextDecoration;
Expand Down Expand Up @@ -131,7 +129,7 @@ public void setupScoreboard() {
}
maxString = "&7/" + game.getMetadata().rules().maxPlayers();
}
return color + "" + Core.get().getPlayerManager().getNumberOfPlayingPlayers() + maxString;
return color + String.valueOf(Core.get().getPlayerManager().getNumberOfPlayingPlayers()) + maxString;
}
)
);
Expand Down

0 comments on commit 7b1ed64

Please sign in to comment.