Skip to content

Commit

Permalink
[Velocity] Remove usage of deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Jan 1, 2025
1 parent 28c2363 commit e7ecbf1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package me.neznamy.tab.platforms.velocity;

import com.velocitypowered.api.event.PostOrder;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.command.CommandExecuteEvent;
import com.velocitypowered.api.event.command.CommandExecuteEvent.CommandResult;
Expand All @@ -10,8 +9,8 @@
import com.velocitypowered.api.event.player.ServerPreConnectEvent;
import com.velocitypowered.api.proxy.Player;
import me.neznamy.tab.shared.ProtocolVersion;
import me.neznamy.tab.shared.TabConstants;
import me.neznamy.tab.shared.TAB;
import me.neznamy.tab.shared.TabConstants;
import me.neznamy.tab.shared.features.bossbar.BossBarManagerImpl;
import me.neznamy.tab.shared.features.scoreboard.ScoreboardManagerImpl;
import me.neznamy.tab.shared.platform.EventListener;
Expand Down Expand Up @@ -53,7 +52,7 @@ public void onQuit(@NotNull DisconnectEvent e) {
* @param e
* Event fired before player switches server for proper freezing
*/
@Subscribe(order = PostOrder.LAST)
@Subscribe
public void preConnect(@NotNull ServerPreConnectEvent e) {
if (e.getResult().isAllowed()) {
TabPlayer p = TAB.getInstance().getPlayer(e.getPlayer().getUniqueId());
Expand Down

0 comments on commit e7ecbf1

Please sign in to comment.