daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.flappie.arania;
  2. import org.bukkit.ChatColor;
  3. import org.bukkit.entity.Player;
  4. import org.bukkit.event.player.PlayerJoinEvent;
  5. import org.bukkit.event.player.PlayerListener;
  6.  
  7. public class ServerLoginPlayerListener extends PlayerListener {
  8.     public static welcome_main plugin;
  9.     public ServerLoginPlayerListener (welcome_main instance){
  10.         plugin = instance;
  11.     }
  12.    
  13.     public void OnPlayerJoin(PlayerJoinEvent join){
  14.         Player p = join.getPlayer();
  15.         String p_low = p.getName().toLowerCase();
  16.         ChatColor RED = ChatColor.RED;
  17.         ChatColor WHITE = ChatColor.WHITE;
  18.         ChatColor YELLOW = ChatColor.YELLOW;
  19.         ChatColor GREEN = ChatColor.GREEN;
  20.         ChatColor BLUE = ChatColor.BLUE;
  21.         if(p.isOp()){
  22.             p.sendMessage(RED + "Welcome to Arania" + YELLOW + " PASCALO " + WHITE + p.getName());
  23.         }
  24.         if(p_low.contains("banaan")){
  25.             p.sendMessage(RED + "Welcome to Arania" + GREEN + " Steijn Stinkt " + WHITE + p.getName());
  26.         }
  27.         if(p_low.contains("flappie")){
  28.             p.sendMessage(RED + "Welcome to Arania" + BLUE + " BAAS  / MEESTER " + WHITE + p.getName());
  29.         }
  30.         else{
  31.                 p.sendMessage(RED + "Welcome to Arania "+WHITE+ p.getName());
  32.             }
  33.     }
  34.    
  35. }
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