Inactive [INFO] MCDocs v14.3 ~ Documentation Plugin || MOTD, Local or Online Files, Your Commands [1.3.1]

Discussion in 'Inactive/Unsupported Plugins' started by Tazzernator, Jan 17, 2011.

  1. Offline

    Tazzernator

    [​IMG]

    [​IMG] [​IMG] [​IMG] [​IMG]
    NEWS (open)

    Version 11.2 released (22nd October 2011)


    Version 11.2
    • Added permissions wildcard support (mcdocs.*) works for all commands.
      • Note: this only allows all commands. mcdocs.reload does not fall under this wildcard. This needs to be set separately.
    • Added some try catch around the motd: configs.
    • Fixed motd-enabled
    Version 11.1
    • Removed the spacing that occurs when you only have 1 page.
    • New variable: %time (Shows what time it is in the player's world in 12 hour format.
      • Sun rises @ 5am, Sets @ 7pm
    Version 11
    • Updated to work with PermissionsBukkit (Tested, nodes work)
    • Updated to work with Register for %balance, you will need to download the Register plugin for this to work with iConomy and various other economy plugins.
    • Optimised much of the code.
    • Updated the commands config structure, much simpler now than before. :)
    • You can now use %name, %size, %world, %group, %ip, %world, %prefix, %suffix in your file paths in the config.yml
    • Redefined the MOTD process.
      • Is now all defined within configuration
      • You can now use online files
    • Changed how logging occurs, you can toggle if you want to be informed about errors or not in the config now.
    • Group support now uses an in house permission system, where you define the groups players are in manually.
    • New permissions-enabled variable, Do you have any permissions system installed? Yes: true | No: false
     
    DoomLord, Camberme, efstajas and 18 others like this.
  2. Offline

    CoZmicShReddeR

    Nice Work!
     
  3. Offline

    BadgerLove

    Thanks alot!
     
  4. Offline

    qrux

    Great job!
    (btw, where's #10? :))
     
  5. Offline

    weirdbeard

    Thanks for the great plugin! Are there any formatting options besides color? For example, setting up columns and lining them up? If not, is that something that might be added? Perhaps, even, the ability to choose/use different fonts as well.

    -WB
     
  6. Offline

    bLazem

    Works mint - good on ya for making this!!!
     
  7. Offline

    Tazzernator

    I don't think it's possible to change anything but the color in Minecraft at the moment. Correct me if I'm wrong! :)
    Bahaha. Woops :p
     
  8. Offline

    Jmainguy

    I want to add a bunch of dumb little things for myself, like /admins and /commands and /plugins and /Jmainguy. that point to text files that i can edit with w/e. I dont understand any code but figure i can copy and paste yours and change ("/news") to /w.e i want and change news.txt to w.e i want. my question is 1. is that kewl with you? and 2. once i change the .java files which program should i use to compile it into a jar for bukkit to read.

    or better yet can you make a configeration file where we can add text files we want it to search for, perhaps with path docs/* or something? Thank you very much for reading and sry for my nubbiness
     
  9. Offline

    Tazzernator

    I've actually mostly completed this. I have a commands.txt which at the moment is:

    Code:
    /NULL:LEAVE.THIS.HERE
    /rules:rules.txt
    /registration:register.txt
    /news:news.txt
    /motd:motd.txt
    /command:whatyouwantdisplayed.txt

    I'm cleaning up my code, and then i'll release it. ETA 30 mins.
    --- merged: Jan 18, 2011 6:01 AM ---
    Done! 2.0 Uploaded.
     
  10. Offline

    weirdbeard

    Awesome! Although, I think I would prefer a documentation plugin to have a global command instead. Adding all those custom commands could cause probs with other plugins. Something like "/doc rules" or the like...

    Right now, I am able to display all but the rules file. In fact, when I type /rules, it crashes my client! =O Could this have to do with a typo in the rules.txt file? (I used rules as more of a command ref for all the plugins but now I can change to whatever I want: /ref) :)

    Code:
    §4#1 §f- §aHave fun!!
    
    §aSome helpful commands:
    
    §4/warp help §f- §afor a list of warping commands and options.
    §4/home help §f- §afor a list of home commands and options.
    §4/tp help §f- §afor a list of teleportation commands.
    §4/warp help §f- §a
    
    **EDIT NEVER MIND... I see the trailing color tag. Looks like a sloppy cut-and-paste in my file. Just noticed it as I post-proofed my post. :)
    --- merged: Jan 18, 2011 1:20 PM ---
    Oh, while I am thinking of it... Is it possible to include a paginator? For long text files, MCDocs automatically would break it into pages. So, if I made a /ref command that points to ref.txt, and ref.txt turned out to be 3 pages long, MCDocs would break it up into pages allowing me to use /ref 1, /ref 2, /ref 3 etc...

    Thanks again for a very useful mod!
    -WB

    **Edit: Typos
     
  11. Offline

    Tazzernator

    A paginator. Hmm. I have an idea on how to do it, however, it's alot of OO.


    It's most likely crashing because you have gaps in your *.txt

    If you're gonna have a gap Like between the following listed below. It may crash the plugin :/

    Maybe try putting a space on the lines with nothing on it?



    §aSome helpful commands: §4/warp help §f- §afor a list of warping commands and options.
     
  12. Offline

    weirdbeard


    Thanks for the help! Completing that last line in rules.txt fixed it for me. When i pasted the line, I left the text after the last colour tag off. So, the line ended with a color tag. It didn't like that. Updated to 2.0 and tested. Everything works. :)

    (Sorry for the rapid-fire posts. I am rushing around trying to update all the mods I can before heading into work! Rush=Frenetic Mistakery!) LOL

    -WB
     
  13. Offline

    Tazzernator

    Ah, Glad to hear it's working for you! :)
     
  14. Offline

    AbsolutePolak

    Not working for me unfortunately.
    Using Latest build available.
    Plugins:
    General
    MCDocs
    CreeperNerf
    WorldEdit
    WorldGuard
    LWC
    Glonick
    MyHome
    Warpgate
    DynMap

    Error:
    Code:
    Jan 18, 2011 8:29:08 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to MCDocs
    java.lang.ArrayIndexOutOfBoundsException: 1
        at com.bukkit.tazzernator.mcdocs.MCDocsListener.onPlayerCommand(MCDocsListener.java:53)
        at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:135)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:199)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:546)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:522)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:232)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:64)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
     
  15. Offline

    Eddiekins

    Agreed with the above posts, the ability to have pagination would be great in the future but no real need now. Thanks a lot, you've helped a lot!
     
  16. Offline

    Tazzernator

    What build?
     
  17. Offline

    Jmainguy

    Awesome Tazz very vool plugin
     
  18. Offline

    AbsolutePolak

  19. Offline

    Tazzernator

    I'm assuming the exception is happening when you use a command?

    If so, can you please upload all your .txts?

    Cheers.
     
  20. Offline

    weirdbeard

    Just for the record (and possibly to help others troubleshoot their own setup), I am using build 79 and this mod is working well for me.

    -WB
     
  21. Offline

    AbsolutePolak

    commands:
    /NULL:LEAVE.THIS.HERE
    /rules:rules.txt
    /news:news.txt
    /helpold:help.txt
    motd:

    register:

    News:
    §a----NEWS <3 Honey----
    §c7/1/2011 §fServer Back-up!
    §c7/1/2011 §fSwitched to Bukkit
    §c8/1/2011 §fNew Plugins
    §c9/1/2011 §fFixed some lag issues
    §c10/1/2011 §fAdded Some new Plugins
    §c11/1/2011 §fServer lag expected when people explore.

    Rules:
    §4#1 §f- §aListen to the §cAdmins§a, they know best.
    §4#2 §f- §aNo Griefing!
    §4#3 §f- §aDo NOT modify others work, if you wish to help, ask.
    §4#4 §f- §aDo NOT build single towers or tunnels.
    §4#5 §f- §aDo NOT flatten any areas. Only Honeydew may flatten.
    §4#6 §f- §aBuild in allocated areas, or:
    §4#7 §f- §aCreate allocated areas.
    §4#8 §f- §aCreated areas must have a linking road.
    §4#9 §f- §aNever build too high:
    §4#10 §f- §aReport all wrong doings directly on the forums.
     
  22. Offline

    BadgerLove

    Really nice work, will help alot of server admins out now.
     
  23. Offline

    Tazzernator

    Here..

    you MUST have something on the other side of the :

    You must also have a / infront of your command.

    If you don't want to use them, remove them.

    EDIT: And you must not have gaps, like you do between motd and register.


    My plugin reads each line, and then splits the usable data by the ":"

    If it can't find the data, it'll throw the exception, which is what you have been doing...
     
  24. Offline

    Tazzernator

    Updated to 2.1
     
  25. Offline

    ScottSpittle

    Download Link is dead..
     
  26. Offline

    Tazzernator

    Woops. Fixed, Thanks for that! :)
     
  27. Offline

    ScottSpittle

    is it supposed to print to console when the plugin is loaded becuase it does not for me.. xD
     
  28. Offline

    Tazzernator

    Yes:


    In the archive, place the MCDocs.jar and the MCDocs folder into the plugins folder. Then restart your server.
     
  29. Offline

    ScottSpittle

    i seee the download linked to a MCDocs-v2.1.jar no a MCDocs.jar .. ill rename

    MCDocs version 2.1 is enabled!
    yay! thanks
     
  30. Offline

    Tazzernator

    Renaming would not of made a difference. And i simply forgot to put -v2.1.jar into my post.

    w/e lol - Glad to hear it's working! :)
     

Share This Page