ge plugin: include world type in trades

This commit is contained in:
Adam
2020-05-30 19:58:20 -04:00
parent 44ea837346
commit 6a2e15643f
5 changed files with 31 additions and 0 deletions

View File

@@ -95,6 +95,8 @@ public class GrandExchangeController
trade.setMachineId(request.getHeader(RuneLiteAPI.RUNELITE_MACHINEID));
trade.setUserId(userId);
trade.setIp(request.getHeader("X-Forwarded-For"));
trade.setWorldType(grandExchangeTrade.getWorldType());
String json = GSON.toJson(trade);
try (Jedis jedis = redisPool.getResource())
{

View File

@@ -25,6 +25,7 @@
package net.runelite.http.service.ge;
import lombok.Data;
import net.runelite.http.api.worlds.WorldType;
@Data
class Trade
@@ -39,4 +40,5 @@ class Trade
private String machineId;
private Integer userId;
private String ip;
private WorldType worldType;
}