SHARE
TWEET

Lag

Nickster258 Feb 28th, 2017 (edited) 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package org.stonecipher.plugins.Lag;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.event.Listener;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class Main extends JavaPlugin implements Listener {
  11.     @Override
  12.     public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  13.         if (sender instanceof Player) {
  14.             Player player = (Player) sender;
  15.             Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "kick " + player.getName() + " That should fix it! :D");
  16.             return true;
  17.         }
  18.         return false;
  19.     }
  20. }
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