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