Plugin Help Problems with plugin.yml

Discussion in 'Plugin Help/Development/Requests' started by theJustasPrime, Apr 2, 2015.

Thread Status:
Not open for further replies.
  1. Hi everybody,

    When I am traying to put my plugin, server console show me this message:

    I make it with Eclipse,

    Warning message:



    Code:
    [LIST=1]
    [*] 01.04 20:39:03 [Server] INFO at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugins(CraftServer.java:288) [craftbukkit-1.8.3.jar:git-Bukkit-7d0f836]
    [*]01.04 20:39:03 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8.3.jar:git-Bukkit-7d0f836]
    [*]01.04 20:39:03 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[craftbukkit-1.8.3.jar:git-Bukkit-7d0f836]
    [*]01.04 20:39:03 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    [/LIST]
    
    Plugin:

    Code:
    [LIST=1]
    [*] package me.bukkit.theJustasPrime;
    [*]
    
    [*]import org.bukkit.command.Command;
    [*]import org.bukkit.command.CommandSender;
    [*]import org.bukkit.entity.Player;
    [*]import org.bukkit.plugin.java.JavaPlugin;
    [*]
    
    [*]public class Naujienos extends JavaPlugin {
    [*]
    
    [*]    @Override
    [*]    public void onEnable() {
    [*]        getLogger().info("Pluginas Veikia .Naujienos.");
    [*] 
    [*]    }
    [*]
    
    [*]    @Override
    [*]    public void onDisable() {
    [*]
    
    [*]    }
    [*]
    
    [*]    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    [*] 
    [*]        if (cmd.getName().equalsIgnoreCase("naujiienos") && sender instanceof Player) {
    [*]     
    [*]            Player player = (Player) sender;
    [*]             
    [*]                player.sendMessage("Sveikas," + player.getName() + "naujausi serverio atnaujinimai:");
    [*]                player.sendMessage("Serverio versija 1.0.1 v.");
    [*]             
    [*]                return true;
    [*]         
    [*]        }
    [*] 
    [*]        return false;
    [*] 
    [*]    }
    [*]
    
    [*]}
    [/LIST]
    

    Plugin.yml file:

    Code:
    [LIST=1]
    [*]name: Pagalba
    [*]version: 1.0
    [*]description:
    [*]author: Justas
    [*]authors:
    [*]website:
    [*]
    
    [*]main: me.bukkit.theJustasPrime.Naujienos
    [*]database: false
    [*]depend:
    [*]
    
    [*]commands:
    [*]   naujienos:
    [*]     description:
    [*]     aliases:
    [*]     permission: naujienos.pagalba
    [*]     usage: /<command>
    [*]     permission-message: Tu negali naudoti šios komandos.
    [*]
    
    [*]permissions:
    [*]   pagalba:
    [*]     description:
    [*]     children:
    [*]      naujienos.pagalba: true
    [*]   naujienos.pagalba:
    [*]     description:
    [*]     default: true
    [/LIST]
    
    I try couples of things it's don't working.

    There is some names you don't understand:


    Sveikas - Hi

    Naujausi serverio atnaujinimai - Newest server updates

    Serverio versija 1.0.1 v. - Server version

    Naujienos - News

    Pagalba - Help

    Tu negali naudoti šios komandos - You can't use this command

    Tiknaujienos - Just news

    I translate it my self.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @theJustasPrime You don't need to have all the values in the plugin.yml that you have.
    You can remove these: database, depend, authors, website.
    Having blank values isn't good for the yml.
     
  3. Now it's look like this

    Code:
     name: Pagalba
     version: 1.0
     author: Justas
    
     main: me.bukkit.theJustasPrime.Naujienos
    
     commands:
       naujienos:
         description: Parodo naujienas
         permission: naujienos.pagalba
         usage: /<command>
         permission-message: Tu negali naudoti šios komandos.  
    
    but it's won't work
     
  4. Offline

    timtower Administrator Administrator Moderator

    @theJustasPrime You didn't have to remove the permissions.
    What is the current log?
     
  5. Code:
    02.04 13:30:44 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[craftbukkit-1.8.3.jar:git-Bukkit-7d0f836]
    02.04 13:30:44 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    02.04 13:30:44 [Server] INFO [13:30:44 ERROR]: Could not load 'plugins/tiknaujienos.6.jar' in folder 'plugins'
    
     
  6. Offline

    timtower Administrator Administrator Moderator

  7. Offline

    timtower Administrator Administrator Moderator

    @theJustasPrime Please get the latest.log with FTP or test on localhost. Multicraft is messing with your logs.
     
  8. Offline

    timtower Administrator Administrator Moderator

    @theJustasPrime Your log says that you still have a node "authors" somewhere.
     
  9. It looks like this now

    Code:
    name: Pagalba
    version: 1.0
    
    main: me.bukkit.theJustasPrime.Naujienos
    
    commands:
       naujienos:
         description: Parodo naujienas
         permission: naujienos.pagalba
         usage: /<command>
         permission-message: Tu negali naudoti šios komandos.
    
     
  10. Offline

    timtower Administrator Administrator Moderator

    @theJustasPrime Did you also export that version?
    And if so: is it working?
     
  11. What version ?
     
  12. Offline

    timtower Administrator Administrator Moderator

  13. Yes the exact as it here shown
     
  14. Offline

    timtower Administrator Administrator Moderator

    @theJustasPrime Still the same log? Are you exporting to the right location?
     
  15. Oh really thanks, now I understand this, now plugin is working. Tnks

    When I run localhost, it writes wat have to write on

    Code:
        @Override
        public void onEnable() {
            getLogger().info("Pluginas Veikia .Naujienos.");
    
    it's write the same and the pluggin works on server
     
Thread Status:
Not open for further replies.

Share This Page