Adding currency data to Hall feed.

This commit is contained in:
marcins78@gmail.com
2012-03-13 11:10:07 +00:00
parent 048bd374a7
commit bc9dc2155b

View File

@@ -45,6 +45,7 @@ public class HallResource extends AbstractResource {
Document doc = documentBuilder.newDocument();
Element hall = doc.createElement("hall");
hall.setAttribute("currency", String.valueOf(_collectionManager.getPlayerCollection(resourceOwner, "permanent").getCurrency()));
String motd = _hallServer.getMOTD();
if (motd != null)
hall.setAttribute("motd", motd);