Skip to content

Commit

Permalink
Add comment explaining particular use case in test plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rchomczyk committed Nov 24, 2024
1 parent 66701ed commit 7cde9af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions honey-test-plugin/src/dev/shiza/honey/ExamplePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ private AdventureMessageFormatter createReflectMessageFormatter() {
placeholderEvaluator, placeholderSanitizer, implicitConversion);
final ProcessorRegistry processorRegistry =
ProcessorRegistryFactory.create()
// 1) It will process placeholders in this phase.
.processor(ProcessorPhase.PREPROCESS, content -> content + " {{player.getName}}")
// 2) It will not process placeholders in this phase.
.processor(ProcessorPhase.POSTPROCESS, content -> content + " {{player.getUniqueId}}");
return AdventureMessageFormatterFactory.create(
messageCompiler,
Expand Down

0 comments on commit 7cde9af

Please sign in to comment.