use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
ServerLevel serverLevel = minecraftServer.getLevel(ServerLevel.OVERWORLD);
InterceptedCommandListener commandListener = new InterceptedCommandListener(executorName);
InterceptedCommandListenerWrapper listenerWrapper = new InterceptedCommandListenerWrapper(commandListener, serverLevel, executorName, permissionLevel);
return new InterceptedProxiedSender(listenerWrapper, commandListener);
}
use of org.bukkit.craftbukkit.v1_8_R1.CraftServer in project EasyPayments by EasyDonate.
the class VersionedInterceptorFactory method createFeedbackInterceptor.
@Override
@NotNull
public FeedbackInterceptor createFeedbackInterceptor() {
MinecraftServer minecraftServer = ((CraftServer) Bukkit.getServer()).getServer();
ServerLevel serverLevel = minecraftServer.getLevel(ServerLevel.OVERWORLD);
InterceptedCommandListener commandListener = new InterceptedCommandListener(executorName);
InterceptedCommandListenerWrapper listenerWrapper = new InterceptedCommandListenerWrapper(commandListener, serverLevel, executorName, permissionLevel);
return new InterceptedProxiedSender(listenerWrapper, commandListener);
}
use of org.bukkit.craftbukkit.v1_8_R1.CraftServer 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 org.bukkit.craftbukkit.v1_8_R1.CraftServer 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 org.bukkit.craftbukkit.v1_8_R1.CraftServer 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);
}
Aggregations