use of org.cubeengine.module.vigil.report.Action in project modules-extra by CubeEngine.
the class QuitReport method showReport.
@Override
public void showReport(List<Action> actions, Receiver receiver) {
Action action = actions.get(0);
receiver.sendReport(this, actions, actions.size(), "{txt} left the game", "{txt} left the game x{}", Recall.cause(action), actions.size());
}
use of org.cubeengine.module.vigil.report.Action in project modules-extra by CubeEngine.
the class QuitReport method observe.
@Override
protected Action observe(ClientConnectionEvent.Disconnect event) {
Action action = newReport();
action.addData(CAUSE, Observe.causes(Cause.of(EventContext.empty(), event.getTargetEntity())));
action.addData(LOCATION, Observe.location(event.getTargetEntity().getLocation()));
return action;
}
use of org.cubeengine.module.vigil.report.Action in project modules-extra by CubeEngine.
the class ChangeInventoryReport method observe.
@Override
public Action observe(ChangeInventoryEvent event) {
Action action = newReport();
action.addData(CAUSE, Observe.causes(event.getCause()));
return action;
}
use of org.cubeengine.module.vigil.report.Action in project modules-extra by CubeEngine.
the class InventoryOpenReport method showReport.
@Override
public void showReport(List<Action> actions, Receiver receiver) {
Action action = actions.get(0);
receiver.sendReport(this, actions, actions.size(), "{txt} open {txt}", "{txt} open {txt} x{}", Recall.cause(action), Text.of("?"), actions.size());
}
Aggregations