package motosgithub;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin implements Listener {
@EventHandler
public void onPlayerChat(AsyncPlayerChatEvent e) {
Player p = e.getPlayer();
if (e.getMessage().contains("info")) {
e.setCancelled(true);
p.sendMessage(ChatColor.DARK_RED + "Hello! My name is Moto I write some code mostly java I know some other stuff tho");
p.sendMessage(ChatColor.DARK_RED + " Java , JS, PHP");
}
}
}
moto6333
Follow
Highlights
Popular repositories Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.