Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
f81a1e13b1
Commit
891a26cc12
@ -33,7 +33,6 @@ import de.steamwar.sql.SteamwarUser;
|
||||
import net.md_5.bungee.api.ChatMessageType;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.inventory.ClickType;
|
||||
|
||||
@ -102,7 +101,7 @@ public class GUI {
|
||||
FightTeam team = Fight.getPlayerTeam(p);
|
||||
if(team == null)
|
||||
return;
|
||||
players.removeIf(swItemUUIDPair -> !team.equals(Fight.getPlayerTeam((LivingEntity) Bukkit.getEntity(swItemUUIDPair.getObject()))));
|
||||
players.removeIf(swItemUUIDPair -> !team.equals(Fight.getPlayerTeam(Bukkit.getPlayer(swItemUUIDPair.getObject()))));
|
||||
SWListInv<UUID> inv = new SWListInv<>(p, msg.parse("REMOVE_TITLE", p), players, (ClickType click, UUID player) -> {
|
||||
Commands.kick(p, SteamwarUser.get(player).getUserName());
|
||||
p.closeInventory();
|
||||
|
@ -78,7 +78,7 @@ public class FightPlayer {
|
||||
}
|
||||
|
||||
public LivingEntity getEntity() {
|
||||
LivingEntity bukkit = (LivingEntity) Bukkit.getEntity(entity.getUniqueId());
|
||||
LivingEntity bukkit = Bukkit.getPlayer(entity.getUniqueId());
|
||||
if(bukkit != null)
|
||||
entity = bukkit;
|
||||
return entity;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren