[Bleeding] Added support for amending help topic visibility permissions in help.yml. Addresses BUKKIT-1113
This commit is contained in:
@@ -7,11 +7,13 @@ public class HelpTopicAmendment {
|
||||
private String topicName;
|
||||
private String shortText;
|
||||
private String fullText;
|
||||
private String permission;
|
||||
|
||||
public HelpTopicAmendment(String topicName, String shortText, String fullText) {
|
||||
public HelpTopicAmendment(String topicName, String shortText, String fullText, String permission) {
|
||||
this.fullText = fullText;
|
||||
this.shortText = shortText;
|
||||
this.topicName = topicName;
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,4 +39,12 @@ public class HelpTopicAmendment {
|
||||
public String getTopicName() {
|
||||
return topicName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the amended permission
|
||||
* @return the permission
|
||||
*/
|
||||
public String getPermission() {
|
||||
return permission;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user