Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.bizzon.first;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.java.JavaPlugin;
- public class First extends JavaPlugin {
- public void onEnable() {
- Bukkit.getServer().getLogger().info("Test Plugin Enabled");
- }
- public void onDisable() {
- Bukkit.getServer().getLogger().info("Test Plugin Disabled");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
- if (!(sender instanceof Player)) {
- sender.sendMessage(ChatColor.AQUA +"Console Ran The Command!");
- return true;
- }
- Player player = (Player) sender;
- if (cmd.getName().equalsIgnoreCase("plugins")) {
- player.sendMessage(ChatColor.AQUA +"Coded By Bizzon");
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement