Skip to content

Commit

Permalink
test: Fixed Tests with latest Velocity SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Jun 16, 2022
1 parent c5bfede commit 14b8564
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.velocitypowered.api.proxy.ConnectionRequestBuilder;
import com.velocitypowered.api.proxy.Player;
import com.velocitypowered.api.proxy.ServerConnection;
import com.velocitypowered.api.proxy.crypto.IdentifiedKey;
import com.velocitypowered.api.proxy.messages.ChannelIdentifier;
import com.velocitypowered.api.proxy.player.PlayerSettings;
import com.velocitypowered.api.proxy.player.ResourcePackInfo;
Expand Down Expand Up @@ -193,4 +194,9 @@ public void spoofChatInput(String arg0) {

}

@Override
public IdentifiedKey getIdentifiedKey() {
return null;
}

}
14 changes: 14 additions & 0 deletions src/test/java/me/dreamerzero/chatregulator/objects/TestProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.function.Consumer;

import org.jetbrains.annotations.NotNull;

import com.velocitypowered.api.command.CommandManager;
import com.velocitypowered.api.event.EventManager;
Expand All @@ -18,6 +21,7 @@
import com.velocitypowered.api.proxy.player.ResourcePackInfo.Builder;
import com.velocitypowered.api.proxy.server.RegisteredServer;
import com.velocitypowered.api.proxy.server.ServerInfo;
import com.velocitypowered.api.scheduler.ScheduledTask;
import com.velocitypowered.api.scheduler.Scheduler;
import com.velocitypowered.api.util.ProxyVersion;

Expand Down Expand Up @@ -117,6 +121,16 @@ public Scheduler getScheduler() {
public TaskBuilder buildTask(Object arg0, Runnable arg1) {
return null;
}

@Override
public TaskBuilder buildTask(@NotNull Object plugin, @NotNull Consumer<ScheduledTask> consumer) {
return null;
}

@Override
public @NotNull Collection<ScheduledTask> tasksByPlugin(@NotNull Object plugin) {
return null;
}
};
}

Expand Down

0 comments on commit 14b8564

Please sign in to comment.