Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.kyrp.MaxSpeedz;
- import org.bukkit.ChatColor;
- import org.bukkit.Server;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Main extends JavaPlugin {
- public void onDisable(){
- System.out.println("[MaxSpeedz] Disabled");
- }
- public void onEnable() {
- System.out.println("[MaxSpeedz] Enabled.");
- this.getServer().getPluginManager().registerEvents(new Events(), this); {
- }
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandText, String[] args){
- Player player = (Player)sender;
- Server server = player.getServer();
- {
- }
- if(cmd.getName().equalsIgnoreCase("bafk")){
- String playername = player.getName();
- }
- server.broadcastMessage(ChatColor.GOLD + player.getName() + " is now AFK "); {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement