1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-08 21:30:55 +02:00

More work

This commit is contained in:
Luck
2019-11-18 21:19:59 +00:00
parent 7a37fcd792
commit a5e15b8a29
33 changed files with 246 additions and 373 deletions

View File

@@ -11,6 +11,7 @@ if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePass
apply plugin: 'signing'
javadoc {
title = 'LuckPerms API (v' + project.ext.apiVersion + ')'
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
options.links(
@@ -56,7 +57,7 @@ if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePass
project {
name 'LuckPerms API'
description 'An advanced permissions plugin for Bukkit/Spigot, BungeeCord, Sponge, Nukkit and Velocity.'
url 'https://luckperms.github.io'
url 'https://luckperms.net'
licenses {
license {

View File

@@ -160,7 +160,7 @@ public interface LuckPerms {
/**
* Gets the {@link ContextManager}, responsible for managing
* {@link ContextCalculator}s, and calculating applicable contexts.</p>
* {@link ContextCalculator}s, and calculating applicable contexts.
*
* @return the context manager
*/

View File

@@ -47,6 +47,7 @@ public interface ExtensionManager {
* Loads the extension at the given path.
*
* @param path the path to the extension
* @return the extension
* @throws IOException if the extension could not be loaded
*/
@NonNull Extension loadExtension(Path path) throws IOException;

View File

@@ -35,8 +35,8 @@ import java.util.Objects;
* <p>It is intended that {@link NodeMetadataKey}s are obtained and stored as
* follows.</p>
* <p><blockquote><pre>
* public static final NodeMetadataKey<SpecialMetadata> SPECIAL_METADATA_KEY = NodeMetadataKey.of("specialmetadata", SpecialMetadata.class);
* </pre></blockquote></p>
* public static final NodeMetadataKey&lt;SpecialMetadata&gt; SPECIAL_METADATA_KEY = NodeMetadataKey.of("specialmetadata", SpecialMetadata.class);
* </pre></blockquote>
*
* @param <T> the metadata type
*/
@@ -70,6 +70,6 @@ public interface NodeMetadataKey<T> {
*
* @return the type
*/
@NonNull Class<T> getType();
@NonNull Class<T> type();
}

View File

@@ -44,7 +44,7 @@ final class SimpleNodeMetadataKey<T> implements NodeMetadataKey<T> {
}
@Override
public @NonNull Class<T> getType() {
public @NonNull Class<T> type() {
return this.type;
}

View File

@@ -52,6 +52,6 @@ public interface InheritanceOriginMetadata {
*
* @return where the node was inherited from.
*/
@NonNull String getOrigin();
PermissionHolder.@NonNull Identifier getOrigin();
}

View File

@@ -36,8 +36,8 @@ import java.util.Objects;
*
* <p>It is intended that {@link OptionKey}s are created and defined as follows.</p>
* <p><blockquote><pre>
* public static final OptionKey<String> SPECIAL_OPTION = OptionKey.of("special", String.class);
* </pre></blockquote></p>
* public static final OptionKey&lt;String&gt; SPECIAL_OPTION = OptionKey.of("special", String.class);
* </pre></blockquote>
*
* @param <T> the option type
*/
@@ -71,6 +71,6 @@ public interface OptionKey<T> {
*
* @return the type
*/
@NonNull Class<T> getType();
@NonNull Class<T> type();
}

View File

@@ -44,7 +44,7 @@ final class SimpleOptionKey<T> implements OptionKey<T> {
}
@Override
public @NonNull Class<T> getType() {
public @NonNull Class<T> type() {
return this.type;
}