[Bleeding] Added support for amending help topic visibility permissions in help.yml. Addresses BUKKIT-1113

This commit is contained in:
rmichela
2012-03-10 18:08:12 -05:00
committed by EvilSeph
parent a8b2c6d04e
commit 996832ff6c
6 changed files with 45 additions and 24 deletions

View File

@@ -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;
}
}