use of net.minecraft.server.v1_12_R1.MinecraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
WorldServer worldServer = minecraftServer.getWorldServer(DimensionManager.OVERWORLD);
InterceptedCommandListener commandListener = new InterceptedCommandListener(executorName);
InterceptedCommandListenerWrapper listenerWrapper = new InterceptedCommandListenerWrapper(commandListener, worldServer, executorName, permissionLevel);
return new InterceptedProxiedSender(listenerWrapper, commandListener);
}
use of net.minecraft.server.v1_12_R1.MinecraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
WorldServer worldServer = minecraftServer.getWorldServer(0);
InterceptedCommandListener commandListener = new InterceptedCommandListener(executorName);
InterceptedCommandListenerWrapper listenerWrapper = new InterceptedCommandListenerWrapper(commandListener, worldServer, executorName, permissionLevel);
return new InterceptedProxiedSender(listenerWrapper, commandListener);
}
use of net.minecraft.server.v1_12_R1.MinecraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
WorldServer worldServer = minecraftServer.getWorldServer(DimensionManager.OVERWORLD);
InterceptedCommandListener commandListener = new InterceptedCommandListener(executorName);
InterceptedCommandListenerWrapper listenerWrapper = new InterceptedCommandListenerWrapper(commandListener, worldServer, executorName, permissionLevel);
return new InterceptedProxiedSender(listenerWrapper, commandListener);
}
use of net.minecraft.server.v1_12_R1.MinecraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
InterceptedCommandListener commandListener = new InterceptedCommandListener(minecraftServer, permissionLevel, executorName);
return new InterceptedProxiedSender(commandListener, commandListener);
}
use of net.minecraft.server.v1_12_R1.MinecraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
WorldServer worldServer = minecraftServer.getWorldServer(World.OVERWORLD);
InterceptedCommandListener commandListener = new InterceptedCommandListener(executorName);
InterceptedCommandListenerWrapper listenerWrapper = new InterceptedCommandListenerWrapper(commandListener, worldServer, executorName, permissionLevel);
return new InterceptedProxiedSender(listenerWrapper, commandListener);
}
Aggregations