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

    ChefWalker

    Im having problems with setting up the groups. I am the owner and (of course im OP) and my admins too. Now it shows me and the admins in the same group (admin). I tryed adding the permission node at me (mcdocs.group.owner) and I did remove the permission mcdocs.group.admin at me. It still shows me in the group of admins because Im op. Any suggestions how I could solve this?
     
  3. Offline

    Tazzernator

    http://dev.bukkit.org/server-mods/mcdocs/tickets/14-dont-default-nodes-to-true/
     
  4. Offline

    Graybot

  5. Offline

    thernztrom

    @Tazzernator
    If a player joins my server as "Citizen" and I promote him to VIP, MCDocs doesnt snap that up. I've tried reloading mcdocs, and restartning the whole server without success.
    I've even removed the player from the permissions file, and removed the /world/players file, but it still shows the citizen MOTD, when its a guest. (and it should show the Guest MOTD)
    No matter what I do, there seems to be som secret hidden cache or similar somewhere storing info about players.

    Here is my config:
    Code:
    #MCDocs 12 by Tazzernator / Andrew Tajsic
    #Configuration File.
    #For detailed assistance please visit: http://dev.bukkit.org/server-mods/mcdocs/
    
    #Here we define our groups that exist in on the server. More Info on devbukkit documentation.
    #Make sure to use permission node mcdocs.group.GroupName (Example: mcdocs.group.Admin) in the respective groups.
    groups:
        Admin:
            prefix: '&4[Admin]&f'
            suffix: ''
        Mod:
            prefix: '&7[&3Mod&7]&f'
            suffix: ''
        SVIP:
            prefix: '&7[&6SVIP&7]&f'
            suffix: ''
        VIP:
            prefix: '&7[&eVIP&7]&f'
            suffix: ''
        Citizen:
            prefix: ''
            suffix: ''
        Guest:
            prefix: '&7[&8Guest&7]'
            suffix: ''
    
    #Here we determine which command will show which file.
    commands:
        /motd:
            file: 'motd.txt'
            groups:
                Admin: 'motd-admin.txt'
                Mod: 'motd-moderator.txt'
                SVIP: 'motd-svip.txt'
                VIP: 'motd-vip.txt'
                Guest: 'motd-guest.txt'
        /rules:
            file: 'rules.txt'
        /news:
            file: 'news.txt'
        /register:
            file: 'register.txt'
    
    #Show a MOTD at login? Yes: true | No: false
    motd-enabled: true
    
    #Here we determine which files are shown when a player joins the server.
    motd:
        file: 'motd.txt'
        groups:
            Admin: 'motd-admin.txt'
            Mod: 'motd-moderator.txt'
            SVIP: 'motd-svip.txt'
            VIP: 'motd-vip.txt'
            Guest: 'motd-guest.txt'
    
    #Replace the vanilla join and quit messages? Yes: true | No: false
    broadcast-enabled: true
    
    #Here we determine what is announced to the server for each group on join and quit.
    #If you don't define a group it's own specific string, the default message is used.
    join:
        message: '%prefix %name &7has joined &cMinecraft Hell &7from &c%country&7.'
        groups:
            Admin: '%prefix %name &7has joined &cMinecraft Hell &7from &c%country&7.'
            Citizen: '%name &7has joined &cMinecraft Hell &7from &c%country&7.'
    quit:
        message: '%prefix %name &7has left the server.'
        groups:
            Admin: '%prefix %name &7has left the server.'
            Citizen: ' %name &7has left the server.'
    
    #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: 1
    
    #How long, in minutes, do you want online files to be cached locally? 0 = disable
    cache-time: 0
    
    #Inform the console when a player uses a command from the commands list.
    command-log-enabled: true
    
    #Send warnings and errors to the main server log? Yes: true | No: false
    error-log-enabled: true
    
    #Do you have any permissions system installed? Yes: true | No: false
    permissions-enabled: true
    
    And yes I do have the files motd.txt, motd-vip.txt etc etc
    I use RB#1597, PEX 1.17, latest RB of Spout. Does anyone know what the problem/solution could be to this?

    Edit: I've posted some more info here if it might be to any help: http://forums.bukkit.org/threads/th...-related-challenges.33670/page-46#post-862619
     
  6. Offline

    thernztrom

    I see on your bukkitdev page there is more people having the same problem that groupbased messages wont work..
    Do you have an ETA you can give for an eventual fix? :)
     
  7. Offline

    kahlilnc

    how bout custom "First" Join messages.
     
  8. Offline

    Tazzernator

    the new year. this season is hectic.
     
  9. Offline

    Don Redhorse

    that is a problem of PEX, if @Tazzernator is using his own code to check group permissions he can fix that by adding a boolean value after the method call.. can't remember if it is true or wrong..

    point is.... checking the group by default will also return any group as true which the other group inherits from, so if your VIP inherits from Citizen both will be true..
     
  10. Offline

    Tazzernator

    thus the order you list your groups in the config matters.

    MCDocs works well where you have a straight heir.

    that is

    Default -> Member -> VIP -> Mod -> Admin

    There's no tree like figure.


    In the config, you would list

    groups:
    Admin
    Mod
    VIP
    Member
    Default


    The program then tries in that order...

    are they an admin? no, then perhaps mod, no then perhaps vip, no etc etc
     
  11. Offline

    thernztrom

    Still my config looks like that:
    Code:
    #MCDocs 12 by Tazzernator / Andrew Tajsic
    #Configuration File.
    #For detailed assistance please visit: http://dev.bukkit.org/server-mods/mcdocs/
    
    #Here we define our groups that exist in on the server. More Info on devbukkit documentation.
    #Make sure to use permission node mcdocs.group.GroupName (Example: mcdocs.group.Admin) in the respective groups.
    groups:
        Admin:
            prefix: '&4[Admin]&f'
            suffix: ''
        Mod:
            prefix: '&7[&3Mod&7]&f'
            suffix: ''
        SVIP:
            prefix: '&7[&6SVIP&7]&f'
            suffix: ''
        VIP:
            prefix: '&7[&eVIP&7]&f'
            suffix: ''
        Citizen:
            prefix: ''
            suffix: ''
        Guest:
            prefix: '&7[&8Guest&7]'
            suffix: ''
    
    #Here we determine which command will show which file.
    commands:
        /motd:
            file: 'motd.txt'
            groups:
                Admin: 'motd-admin.txt'
                Mod: 'motd-moderator.txt'
                SVIP: 'motd-svip.txt'
                VIP: 'motd-vip.txt'
                Citizen: 'motd-citizen.txt'
                Guest: 'motd-guest.txt'
        /rules:
            file: 'rules.txt'
        /news:
            file: 'news.txt'
        /register:
            file: 'register.txt'
    
    #Show a MOTD at login? Yes: true | No: false
    motd-enabled: true
    
    #Here we determine which files are shown when a player joins the server.
    motd:
        file: 'motd.txt'
        groups:
            Admin: 'motd-admin.txt'
            Mod: 'motd-moderator.txt'
            SVIP: 'motd-svip.txt'
            VIP: 'motd-vip.txt'
            Citizen: 'motd-citizen.txt'
            Guest: 'motd-guest.txt'
    
    #Replace the vanilla join and quit messages? Yes: true | No: false
    broadcast-enabled: true
    
    #Here we determine what is announced to the server for each group on join and quit.
    #If you don't define a group it's own specific string, the default message is used.
    join:
        message: '%prefix %name &7has joined &cMinecraft Hell &7from &c%country&7.'
        groups:
            Admin: '%prefix %name &7has joined &cMinecraft Hell &7from &c%country&7.'
            Citizen: '%name &7has joined &cMinecraft Hell &7from &c%country&7.'
    quit:
        message: '%prefix %name &7has left the server.'
        groups:
            Admin: '%prefix %name &7has left the server.'
            Citizen: ' %name &7has left the server.'
    
    #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: 1
    
    #How long, in minutes, do you want online files to be cached locally? 0 = disable
    cache-time: 0
    
    #Inform the console when a player uses a command from the commands list.
    command-log-enabled: true
    
    #Send warnings and errors to the main server log? Yes: true | No: false
    error-log-enabled: true
    
    #Do you have any permissions system installed? Yes: true | No: false
    permissions-enabled: true
    
    Just like you said, with Admin first. Admin/OP recieves Admin motd but Mod --> Guest all recieve the "motd.txt" file.
    To begin with I had all groups written out in the motd-settings except Citizen, so it would use the "motd.txt". Then I thought I might solve it by putting in a separate motd-citizen.txt for citizens, but it didnt.

    I tried do it without inheritence. I had them as separate groups, and gave all their separate permission, but it still showed Guests, VIPs, SVIPs and Mods the citizen motd/the normal "motd.txt".

    It seems like MCDocs 12 and PEX does not like eachother. :(
    But Tazzernator will hopefully fix it around new year time, so it works with PEX =D
     
  12. Offline

    Tazzernator

    And all this would of been avoided if bukkit just had a getGroup function. >_>
     
    Don Redhorse likes this.
  13. Offline

    Valiant

    I want to set up mc docs for .txts but dont want to use its ability to change the join/leave messages of the server. So I disabled that part.

    But, it forces the vanilla messages, when actually I want it to just "release" the event to essentials so that essentials can be the plugin to handle the join/leave messages (because essentials has an option for newplayer join messages)
     
  14. Offline

    GmK

    @Tazzernator

    Did anything change in recent Bukkit versions that totally disables your plugin? Or could it be my latest PEX update?

    From one day to the next I cant use any of my commands anymore, it simply tells me that the command doesnt exist.

    My MOTD shows on joining, but using /motd gives above message, the same with every other custom command I have.

    Am confused...
     
  15. Offline

    thernztrom

    @Tazzernator

    I use OKChat which has a permission you add to everygroup for group-based chat-formating. Isnt that the same concept as you have with group based motd's?

    http://forums.bukkit.org/threads/ch...issions-based-chat-formatting-1-0-0-r1.28173/

    Its Git.

    It works fine with both bPermissions and PermissionsEx, you think theres a possbility you can do like him to get it to work?

    Hey, I just tested it with bPermissions, and now it works fine :D
    Does noone know that or why is it not suggested to just switch from PEX to bP if you have problems with groupbased messages? :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  16. Offline

    Tazzernator

  17. Offline

    JustT0by

    I think there's a conflict with essentials....
     
  18. Offline

    Afotai

    Any chance of getting rid of Vault?

    I installed Vault, but MCDocs doesnt want to boot because I dont have iConomy (two dependencies for MCDocs to run, what?)
     
  19. Offline

    joshwenke

    I seem to be getting this message in the console every time someone joins. RB 1.1-R4, latest PEX and latest MCDocs:

    Any ideas?

    Code:
    14:02:50 [SEVERE] Could not pass event org.bukkit.event.player.PlayerJoinEvent to MCDocs
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.motdProcess(MCDocsListener.java:1004)
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerJoin(MCDocsListener.java:943)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:270)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:131)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  20. Offline

    rtcabooservb

    Tazzernator

    Can you please update your plugin to the R5 builds? :D I can't use R5 builds until your plugin is updated to support it because I love this plugin.
     
    Mercury likes this.
  21. Offline

    Shooty

    Same here =D
     
    Mercury likes this.
  22. Offline

    Tazzernator

    I've fixed this issue now :)

    Latest version has been updated for the new event system :)

    enjoy!

    http://dev.bukkit.org/server-mods/mcdocs/files/16-mcdocs-v13-3/
     
  23. Offline

    joshwenke

    Thank you so much!!! I can finally start using MCDocs again.
     
    Tazzernator likes this.
  24. Offline

    ELITEeNergizer

    MCDocs doesn't seem to be working for me, does MCDocs work with CraftBukkit 1.2.3-R0.1 ?
     
  25. Offline

    Tazzernator

    'doesn't seem to be working for me'

    Can you be a little more descriptive? Is there any errors?
     
  26. Offline

    ELITEeNergizer

    The /motd command doesn't work and none of the prebuilt commands work either. As for errors, I can't tell since I'm running in screen under Linux and it doesn't allow me to scroll up enough.
     
  27. Offline

    Tazzernator

    read the server.log?

    if you need to get to the bottom of it you can use the command

    Code:
    tail server.log
    alternatively nano it.


    My first thought would be that you have not setup permissions. Read the MCDocs documentation.

    http://dev.bukkit.org/server-mods/mcdocs/pages/permissions/
     
  28. Offline

    Shooty

    Also, i'v already say you that, but when you /kick a player, MCdocs show the vanilla "quit message" and if you can fix that :/.. Anyway thanks for your hard works !

    Oh.. and if you can add an option for make the command who we created override all command, like if i create a command called "who" and if i type /who andanythingafter, that show me the who.txt ?
     
  29. Offline

    Tazzernator

    No, MCDocs only interacts with the join and on quit broadcasted messages. I don't plan on adding any further events.

    No, this does not add any great lengths of functionality and thus a waste of time.


    Note that I will only add the very best ideas to MCDocs, which benefit the vast amount of the userbase, not slight customisations that would benefit only yourself. For that i have hosted my source on github, and you can learn how to program in java by visit a variety of tutorial websites.
     
  30. Offline

    Shooty

    It show the vanilla quit message instead of your.
     
  31. Offline

    ELITEeNergizer

Share This Page