mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Implement missing methods in tests
This commit is contained in:
parent
646a683f22
commit
de4f73997e
@ -33,6 +33,7 @@ import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.command.PluginCommand;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.SpawnCategory;
|
||||
import org.bukkit.event.inventory.InventoryType;
|
||||
import org.bukkit.generator.ChunkGenerator;
|
||||
import org.bukkit.help.HelpMap;
|
||||
@ -262,6 +263,11 @@ public class StubServer implements Server {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTicksPerSpawns(@NotNull final SpawnCategory spawnCategory) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable
|
||||
Player getPlayer(@NotNull String s) {
|
||||
@ -557,6 +563,24 @@ public class StubServer implements Server {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.bukkit.profile.@NotNull PlayerProfile createPlayerProfile(
|
||||
@Nullable final UUID uniqueId,
|
||||
@Nullable final String name
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.bukkit.profile.@NotNull PlayerProfile createPlayerProfile(@NotNull final UUID uniqueId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.bukkit.profile.@NotNull PlayerProfile createPlayerProfile(@NotNull final String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull
|
||||
Set<String> getIPBans() {
|
||||
@ -744,6 +768,11 @@ public class StubServer implements Server {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSpawnLimit(@NotNull final SpawnCategory spawnCategory) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPrimaryThread() {
|
||||
return false;
|
||||
|
@ -30,6 +30,8 @@ import org.bukkit.permissions.Permission;
|
||||
import org.bukkit.permissions.PermissionAttachment;
|
||||
import org.bukkit.permissions.PermissionAttachmentInfo;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.profile.PlayerProfile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.HashMap;
|
||||
@ -146,6 +148,11 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible {
|
||||
return randomUuid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull PlayerProfile getPlayerProfile() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBanned() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
|
Loading…
Reference in New Issue
Block a user