MCPcopy Create free account
hub / github.com/Teneted/Tenet / amendTopic

Method amendTopic

src/main/java/org/bukkit/help/HelpTopic.java:103–106  ·  view source on GitHub ↗

Allows the server admin (or another plugin) to add or replace the contents of a help topic. A null in either parameter will leave that part of the topic unchanged. In either amending parameter, the string {@literal } is replaced with the existing contents in the help topic. Use this to app

(@Nullable String amendedShortText, @Nullable String amendedFullText)

Source from the content-addressed store, hash-verified

101 * alone.
102 */
103 public void amendTopic(@Nullable String amendedShortText, @Nullable String amendedFullText) {
104 shortText = applyAmendment(shortText, amendedShortText);
105 fullText = applyAmendment(fullText, amendedFullText);
106 }
107
108 /**
109 * Developers implementing their own custom HelpTopic implementations can

Callers 1

initializeCommandsMethod · 0.80

Calls 1

applyAmendmentMethod · 0.95

Tested by

no test coverage detected