use of mcjty.rftools.playerprops.PlayerExtendedProperties in project RFTools by McJty.
the class DialingDeviceTileEntity method changeFavorite.
// Server side only.
private void changeFavorite(String playerName, Coordinate receiver, int dimension, boolean favorite) {
List list = MinecraftServer.getServer().getConfigurationManager().playerEntityList;
for (Object p : list) {
EntityPlayerMP entityplayermp = (EntityPlayerMP) p;
if (playerName.equals(entityplayermp.getDisplayName())) {
PlayerExtendedProperties properties = PlayerExtendedProperties.getProperties(entityplayermp);
properties.getFavoriteDestinationsProperties().setDestinationFavorite(new GlobalCoordinate(receiver, dimension), favorite);
return;
}
}
}
Aggregations