Search in sources :

Example 51 with CraftServer

use of org.bukkit.craftbukkit.v1_15_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);
}
Also used : ServerLevel(net.minecraft.server.level.ServerLevel) CraftServer(org.bukkit.craftbukkit.v1_17_R1.CraftServer) MinecraftServer(net.minecraft.server.MinecraftServer) NotNull(org.jetbrains.annotations.NotNull)

Example 52 with CraftServer

use of org.bukkit.craftbukkit.v1_15_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);
}
Also used : ServerLevel(net.minecraft.server.level.ServerLevel) CraftServer(org.bukkit.craftbukkit.v1_18_R1.CraftServer) MinecraftServer(net.minecraft.server.MinecraftServer) NotNull(org.jetbrains.annotations.NotNull)

Example 53 with CraftServer

use of org.bukkit.craftbukkit.v1_15_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);
}
Also used : WorldServer(net.minecraft.server.v1_14_R1.WorldServer) CraftServer(org.bukkit.craftbukkit.v1_14_R1.CraftServer) MinecraftServer(net.minecraft.server.v1_14_R1.MinecraftServer) NotNull(org.jetbrains.annotations.NotNull)

Example 54 with CraftServer

use of org.bukkit.craftbukkit.v1_15_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);
}
Also used : WorldServer(net.minecraft.server.v1_15_R1.WorldServer) CraftServer(org.bukkit.craftbukkit.v1_15_R1.CraftServer) MinecraftServer(net.minecraft.server.v1_15_R1.MinecraftServer) NotNull(org.jetbrains.annotations.NotNull)

Example 55 with CraftServer

use of org.bukkit.craftbukkit.v1_15_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);
}
Also used : WorldServer(net.minecraft.server.v1_13_R1.WorldServer) CraftServer(org.bukkit.craftbukkit.v1_13_R1.CraftServer) MinecraftServer(net.minecraft.server.v1_13_R1.MinecraftServer) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

GameProfile (com.mojang.authlib.GameProfile)49 CraftServer (org.bukkit.craftbukkit.v1_16_R3.CraftServer)38 Player (org.bukkit.entity.Player)29 CraftServer (org.bukkit.craftbukkit.v1_18_R2.CraftServer)23 MinecraftServer (net.minecraft.server.MinecraftServer)22 CraftPlayer (org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer)21 CraftServer (org.bukkit.craftbukkit.v1_17_R1.CraftServer)21 ResourceLocation (net.minecraft.resources.ResourceLocation)20 NotNull (org.jetbrains.annotations.NotNull)18 ServerPlayer (net.minecraft.server.level.ServerPlayer)16 OfflinePlayer (org.bukkit.OfflinePlayer)16 CraftServer (org.bukkit.craftbukkit.v1_12_R1.CraftServer)16 Block (org.bukkit.block.Block)15 ServerLevel (net.minecraft.server.level.ServerLevel)14 Property (com.mojang.authlib.properties.Property)13 CraftWorld (org.bukkit.craftbukkit.v1_16_R3.CraftWorld)11 CraftBlock (org.bukkit.craftbukkit.v1_16_R3.block.CraftBlock)10 CraftServer (org.bukkit.craftbukkit.v1_18_R1.CraftServer)8 PlayerProfile (com.denizenscript.denizen.nms.util.PlayerProfile)7 CraftPlayer (org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer)7