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

    NVX

    Any chance of a CB1000 / PermissionsBukkit fix?

    Error as follows (I have PermissionsBukkit and SuperpermsBridge installed). Stack trace as follows:

    Code:
    23:08:14 [INFO] MCDocs: NVX: /motd
    23:08:14 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to MCDocs
    java.lang.NullPointerException
            at java.lang.String.replace(String.java:2208)
            at com.tazzernator.bukkit.mcdocs.MCDocsListener.variableSwap(MCDocsListener.java:415)
            at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerCommandPreprocess(MCDocsListener.java:367)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  3. Offline

    Tazzernator

    I'm not going to support more than 2 permissions systems.

    The in-built bukkit one will be supported, and the one that is currently supported
     
  4. Offline

    NVX

    The in-built bukkit one is what I'm referring to - that is merely an API, BukkitPermissions is the plugin that implements that API.

    The error posted above was with the in-built one and the latest version of MCDocs...
     
  5. Offline

    Tazzernator

    indeed. I'll look into it over coming days~ busy schedule!
     
  6. Offline

    tommygoesha

    i want to make sure im reading this right.. but if a Rank: Guest logs in can they have a welcome message like "make sure you register @ w\e" but if a rank: Member logs it will say "Welcome back you balance is %balance" and so on and so forth.. if this is true i dont really get out i could get that to work?..
     
  7. Offline

    Tazzernator

    motd-guest.txt
    motd-member.txt

    in the MCDocs dir.
     
  8. Offline

    nggmc

    I make a command that opens up your web browser and Directs you to a website?
     
  9. Offline

    tommygoesha

    thanks so much ^^ awesome plugin :D *gives e-diamond*
     
  10. Offline

    bradgillap

    Is there any easy way to setup notepad++ for writing so that I know when a new page is going to start instead of counting out another 9 lines? It's really distracting.
     
  11. Offline

    Mentioum

    enable line numbers?.....
     
  12. Offline

    kyle921

    That's not possible without a client-side mod, and probably a server-side mod as well.
     
  13. Offline

    LlmDl

    So this is working in RB1000 right?
     
  14. Offline

    Jobsti

    Works perfectly with #1000 and Groupmanager
     
  15. Offline

    louis058

    I'm using Permissions 3, and MCDocs works quite fine, except with /help.
    For some reason, when I configure it to use /help, whether with permissions or not, it always displays the default help message. When I set the same command to be anything else, even /helpp, or /bob, then it loads the file and displays it. That's whether I attach the permissions stuff at the end, or not. Everything else is working fine, even the motd.

    My configuration file:
    Code:
    #MCDocs 10 by Tazzernator / Andrew Tajsic
    #Configuration File.
    #For detailed assistance please visit: http://atajsic.com/wiki/index.php/MCDocs
    
    
    #Here we determine which command will show which file.
    commands-list:
    - /motd:motd.txt
    - /rules:rules.txt
    - /news:news.txt
    - /help:help-guest.txt:Guest
    - /help:help-elevated.txt:Elevated
    - /help:help-moderator.txt:Moderator
    - /help:help-admin.txt:Admin
    
    
    #This changes the pagination header that is added to MCDocs automatically when there is > 10 lines of text.
    header-format: '&c%commandname - Page %current of %count &f| &7%command <page>'
    
    
    #Format to use when using %online or %online_group.
    online-players-format: '%prefix%name'
    
    
    #The file to displayed when using %news.
    news-file: news.txt
    
    
    #How many lines to show when using %news.
    news-lines: 2
    
    
    #How long, in minutes, do you want online files to be cached locally? 0 = disable
    cache-time: 5
    
    
    #Show a MOTD at login? Yes: true | No: false
    motd-enabled: true
    
    
    #Inform the console when a player uses a command from the commands-list.
    command-log-enabled: true
    I don't think I have any other plugins that overwrite /help, but here are the other plugins I'm using:
    Permissions (as I mentioned above)
    AdminCmd
    DefaultPermissions (This one does affect the default /help, but all it does it allow or disallow it, so I don't know)
    HeroicChat
    iChat
    Lagmeter
    LavaForge
    RocketBoots
    TimeShift
     
  16. Offline

    Pr4w

    Hey, any news on when this will be compatible with PermissionsBukkit? :)
     
  17. Offline

    pengh

    Bump about PermissionsBukkit
     
    jameyc and Pr4w like this.
  18. Offline

    Tazzernator

    @louis058 ~ my first guess is you're an op on the server. though it shouldn't matter :s

    @Pr4w @pengh ~~ will get to it eventually. Sorry.
     
  19. Offline

    pengh

    Not trying to rush you, was just interested in whether it was in the works, thanks for the update ;->
     
  20. Offline

    Trollkemada

    Would it be possibly to disable showing prefixes of the names? Im having duplicated prefixes on /list, i think other plugin add prefixes and also MCDocs do that :S
     
  21. Offline

    Tazzernator

    online-format prolly has %prefix in your config.yml.
     
  22. Offline

    Trollkemada

    Wow, i didn't see that, sorry :'((

    Awesome plugin, nice work :)
     
  23. Offline

    kramark

    Hey there. Great plugin. However since Bukkit #1000 (I believe) i get this error on login.

    Code:
    16:20:56 [SEVERE] Could not pass event PLAYER_JOIN to MCDocs
    java.lang.NullPointerException
            at com.tazzernator.bukkit.mcdocs.MCDocsListener.groupMotd(MCDocsListener.java:891)
            at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerJoin(MCDocsListener.java:877)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    It looks similar to the error someone got above. Not really sure what is causing it.
     
  24. Offline

    Tazzernator

    you are using an unsupported permission plugin. most likely bukkit's

    i'll be supporting it very soon.
     
  25. Offline

    Daelmorn

    @Tazzernator
    I seem to be having an issue with non admin players being able to call up the different txt files, any way you could post the permissions nodes, I use Permissions 3.1.6 - The Plugin of Tomorrow, there are no server errors, I am running bukkit 1k and Permissions 3.1.6, pretty sure its just a permissions node errors so if you could kindly post those, it'd be great
     
  26. Offline

    Tazzernator

    read the wiki.
    http://atajsic.com/wiki/index.php/MCDocs/Permissions
     
  27. Offline

    louis058

    I would love for some sort of program, or built-in to the plugin, that takes the text file and calculates how many letters fit on a line, and appropriately splits the text file into the lines needed. That was a crap explanation, so here's an example of what I mean:
    You have a text file, 'rules.txt' for instance. It looks something like this:
    Code:
    1. Don't grief.
    2. Don't grief. Don't grief. Don't grief. Don't grief. Don't grief.
    3. Don't steal.
    And it spots that line two is too long, for instance, and turns it into this:
    Code:
    1. Don't grief.
    2. Don't grief. Don't grief. Don't grief.
    Don't grief. Don't grief.
    3. Don't steal.
    I thought that maybe you could count how many pixels each letter is, and then count how many pixels are allowed before minecraft starts line-wrapping it, though there may be a better method, that won't be broken if notch changes the font etc.

    It'll also be good if the same program could interpret some sort of mini-language that would add colour codes to certain 'elements' of the text file. Sort of like a HTML/CSS combination, only much more simpler obviously. I was thinking have tags like HTML, and have a separate style-sheet like CSS, only don't have any pre-defined tags like HTML, but just have them all user-defined. Sort of like this:
    Code:
    <title>Rules</title>
    <number>1.</number><normal>Don't grief.</normal>
    <number>2.</number><normal>Don't grief.</normal>
    And stylesheet
    Code:
    title: &3
    number: &6
    normal: &f
    Sorry, this is pretty huge as a feature request, maybe big enough to be a separate plugin, but I can only see documentation plugins using this, so I posted it here. And I can help, maybe with the counting pixels :D. I know how to program in Python, but that's pretty much it.
     
  28. Offline

    Tazzernator

  29. Offline

    louis058

    ... :(
    Well, assuming there isn't anything else that you want to do, this would be an excellent convenience feature imo
     
  30. Offline

    FunnyMan3595

    The major incompatibility with PermissionsBukkit isn't full support (SuperpermsBridge make it look like Permissions), it's that you're misusing Permissions.getGroup() slightly. If a player is in no groups, it will return null, causing MCDocs to fail as indicated above.

    This is seen with PermissionsBukkit/SuperpermsBridge because SuperpermsBridge claims that every user is in no groups, and so returns null from getGroup().
     
  31. Offline

    Tazzernator

    well in that case, i just shoved try catches everywhere case i cbf doing null checks

    test for me? --> http://tazzernator.com/files/bukkit/plugins/MCDocs/
     

Share This Page