[MISC/GEN] PluginsManager [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by waf, Feb 24, 2011.

  1. Offline

    waf

    Me4tGrind3r likes this.
  2. Offline

    MineralMC

    Can't get this working.

    #Plugins Manager Configuration File
    #Tue Mar 29 22:03:57 BST 2011
    toggle=on
    plugin_name_branding=off
    last_updated=on
    output_file_name=index.html
    output_folder_name=C:\Servers\ISS Webserver\www\minecraft\plugins_
    column_view=on

    Had to remove the bottom two lines because they were causing [SEVERE]'s and killing the plugin.

    Running recommended, 556.

    Have some logs:
    [INFO] [PluginsManager]: PluginsManager version 11.03.26 enabled
    [INFO] [PluginsManager]: config.yml file successfully loaded
    [INFO] [PluginsManager]: settings have been loaded
    [SEVERE] [PluginsManager]: index could not be created

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  3. Offline

    waf

    java somehow does not recognize the backslash ("\") in Windows, so you would have to do it using forward slashes ("/").
    see this post for the same bug.
     
  4. Offline

    MineralMC

    Cheers, that did the job. Works a treat. Does it have CSS support? I'd like to prettify it. :)
     
  5. Offline

    waf

    i will eventually make it so it supports css and many more features.
    so yes. :)
     
  6. Offline

    MineralMC

    Awesome, will be nice to match it up to my server's help page. Is a 602-compatible version in the works? No rush, but it's certainly a nice bit of polish for the server.
     
  7. Offline

    waf

    do not know what you mean by 602-compatible.
     
  8. Offline

    MineralMC

    In the sense of, does the current release of this mod work with the latest recommended build of craftbukkit, version 601. I've not had the opportunity to test it yet, although I don't see why it wouldn't work.
     
  9. Offline

    waf

    oh, HEH.
    yes it works with 600 and above.
     
  10. Offline

    MineralMC

    Excellent, thanks for the clarification. :)
     
  11. Offline

    waf

    just thought about this, do you mean using a stylesheet file, or direct css inside the html file itself?
     
  12. Offline

    MineralMC

    An external CSS file would be the cleanest option of the two, and hopefully less intimidating to those new to CSS.
     
  13. Offline

    waf

    added CSS support, though no tags or heading.
    will work on that, or even better yet, i will make you able to customize what tags/headings you want in front of the text that the plugin prints out.
    i am not a css person, so if you guys can, you can post some css headers/tags for me to add into the code in the next updates.

    also will add a TODO list eventually.
    feel free to pm me or reply to suggest new features, suggestions, and comments.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  14. I am having issues setting it up. When I try to change the values, I get a synthetic error. What are we suppose to change for the "CHANGE VALUES"? Could you have some instruction on how to use?
     
  15. Offline

    waf

    heh, shows that i have a long list of TODO's to do.
    could you post your config? no idea what a synthetic error is.
    the "CHANGE VALUES" is supposed to be the folder name and/or file names of the respective files you will be using with the plugin.

    i will post a config file shortly as an example.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  16. Thank you for the quick response. The example helped greatly and is working now. May I also suggest talking to the maker of "craftbukkituptodate"? Because I would love to have this plugin added to the list that way when you release an update, it would be automatically downloaded. As for an suggestion, if you could grab the newest change-log and have the info be below the plugin, I would appreciate it greatly! Otherwise, keep up the good work!
     
  17. Offline

    waf

     
  18. Offline

    tsjoe2

    Great plugin, but now after the update i am getting an error at this line:

    output_folder_name=../xampp/htdocs/

    any ideas? this is how i had it before the update.
     
  19. Offline

    waf

    the new bukkit update broke many plugins.
    still, could you post the error messages.
    also, i am not sure that java allows "../" in the config file.
    i will update sometime within the next day or so.
     
  20. Code:
    2011-04-04 22:20:41 [SEVERE] Could not load plugins\PluginsManager.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: while scanning a simple key
     in "<reader>", line 4, column 1:
        css_file_name=C:/minecraft_serve ...
        ^
    could not found expected ':'
     in "<reader>", line 5, column 1:
        server_pretext=This server runs\:
        ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:400)
        at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:231)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:182)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:592)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:149)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:103)
        ... 8 more
    Here is the latest issue I am currently having with your plugin.
     
  21. Offline

    waf

    yep, thought so.
    that will be fixed in the next update.

    actually, move the config.yml file to pluginsmanager.setting and the the problem will be fixed.
    also, you MUST download the new update for the config file to work.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  22. Thank you very much waf :) I just deleted the config file and let the plugin just rebuilt the .setting file (made sure to copy my settings to notepad before hand of course). Copy the new settings over, turn on my server, and it ran without a hitch! The only thing missing is the .css file, it didn't seem to make that and the change log for other plugins, have you already added that (and if so, how do I enable it/use it) and if not than I look forward to feature updates.
     
  23. Offline

    waf

    i am not a css person, so if you could write one, pm me and i will include it.
    the point of the css file is for the server admin to customize it themselves, so i did not include it in the plugin.
     
  24. Ok, so it is feature for the server admin to have. What about the changlog for other plugins?
     
  25. Offline

    tsjoe2

    I had Josh's error too, i fixed it by taking out the colon. here is my error.

    2011-04-05 14:56:56 [SEVERE] Could not load plugins\PluginsManager.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:264)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:196)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:225)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:391)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: expected '<document start>', but found Scalar
    in "<reader>", line 8, column 1:
    output_folder_name=../xampp/htdocs/
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:233)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:149)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:103)

    Thanks for the help guys.

    ok. here is both the config file and the error message....

    error

    Config

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  26. Offline

    waf

    what do you mean?

    you cannot use "../" in java. you need to use the absolute path at the moment.
    i will fix this when i get a chance.
    see the very first post.

    i will probably be renaming the plugin again, since bukkit will be implementing enabling and disabling of plugins in the future.
    also, there is another plugin called "PlugMan" that handles plugins, so my plugin is essentially a duplicate of his.
    this plugin will probably be used mainly for interacting with plugins and displaying commands and such as suggested by Kimberly2000.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  27. Offline

    Canownueasy

    Very misleading. You can use ../ in Java.
     
  28. Offline

    waf

    sorry, i mean in file parsing, you cannot.
    you see from about that it throws errors during the parsing.
    i will fix it when i can.

    or wait, maybe not.
    that was in a yaml file, it might be fine in a non-yaml file.
    i will test and make sure.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  29. Offline

    Canownueasy

    If you do
    Code:
    File example = new File("../example.txt");
    it will work fine.

    You can also ready directories correctly from any sort of file as long as you are parsing it as so (passing it towards a new file constructor)
     
  30. Offline

    waf

    yeah, just noticed it is a yaml parsing error, not a java thing.
     
  31. But he doesn't have this nice .html file which I love from your plugin.
     

Share This Page