jeeperscreeper77

my plugin error

Aug 31st, 2014
238
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. what is the error with my plugin? pls help!
  2.  
  3.  
  4.  
  5. package me.Jeepeerscreeper77.Test1;
  6.  
  7. import org.bukkit.Bukkit;
  8. import org.bukkit.ChatColor;
  9. import org.bukkit.command.Command;
  10. import org.bukkit.command.CommandSender;
  11. import org.bukkit.entity.Player;
  12. import org.bukkit.plugin.java.JavaPlugin;
  13.  
  14. public class Main extends JavaPlugin{
  15.  
  16. public void onEnable() {
  17. getLogger().info("Plugin Enabled");
  18.  
  19. }
  20.  
  21. public void onDisable() {
  22. getLogger().info("Plugin Disabled");
  23. }
  24.  
  25. public boolean onCommand(CommandSender sender, Command cmd, String iabel, String[] args) {
  26. if(sender instanceof Player) {
  27. Player player = (Player) sender;
  28. if(cmd.getName().equalsIgnoreCase("spawn")){
  29. String hub = "warp spawn " + player.getName();
  30. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), hub);
  31. player.sendMessage(ChatColor.GOLD + "Welcome to spawn!");
  32.  
  33. }
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40. plugin.yml
  41. name: Test1
  42. author: Jeeperscreeper77
  43. version: 1
  44. description: my first plugin
  45. main: me.Jeeperscreeper77.Test1.Main
  46. commands:
  47. spawn:
  48. description: takes you back to spawn
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×