Package live.crowdcontrol.cc4j
Interface CCEffect
- All Known Subinterfaces:
CCTimedEffect
public interface CCEffect
An effect which a viewer can purchase to perform an action.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidonTrigger(@NotNull PublicEffectPayload request, @NotNull CCPlayer source) Triggers this effect.
-
Field Details
-
EFFECT_ID_PATTERN
- See Also:
-
-
Method Details
-
onTrigger
Triggers this effect. To respond to it, callCCPlayer.sendResponse(CCEffectResponse). Please note that if you fail to emit a terminating response within 60 seconds then a failure response will be produced for you.- Parameters:
request- the request responsible for invoking this effectsource- the player whose connection originated this request
-