Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. info.java:
  2. ---------------
  3. package me.julian.info;
  4.  
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.material.Command;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class Info extends JavaPlugin {
  11.  
  12. @Override
  13. public void onEnable() {
  14. System.out.println("[Info] Plugin erfolgreich aktiviert");
  15.  
  16.  
  17. }
  18.  
  19. @Override
  20. public void onDisable() {
  21. System.out.println("[INFO] Plugin erfolgreich deaktiviert!");
  22. }
  23.  
  24.  
  25. public boolean onCommand(CommandSender sender, Command cmd, String cmdlabel, String[] agrs) {
  26. Player p = (Player) sender;
  27. if(cmd.getName().equalsIgnoreCase("Info")) {
  28. p.sendMessage("§2[INFO] §5Der Server gehört ");
  29. }
  30. return false;
  31. }
  32. }
  33.  
  34. ------------------------
  35. plugin.yml:
  36. ------------------------
  37. name: Info
  38. version: 1.0
  39. author: Julian
  40. main: me.julian.info.Info
  41. commands:
  42. Info:
  43. usage: /<command>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement