Advertisement
seeker6

Untitled

Sep 18th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.RainbowCreeeper.compliment.java;
  2.  
  3. import org.bukkit.command.Command;
  4. import org.bukkit.command.CommandSender;
  5. import org.bukkit.entity.Player;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. public class ComplimentMe extends JavaPlugin {
  9.    
  10.     @Override
  11.     public void onEnable(){
  12.        
  13.     }
  14.     @Override
  15.     public void onDisable(){
  16.        
  17.     }
  18.    
  19. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
  20.        
  21.        
  22.         if (cmd.getName().equalsIgnoreCase("praise")) {
  23.            
  24.         }
  25.            
  26.             Player player = (Player) sender;
  27.        
  28.         Player.sendMessage(randomString[(int)(Math.random()*15)]);
  29.        
  30.         return true;
  31.    
  32.     return false;
  33. }
  34.  
  35.  
  36.         String[] randomString = new String[16];{
  37.     randomString[0] = "Your skin is looking particularly amazing today!";
  38.     randomString[1] = "Wow! You look amazing holding those diamonds!";
  39.     randomString[2] = "I can't craft a world without you!";
  40.     randomString[3] = "You are the coolest player on this server!";
  41.     randomString[4] = "I bet zombies swoon over you!";
  42.     randomString[5] = "I bet you and creepers have a blast!";
  43.     randomString[6] = "I love it when you sprint like that";
  44.     randomString[7] = "Wow you are such a hard worker!";
  45.     randomString[8] = "I dig your style!";
  46.     randomString[9] = "Your potion brew me away!";
  47.     randomString[10] = "I bet people call you big miner!";
  48.     randomString[11] = "Are you a ghast cause you blew me away";
  49.     randomString[12] = "I wanna stick to you like slimes";
  50.     randomString[13] = "You are proably great a riding horses!";
  51.     randomString[14] = "your oresome!";
  52.     randomString[15] = "You probably listen to bed rock!";
  53.    
  54.            
  55.        
  56.    
  57.    
  58.    
  59.     }
  60.    
  61.    
  62.        
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement