Clean up test scripts and to prepare for development of the feature

This commit is contained in:
2026-08-18 14:53:13 +02:00
parent f615dc867a
commit 3221450cde
2 changed files with 0 additions and 33 deletions
@@ -1,21 +0,0 @@
package eu.mhsl.craftattack.spawn.craftattack.appliances.gameplay.mobSilenceNametag;
import eu.mhsl.craftattack.spawn.core.appliance.Appliance;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.jetbrains.annotations.NotNull;
import java.util.List;
public class FirstTestClass extends Appliance {
public String greetPlayer(Player player) {
return "Hello, " + player.getName() + "! Test 2";
}
protected @NotNull List<Listener> listeners() {
return List.of(new FirstTestListener());
}
}
@@ -1,12 +0,0 @@
package eu.mhsl.craftattack.spawn.craftattack.appliances.gameplay.mobSilenceNametag;
import eu.mhsl.craftattack.spawn.core.appliance.ApplianceListener;
import org.bukkit.event.EventHandler;
public class FirstTestListener extends ApplianceListener<FirstTestClass> {
@EventHandler
public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent event) {
String greeting = this.getAppliance().greetPlayer(event.getPlayer());
event.getPlayer().sendMessage(greeting);
}
}