mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-26 22:06:20 +02:00
[ci skip] Cleanup test plugin
This commit is contained in:
parent
e82f7e6bb6
commit
9f74858760
1 changed files with 0 additions and 14 deletions
|
@ -1,11 +1,5 @@
|
|||
package io.papermc.testplugin;
|
||||
|
||||
import io.papermc.paper.event.player.ChatEvent;
|
||||
import io.papermc.paper.registry.keys.PaintingVariantKeys;
|
||||
import org.bukkit.Art;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Painting;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
|
@ -17,12 +11,4 @@ public final class TestPlugin extends JavaPlugin implements Listener {
|
|||
|
||||
// io.papermc.testplugin.brigtests.Registration.registerViaOnEnable(this);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onEvent(ChatEvent event) {
|
||||
final Entity targetEntity = event.getPlayer().getTargetEntity(10);
|
||||
if (targetEntity instanceof Painting painting) {
|
||||
painting.setArt(Art.create(f -> f.copyFrom(PaintingVariantKeys.BAROQUE).height(10)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue