Advertisement
horato

Logging private stores for GMs

Sep 9th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1.  
  2. ### Eclipse Workspace Patch 1.0
  3. #P L2J_Server_BETA
  4. Index: java/com/l2jserver/gameserver/model/TradeList.java
  5. ===================================================================
  6. --- java/com/l2jserver/gameserver/model/TradeList.java (revision 4769)
  7. +++ java/com/l2jserver/gameserver/model/TradeList.java (working copy)
  8. @@ -32,6 +32,7 @@
  9. import com.l2jserver.gameserver.network.serverpackets.StatusUpdate;
  10. import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
  11. import com.l2jserver.gameserver.templates.item.L2Item;
  12. +import com.l2jserver.gameserver.util.GMAudit;
  13. import com.l2jserver.gameserver.util.Util;
  14.  
  15. /**
  16. @@ -925,6 +926,9 @@
  17. msg.addItemName(newItem);
  18. player.sendPacket(msg);
  19. }
  20. +
  21. + if(player.isGM() && Config.GMAUDIT)
  22. + GMAudit.auditGMAction(player.getName(), "[PrivateStoreBuy]: Purchased "+newItem.getName()+"("+newItem.getCount()+") from "+_owner.getName()+" for "+item.getPrice()+" adena", _owner.getName());
  23. }
  24.  
  25. // Send inventory update packet
  26. @@ -1076,6 +1080,9 @@
  27. msg.addItemName(newItem);
  28. player.sendPacket(msg);
  29. }
  30. +
  31. + if(player.isGM() && Config.GMAUDIT)
  32. + GMAudit.auditGMAction(player.getName(), "[PrivateStoreSell]: selled "+newItem.getName()+"("+newItem.getCount()+") to "+_owner.getName()+" for "+item.getPrice()+" adena", _owner.getName());
  33. }
  34.  
  35. if (totalPrice > 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement