Skip to content

Commit

Permalink
Remove use of components
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill310 committed Jun 29, 2024
1 parent 0c1202b commit 7f0c723
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package org.skriptlang.skript.test.tests.syntaxes.expressions;

import ch.njol.skript.test.runner.SkriptJUnitTest;
import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.player.AsyncPlayerChatEvent;
Expand Down Expand Up @@ -48,7 +47,7 @@ public void test() {
viewers.add(testPlayer);
PluginManager manager = Bukkit.getServer().getPluginManager();
manager.callEvent(new AsyncPlayerChatEvent(false, testPlayer, "hi", viewers));
manager.callEvent(new PlayerJoinEvent(testPlayer, Component.text("hi")));
manager.callEvent(new PlayerQuitEvent(testPlayer, Component.text("hi")));
manager.callEvent(new PlayerJoinEvent(testPlayer, "hi"));
manager.callEvent(new PlayerQuitEvent(testPlayer, "hi"));
}
}

0 comments on commit 7f0c723

Please sign in to comment.