Why won't my plugin work?

Discussion in 'Plugin Development' started by wizard7611, Nov 2, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    number1_Master

    Although you don't need to know Java 100% to understand the Bukkit API, you will need to know at least 60% to be able to use it and another 80% in order to understand how it works. By understanding how the API works, you can easily implement your objectives.

    I began messing around with the Bukkit API after 1.5 years of learning Java. Although I understood the general idea, I could only do basics. I continued my Java knowledge for another 0.75 years and I became more aware of what was going on. All of a sudden, I realized that by knowing Java, the Bukkit API is EXTREMELY simple and helpful. There's a reason to each single method and implementing the right way is easy.

    My philosophy on this kind of stuff regards the current education system around the world. Most eduction systems acknowledge the fact that "this means this and only this." Students, thus, learn that "this fact" is always true, but when will they ever use "this fact." Education systems should really allow the students to think on their own. For example, one my say 2 + 1 = 4. However, it doesn't. Well then, think outside of the box. 2 + 1 (+1) = 4. There you go. The same applies with Java. The only way you can get through it is if you think outside the box. Just learning the Bukkit API according to previous practices doesn't cut it. The same applies with Java.
     
  2. Offline

    wizard7611

    ok so my plugin still isn't showing up on my server. What's wrong?
    the plugin:
    Code:java
    1. package me.wizard7611.TeamBattle;
    2.  
    3. import java.util.logging.Logger;
    4.  
    5. import org.bukkit.ChatColor;
    6. import org.bukkit.command.Command;
    7. import org.bukkit.command.CommandSender;
    8. import org.bukkit.entity.Player;
    9. import org.bukkit.plugin.java.JavaPlugin;
    10.  
    11. public class TeamBattle extends JavaPlugin{
    12. public final Logger logger = Logger .getLogger("Minecraft");
    13. public static TeamBattle plugin;
    14.  
    15. @Override
    16. public void onDisable(){
    17. this.logger.info("[TeamBattle] Plugin Disabled!");
    18.  
    19. }
    20.  
    21. @Override
    22. public void onEnable(){
    23. this.logger.info("[TeamBattle] Plugin Enabled!");
    24.  
    25. }
    26.  
    27. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
    28. Player player = (Player) sender;
    29. if (commandLabel.equalsIgnoreCase("TeamBattle")){
    30. player.sendMessage(ChatColor.AQUA + "Type in a command to get all TeamBattle commands!");
    31. }
    32. return false;
    33. }
    34. }




    Plugin.yml

    Code:java
    1. name: TeamBattle
    2. version: 1.0.0
    3. author: wizard7611
    4. main: me.wizard7611.TeamBattle.TeamBattle
    5. description: Fight teams and capture flags with TeamBattle!
    6. commands:
    7. TeamBattle:
    8. description: Type this to get all TeamBattle commands!
     
  3. Offline

    Coelho

    If you understand Java, you will spend less time asking others questions, and more time finding the solution.

    Not only that, but you'll gain an education outside of Bukkit, which is good for a resume. (Bukkit isn't)
     
  4. Offline

    wizard7611

    Coelho Yes, but I can't find the solution to this.
     
  5. Offline

    Coelho

    Perhaps that should be a wake up call to you. I do indeed know the issue, but I don't believe in telling it to you.
     
  6. Offline

    wizard7611

    Coelho ok, so it's like this. I ask a simple question like everyone would ask on Bukkit. Someone says "I know the problem, but I'm not giving it to you" and in the end, I can never trust Bukkit because of the people not helping me.

    -even though I'm starting to learn Java doesn't mean you need to throw this crap into my face
    -not cool bro
     
  7. Offline

    Coelho

    Then you do not get an answer and go your marry way? I don't see how this is my issue.
     
  8. Offline

    maxben34

    I have been coding for 1.5 months now. Although that is not much, i have a good handle on making plugins.
     
  9. Offline

    wizard7611

    maxben34 nice, where did you learn?
     
  10. Offline

    maxben34

    wizard7611 I learned basic java before anything. I used www.thenewboston.org and watched 58 of his beginner java coding lessons in about 5 days. (i was addicted). After i saw that the lessons weren't super useful anymore for plugins (since they got into GUI and JFrame) so i looked on youtube and found pogostick29dev. I watched about 20 of his videos and occasionally looked back on some other tutorials for information on certain topics. At this point, you should have a grasp for what your doing, and with enough practice, making plugins becomes much much much less difficult.
     
  11. Offline

    wizard7611

Thread Status:
Not open for further replies.

Share This Page