My plugin isn't being shown in the cmd

Discussion in 'Plugin Development' started by Bantalope, Jan 14, 2015.

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

    Bantalope

    Hi, i am fairly new to making plugins, so this maybe be and easy fix or a complete failure of an attempt. When i export the plugin to my server, and i check for plugins it says no plugins found (or something like that). Any help and tips are appreciated.

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent pje){
    Player player = pje.getPlayer();
    String playerIp = player.getAddress().toString();
    player.sendMessage(Color.GREEN + "You using the ip adress " + playerIp);
    }
     
    Last edited: Jan 14, 2015
  2. Offline

    nverdier

    @Bantalope Did you put the plugin in your plugins folder?
     
  3. Offline

    nbrandwine

    [​IMG]
     
  4. Offline

    Bantalope

  5. Offline

    nverdier

    @Bantalope Why didn't it work? Is there a stack trace?
     
  6. Offline

    17xDillz1997

    Paste your plugin.yml.

    Are there any errors?
     
  7. Offline

    InkzzzMC

    Also code may be needed, so I suggest you post it too.
     
  8. Offline

    Bantalope

    @InkzzzMC @17xDillz1997 @nverdier i don't fully understand these plugin.yml files so it probably is the issue, here -
    name: GetIp
    main: me.Bantalope.GetIp
    version: 1.0
    commands:
    no:
    description: Description
    usage: /<command>
     
  9. Offline

    PolarCraft

    @Bantalope check your main class file. Example: net.yougold.org.Main

    net.yougold.org is the package. And Main is the main class file.
     
  10. Offline

    kilspeed2696

    try getLogger().info("Plugin has been enebled!");
    inside the onEneble()
    and if you want a mesage for a player first make this variable.
    Player player = (Player) sender;
    then put
    player.sendmessage("message");

    ok.[diamond]
     
  11. Offline

    MCMatters

    @kilspeed2696 What the hell is this!
    try getLogger().info("Plugin has been enebled!");
    inside the onEneble()
    and if you want a mesage for a player first make this variable.
    Player player = (Player) sender;
    then put
    player.sendmessage("message");

    No Javaplugin does that automatically
    and no cast to player unsafe and you dont need to cast to player for sendMEssage
    and grammar.
     
  12. Offline

    Bantalope

  13. Offline

    kilspeed2696

    @MCMatters

    ok maybe im not the smartest coder but i try to help ok. are you following me because you are replying to everything i post. try the next time do not be so mean to arrive. and i will stop with the diamond. ok
     
  14. Offline

    mrCookieSlime

    Moved to Plugin Developement.
     
Thread Status:
Not open for further replies.

Share This Page