Advertisement
Guest User

Help, Bukkit Java

a guest
Jul 24th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. package com.RazorFlint.MineSiri;
  2.  
  3. import org.bukkit.entity.Player;
  4. import org.bukkit.ChatColor;
  5. import org.bukkit.event.player.PlayerChatEvent;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. public class Base extends JavaPlugin {
  9.    
  10.     public void onEnable(){
  11.     }
  12.    
  13.     public void onDisable(){
  14.     }
  15.    
  16.     public void onPlayerChat(PlayerChatEvent chat) {
  17.         String message = chat.getMessage();
  18.         Player player = chat.getPlayer();
  19.        
  20.         if (message == "hello")
  21.         {
  22.             player.sendMessage(ChatColor.RED + "Hey!");
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement