SHARE
TWEET

Untitled

a guest Jul 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package one.zadanie;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.entity.Player;
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.player.PlayerJoinEvent;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public final class Zadanie extends JavaPlugin {
  10.  
  11.     @Override
  12.     public void onEnable() {
  13.         // Plugin startup logic
  14.  
  15.     }
  16.  
  17.     @Override
  18.     public void onDisable() {
  19.         // Plugin shutdown logic
  20.     }
  21.     @EventHandler
  22.     public void join (PlayerJoinEvent e) {
  23.         Player p = e.getPlayer();
  24.         String name = p.getDisplayName();
  25.         Bukkit.broadcastMessage(name+"зашел на сервер");
  26.     }
  27.  
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top