mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Fixed a few warnings
This commit is contained in:
parent
2d7c462477
commit
accd841b51
@ -59,6 +59,7 @@ public class PermissionsResolverManager implements PermissionsResolver {
|
|||||||
private String name;
|
private String name;
|
||||||
private Logger logger;
|
private Logger logger;
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
protected Class<? extends PermissionsResolver>[] availableResolvers = new Class[] {
|
protected Class<? extends PermissionsResolver>[] availableResolvers = new Class[] {
|
||||||
PluginPermissionsResolver.class,
|
PluginPermissionsResolver.class,
|
||||||
PermissionsExResolver.class,
|
PermissionsExResolver.class,
|
||||||
@ -87,7 +88,7 @@ public class PermissionsResolverManager implements PermissionsResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void findResolver() {
|
public void findResolver() {
|
||||||
for (Class resolverClass : availableResolvers) {
|
for (Class<? extends PermissionsResolver> resolverClass : availableResolvers) {
|
||||||
try {
|
try {
|
||||||
Method factoryMethod = resolverClass.getMethod("factory", Server.class, Configuration.class);
|
Method factoryMethod = resolverClass.getMethod("factory", Server.class, Configuration.class);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user