Search in sources :

Example 1 with PlayerKillMutator

use of com.djrapitops.plan.delivery.domain.mutators.PlayerKillMutator in project Plan by plan-player-analytics.

the class JSONFactory method serverPlayerKillsAsJSONMap.

public List<Map<String, Object>> serverPlayerKillsAsJSONMap(ServerUUID serverUUID) {
    Database db = dbSystem.getDatabase();
    List<PlayerKill> kills = db.query(KillQueries.fetchPlayerKillsOnServer(serverUUID, 100));
    return new PlayerKillMutator(kills).toJSONAsMap(formatters);
}
Also used : Database(com.djrapitops.plan.storage.database.Database) PlayerKillMutator(com.djrapitops.plan.delivery.domain.mutators.PlayerKillMutator)

Aggregations

PlayerKillMutator (com.djrapitops.plan.delivery.domain.mutators.PlayerKillMutator)1 Database (com.djrapitops.plan.storage.database.Database)1