mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Use new boolean
This commit is contained in:
parent
7935dd2ab6
commit
8c4cf4a4b4
@ -58,8 +58,8 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
|
|||||||
return;
|
return;
|
||||||
skinnable.getSkinTracker().updateViewer(entityplayer.getBukkitEntity());
|
skinnable.getSkinTracker().updateViewer(entityplayer.getBukkitEntity());
|
||||||
}
|
}
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), entityplayer.getBukkitEntity()));
|
entityplayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,8 +106,8 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,8 +107,8 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,8 +107,8 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,8 +108,8 @@ public class PlayerlistTracker extends PlayerChunkMap.EntityTracker {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,8 +108,8 @@ public class PlayerlistTracker extends PlayerChunkMap.EntityTracker {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,8 +108,8 @@ public class PlayerlistTracker extends PlayerChunkMap.EntityTracker {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public class PlayerlistTracker extends ChunkMap.TrackedEntity {
|
|||||||
boolean res = super.add(conn);
|
boolean res = super.add(conn);
|
||||||
if (res) {
|
if (res) {
|
||||||
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
conn.getPlayer().getBukkitEntity()));
|
conn.getPlayer().getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ public class PlayerlistTracker extends ChunkMap.TrackedEntity {
|
|||||||
boolean res = super.add(conn);
|
boolean res = super.add(conn);
|
||||||
if (res) {
|
if (res) {
|
||||||
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
conn.getPlayer().getBukkitEntity()));
|
conn.getPlayer().getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ public class CitizensEntityTracker extends ChunkMap.TrackedEntity {
|
|||||||
boolean res = super.add(conn);
|
boolean res = super.add(conn);
|
||||||
if (res) {
|
if (res) {
|
||||||
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
conn.getPlayer().getBukkitEntity()));
|
conn.getPlayer().getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ public class CitizensEntityTracker extends ChunkMap.TrackedEntity {
|
|||||||
boolean res = super.add(conn);
|
boolean res = super.add(conn);
|
||||||
if (res) {
|
if (res) {
|
||||||
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
conn.getPlayer().getBukkitEntity()));
|
conn.getPlayer().getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@ -105,8 +105,8 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
|
|||||||
|
|
||||||
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
public void updateLastPlayer(EntityPlayer lastUpdatedPlayer) {
|
||||||
if (lastUpdatedPlayer != null) {
|
if (lastUpdatedPlayer != null) {
|
||||||
Bukkit.getPluginManager().callEvent(
|
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
|
||||||
new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(), lastUpdatedPlayer.getBukkitEntity()));
|
lastUpdatedPlayer.getBukkitEntity(), !Bukkit.isPrimaryThread()));
|
||||||
lastUpdatedPlayer = null;
|
lastUpdatedPlayer = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user