Feature/silence named mobs #18

Merged
MineTec merged 22 commits from feature/silence-named-mobs into master 2026-11-10 22:23:54 +00:00
2 changed files with 24 additions and 0 deletions
Showing only changes of commit 6ad9407cb4 - Show all commits

No files matched your search

@@ -0,0 +1,12 @@
package eu.mhsl.craftattack.spawn.craftattack.appliances.gameplay.mobSilenceNametag;
import eu.mhsl.craftattack.spawn.core.appliance.Appliance;
import org.bukkit.entity.Player;
public class FirstTestClass extends Appliance {
public String greetPlayer(Player player) {
return "Hello, " + player.getName() + "! Test 1";
}
}
@@ -0,0 +1,12 @@
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);
}
}