mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 05:03:33 +00:00
Remove ACF
This commit is contained in:
parent
47fcda6462
commit
8605120752
@ -4,7 +4,6 @@ import me.totalfreedom.data.*;
|
|||||||
|
|
||||||
public class Registration
|
public class Registration
|
||||||
{
|
{
|
||||||
private final CommandRegistry commandRegistry;
|
|
||||||
private final EventRegistry eventRegistry;
|
private final EventRegistry eventRegistry;
|
||||||
private final UserRegistry userRegistry;
|
private final UserRegistry userRegistry;
|
||||||
private final ServiceRegistry serviceRegistry;
|
private final ServiceRegistry serviceRegistry;
|
||||||
@ -13,7 +12,6 @@ public class Registration
|
|||||||
|
|
||||||
public Registration()
|
public Registration()
|
||||||
{
|
{
|
||||||
this.commandRegistry = new CommandRegistry();
|
|
||||||
this.eventRegistry = new EventRegistry();
|
this.eventRegistry = new EventRegistry();
|
||||||
this.userRegistry = new UserRegistry();
|
this.userRegistry = new UserRegistry();
|
||||||
this.serviceRegistry = new ServiceRegistry();
|
this.serviceRegistry = new ServiceRegistry();
|
||||||
@ -26,11 +24,6 @@ public class Registration
|
|||||||
return moduleRegistry;
|
return moduleRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandRegistry getCommandRegistry()
|
|
||||||
{
|
|
||||||
return commandRegistry;
|
|
||||||
}
|
|
||||||
|
|
||||||
public EventRegistry getEventRegistry()
|
public EventRegistry getEventRegistry()
|
||||||
{
|
{
|
||||||
return eventRegistry;
|
return eventRegistry;
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
package me.totalfreedom.data;
|
|
||||||
|
|
||||||
import co.aikar.commands.*;
|
|
||||||
import me.totalfreedom.base.CommonsBase;
|
|
||||||
|
|
||||||
public class CommandRegistry
|
|
||||||
{
|
|
||||||
private final PaperCommandManager manager;
|
|
||||||
private final PaperCommandContexts contexts;
|
|
||||||
private final PaperCommandCompletions completions;
|
|
||||||
private final CommandReplacements replacements;
|
|
||||||
private final CommandConditions<BukkitCommandIssuer,
|
|
||||||
BukkitCommandExecutionContext,
|
|
||||||
BukkitConditionContext> conditions;
|
|
||||||
|
|
||||||
public CommandRegistry()
|
|
||||||
{
|
|
||||||
this.manager = new PaperCommandManager(CommonsBase.getInstance());
|
|
||||||
this.contexts = new PaperCommandContexts(manager);
|
|
||||||
this.completions = new PaperCommandCompletions(manager);
|
|
||||||
this.replacements = manager.getCommandReplacements();
|
|
||||||
this.conditions = manager.getCommandConditions();
|
|
||||||
}
|
|
||||||
|
|
||||||
public PaperCommandManager getManager()
|
|
||||||
{
|
|
||||||
return manager;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PaperCommandContexts getContexts()
|
|
||||||
{
|
|
||||||
return contexts;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PaperCommandCompletions getCompletions()
|
|
||||||
{
|
|
||||||
return completions;
|
|
||||||
}
|
|
||||||
|
|
||||||
public CommandReplacements getReplacements()
|
|
||||||
{
|
|
||||||
return replacements;
|
|
||||||
}
|
|
||||||
|
|
||||||
public CommandConditions<BukkitCommandIssuer,
|
|
||||||
BukkitCommandExecutionContext,
|
|
||||||
BukkitConditionContext> getConditions()
|
|
||||||
{
|
|
||||||
return conditions;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void register(BaseCommand cmd)
|
|
||||||
{
|
|
||||||
manager.registerCommand(cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void unregister(BaseCommand cmd)
|
|
||||||
{
|
|
||||||
manager.unregisterCommand(cmd);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user