diff options
author | Nassim Jahnke <[email protected]> | 2024-05-09 16:12:46 +0200 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2024-05-09 16:12:46 +0200 |
commit | 1a257361249f399944ce4444cc60033e72bb4a49 (patch) | |
tree | 494857b9b64072af6ae5d038faedfb8f1571c2d6 | |
parent | 79fc353ef87742930e0cc5b92ff84147eb108a0a (diff) | |
download | Paper-1a257361249f399944ce4444cc60033e72bb4a49.tar.gz Paper-1a257361249f399944ce4444cc60033e72bb4a49.zip |
Remove test plugin changes
-rw-r--r-- | test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java b/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java index bbde9577b9..4e68423bb7 100644 --- a/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java +++ b/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java @@ -1,14 +1,6 @@ package io.papermc.testplugin; -import io.papermc.paper.event.player.ChatEvent; -import java.util.UUID; -import org.bukkit.Bukkit; -import org.bukkit.Material; -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; -import org.bukkit.inventory.ItemStack; -import org.bukkit.inventory.meta.SkullMeta; import org.bukkit.plugin.java.JavaPlugin; public final class TestPlugin extends JavaPlugin implements Listener { @@ -17,15 +9,4 @@ public final class TestPlugin extends JavaPlugin implements Listener { public void onEnable() { this.getServer().getPluginManager().registerEvents(this, this); } - - @EventHandler - public void a(ChatEvent event) { - final Player player = event.getPlayer(); - final ItemStack item = new ItemStack(Material.PLAYER_HEAD); - final SkullMeta meta = (SkullMeta) item.getItemMeta(); - meta.setPlayerProfile(Bukkit.createProfileExact(UUID.randomUUID(), player.getName() + "aaaaaaaaaaaaaaaaaaa")); - item.setItemMeta(meta); - - player.getInventory().setItemInMainHand(item); - } } |