X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Freactor%2Factions%2FStandardOutAction.java;h=8cad0924f3e3e5df5e3f1347f92d83c4632d69d3;hb=13a4fe6bece23b3dd561de657cf9bb7ea307e2b6;hp=992be1facb7073d3918fd21acf059ad6ee9242dc;hpb=37f6d1e1952cec5a506fd2dfa59df69476f9370b;p=rhynodge.git diff --git a/src/main/java/net/pterodactylus/reactor/actions/StandardOutAction.java b/src/main/java/net/pterodactylus/reactor/actions/StandardOutAction.java index 992be1f..8cad092 100644 --- a/src/main/java/net/pterodactylus/reactor/actions/StandardOutAction.java +++ b/src/main/java/net/pterodactylus/reactor/actions/StandardOutAction.java @@ -19,6 +19,7 @@ package net.pterodactylus.reactor.actions; import net.pterodactylus.reactor.Action; import net.pterodactylus.reactor.State; +import net.pterodactylus.reactor.output.Output; /** * {@link Action} that simply dumps all {@link State}s to standard output. @@ -31,8 +32,8 @@ public class StandardOutAction implements Action { * {@inheritDoc} */ @Override - public void execute(State currentState, State previousState) { - System.out.println(String.format("currentState: %s, previousState: %s", currentState, previousState)); + public void execute(Output output) { + System.out.println(String.format("Triggered by %s.", output.text("text/plain", -1))); } }