Working plugin yml generation

This commit is contained in:
Jascha Starke 2013-01-13 14:40:32 +01:00
parent d09306a9b7
commit 2501aed96a
3 changed files with 8 additions and 2 deletions

View file

@ -106,7 +106,8 @@
<source>1.6</source> <source>1.6</source>
<target>1.6</target> <target>1.6</target>
<annotationProcessors> <annotationProcessors>
<annotationProcessor>de.jaschastarke.bukkit.maven.AnnotationProcessor</annotationProcessor> <!-- Needed to fetch DocComments from Source -->
<annotationProcessor>de.jaschastarke.maven.AnnotationProcessor</annotationProcessor>
</annotationProcessors> </annotationProcessors>
</configuration> </configuration>
</plugin> </plugin>
@ -131,7 +132,7 @@
<dev-url>http://dev.bukkit.org/server-mods/limited-creative/</dev-url> <dev-url>http://dev.bukkit.org/server-mods/limited-creative/</dev-url>
</custom> </custom>
<registeredPermissions> <registeredPermissions>
<param>de.jaschastarke.minecraft.limitedcreative.Perms.Root</param> <param>de.jaschastarke.minecraft.limitedcreative.Perms:Root</param>
</registeredPermissions> </registeredPermissions>
</configuration> </configuration>
</execution> </execution>
@ -157,6 +158,7 @@
<filter> <filter>
<artifact>de.jaschastarke:plib</artifact> <artifact>de.jaschastarke:plib</artifact>
<excludes> <excludes>
<exclude>de/jaschastarke/maven/**</exclude>
<exclude>de/jaschastarke/bukkit/maven/**</exclude> <exclude>de/jaschastarke/bukkit/maven/**</exclude>
</excludes> </excludes>
</filter> </filter>

View file

@ -19,12 +19,14 @@ package de.jaschastarke.minecraft.limitedcreative;
import org.bukkit.permissions.PermissionDefault; import org.bukkit.permissions.PermissionDefault;
import de.jaschastarke.maven.ArchiveDocComments;
import de.jaschastarke.minecraft.lib.annotations.PermissionDescripted; import de.jaschastarke.minecraft.lib.annotations.PermissionDescripted;
import de.jaschastarke.minecraft.lib.permissions.IAbstractPermission; import de.jaschastarke.minecraft.lib.permissions.IAbstractPermission;
import de.jaschastarke.minecraft.lib.permissions.IPermissionContainer; import de.jaschastarke.minecraft.lib.permissions.IPermissionContainer;
import de.jaschastarke.minecraft.lib.permissions.IPermission; import de.jaschastarke.minecraft.lib.permissions.IPermission;
@PermissionDescripted(PermissionDescripted.Type.STATIC_ATTRIBUTES) @PermissionDescripted(PermissionDescripted.Type.STATIC_ATTRIBUTES)
@ArchiveDocComments
public enum Perms implements IPermission { public enum Perms implements IPermission {
/** /**

View file

@ -2,11 +2,13 @@ package de.jaschastarke.minecraft.limitedcreative.limits;
import org.bukkit.permissions.PermissionDefault; import org.bukkit.permissions.PermissionDefault;
import de.jaschastarke.maven.ArchiveDocComments;
import de.jaschastarke.minecraft.lib.permissions.IAbstractPermission; import de.jaschastarke.minecraft.lib.permissions.IAbstractPermission;
import de.jaschastarke.minecraft.lib.permissions.IPermissionContainer; import de.jaschastarke.minecraft.lib.permissions.IPermissionContainer;
import de.jaschastarke.minecraft.lib.permissions.IPermission; import de.jaschastarke.minecraft.lib.permissions.IPermission;
import de.jaschastarke.minecraft.limitedcreative.Perms; import de.jaschastarke.minecraft.limitedcreative.Perms;
@ArchiveDocComments
public enum NoLimitPerms implements IPermission { public enum NoLimitPerms implements IPermission {
DROP("drop", PermissionDefault.FALSE), DROP("drop", PermissionDefault.FALSE),
PICKUP("pickup", PermissionDefault.FALSE), PICKUP("pickup", PermissionDefault.FALSE),