daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.bukkit.oribuin;
  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. import net.md_5.bungee.api.ChatColor;
  9.  
  10. public class RobinChat extends JavaPlugin {
  11.    
  12.     @Override
  13.     public void onEnable() {
  14.         getLogger().info("Hellur Human! The plugin has been enabled");
  15.     }
  16.     @Override
  17.     public void onDisable() {
  18.         getLogger().info("OH NUHH! The plugin disabled... Dark times we live in D:");
  19.     }
  20.  
  21.    
  22.    
  23.     @SuppressWarnings(value = { })
  24.     public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  25.        
  26.         CommandSender Player = sender;
  27.         if (cmd.getName().equalsIgnoreCase("Hello") && sender instanceof Player) {
  28.            
  29.             Player player1 = (Player) sender;
  30.            
  31.             player1.sendMessage("Hellur, " + player1.getName() + "!"); }
  32.            
  33.        
  34.              if (cmd.getName().equalsIgnoreCase("Wtf") && sender instanceof Player) {
  35.            
  36.             Player.sendMessage(ChatColor.GREEN + "Hello! I am You, You are They, They are Me, Me is You, Right? " + Player.getName());
  37.            
  38.         }
  39.            
  40.          if (cmd.getName().equalsIgnoreCase("shutup") && sender instanceof Player) {
  41.                
  42.             Player.sendMessage(ChatColor.GREEN + "Damn ok ");          
  43.            
  44.    }
  45.         return false;
  46.     }}
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