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

    Tazzernator

    Seems like Vault is not finding a group / player prefix and suffix and thus instead of returning a blank string as I expected, it returns null.

    I'll fix that later tonight.

    For now though, for each of the groups without a prefix, you can simply put prefix: '' and suffix: ''
     
  3. Offline

    ELITEeNergizer

    I tried adding:

    prefix: ''
    suffix: ''
    to config.yml in MCDocs

    Still didn't work for me.

    Here is the contents of my config file:
    http://pastebin.com/YXPtZusQ
     
  4. Offline

    Tazzernator

    nono, the prefix and suffix are operators for your permissions

    for example, in PEX, it would be permissions.yml in the permissions configuration folder.

    MCDocs tries to import this data, and at the moment, because it is absent, it's instead of handling the error (my fault) it's falling over.

    If you're ahving too many issues with getting it relatively stable, i suggest just waiting another 12 hours when I can build another release.

    Thanks.
     
  5. Offline

    ipaqmaster

    For the latest 1.2 builds MCDocs is spitting this at me.
    I understand its more than likely not 1.2 compatible yet but this..might help :D


    On server boot:
    Code:
    2012-03-06 15:39:59 [SEVERE] Could not load 'plugins\MCDocs.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:420)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.tazzernator.bukkit.mcdocs.MCDocs.<init>(MCDocs.java:42)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 27 more
     
  6. Offline

    ELITEeNergizer

    I'm having problems with the latest build and I did a clean install of the plugin.

    Here's my server startup log: http://pastebin.com/HMn6Bf0K
     
  7. Offline

    Mercury

    Tazzernator

    MCDocs Does not work under UNIX environment. Most MC servers are running under Linux not Windows!
     
  8. Offline

    Shooty

    update plz :)
     
  9. Offline

    Greylocke

    Mercury I've used MCDocs with 3 different *nix distros. Never an OS issue. If you're having problems, post the pertinent information and someone may be able to help.

    Shooty if you're having a problem with MCDocs, post your MCDocs version, craftbukkit version, and the pertinent log info. Someone may be able to help.
     
    Tazzernator likes this.
  10. Offline

    Tazzernator

    I've only ever tested MCDocs under a Linux environment.
     
  11. Offline

    Shooty

    Are you going to update this plugin :/ ?
     
  12. Offline

    Tazzernator

    When I have a spare moment. University is back in full swing, and I'm hosting a LAN Party of 40 guests at the end of April that needs to be sorted... I've just completed terminating 130 ends on cat6 cables... My open source projects don't pay the bills... which means work also comes first...

    I write down every issue everyone reports, and every additional features that are requested, and I'll eventually get to it.

    Turns out I had a spare moment ;)

    http://dev.bukkit.org/server-mods/mcdocs/files/19-mcdocs-v14/

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

    Shooty

  14. Offline

    Tazzernator

    The error obviously states in plain english that you config.yml file is incorrect...... that is not my error.

    As stated by not only myself but others in the community, perhaps you should post your config.yml so someone more knowledgeable can have a look! D:
     
  15. Offline

    Camberme

    installed MCdocs, and Vault last night, I don't seem to be able to use any commands,
    This server is running CraftBukkit version git-Bukkit-1.2.4-R1.0-b2126jnks (MC: 1.2.4) (Implementing API version 1.2.4-R1.0)
    [INFO] Plugins (16): CK AutoReplace, TorchArrow, Craftipedia, GenOre, MultiCommand, PermissionsBukkit, MantaMobControl, Vault, Lockette, SideKick, Weathering, SmoothRide, Catacombs, MCDocs, dynmap, MondoChest
    I think sidekick's help might be overwriting mcdoc's but also none of the mcdocs commands are working like motd, or any of those.


    2012-04-04 12:25:06 [INFO] MrsRabbit [/71.193.2.113:49801] logged in with entity id 12423 at ([world] 1011.4298373444655, 76.0, -669.0517135455899)
    2012-04-04 12:25:06 [SEVERE] Could not pass event PlayerJoinEvent to MCDocs
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:94)
    at net.minecraft.server.Packet1Login.handle(SourceFile:68)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:48)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
    at com.tazzernator.bukkit.mcdocs.MCDocsListener.getGroupInfo(MCDocsListener.java:581)
    at com.tazzernator.bukkit.mcdocs.MCDocsListener.motdProcess(MCDocsListener.java:992)
    at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerJoin(MCDocsListener.java:939)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 12 more

    When I reload
    2012-04-04 12:59:17 [INFO] [Vault] Loading Vault v1.2.13-b148
    2012-04-04 12:59:17 [INFO] [MCDocs] Loading MCDocs v14
    2012-04-04 12:59:17 [INFO] [Vault] Enabling Vault v1.2.13-b148

    2012-04-04 12:59:17 [INFO] [Vault] Enabling Vault v1.2.13-b148
    2012-04-04 12:59:17 [INFO] [Vault][Permission] PermissionsBukkit hooked.
    2012-04-04 12:59:17 [INFO] [Vault][Permission] PermissionsBukkit found: Waiting
    2012-04-04 12:59:17 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system.
    2012-04-04 12:59:17 [INFO] [Vault] Enabled Version 1.2.13-b148
    other stuff happens

    2012-04-04 12:59:17 [INFO] [MCDocs] Enabling MCDocs v14
    2012-04-04 12:59:17 [INFO] [MCDocs] WARNING: No Economy plugin found..
    2012-04-04 12:59:17 [INFO] [MCDocs] (Tazzernator/Andrew Tajsic) - v14 load

    in my permissionbukkit config file I have
    admin:
    permissions:
    mcdocs.* : true (and all my groups have access also)

    my wife just typed /motd and the server got.

    2012-04-04 13:11:48 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to MCDocs
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:814)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
    at com.tazzernator.bukkit.mcdocs.MCDocsListener.getGroupInfo(MCDocsListener.java:581)
    at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerCommandPreprocess(MCDocsListener.java:363)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 12 more
     
    Tazzernator likes this.
  16. Offline

    Tazzernator

  17. Offline

    Camberme

    worked on my test server, loading it live, to check with multi users


    Currently working on my live server.
     
  18. Offline

    Luwiego

    Is it possible to do that variable %ip would be only showed to op or admin group ?
     
  19. Offline

    emoknight

    why do i get is message when i just use the standed docments?

    2012-05-07 18:41:16 [INFO] [MCDocs] Enabling MCDocs v14.1
    2012-05-07 18:41:16 [INFO] [MCDocs] - ERROR: MCDocs requires Vault as a depandency. MCDocs has been disabled!
    2012-05-07 18:41:16 [INFO] [MCDocs] Disabling MCDocs v14.1


    CraftBukkit version git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5)
     
  20. Offline

    Myrrdin

    Hi there! I seem to be experiencing some problems with this plugin.
    I am using Craftbukkit 1.2.5 R1.0 and PermissionsEx

    My commands can only be used if mcdocs.command.* is applied to the default group.
    Code:
        - mcdocs.command.*
        - mcdocs.command.intro
        - mcdocs.command.rules
        - mcdocs.command.storyline
        - mcdocs.command.cmds
        - mcdocs.command.register
        - mcdocs.command.about
    If I remove the mcdocs.command.* node, the commands don't work at all.
    This is what my configuration file looks like
    Code:
    commands:
        /intro:
            file: 'intro.txt'
        /rules:
            file: 'rules.txt'
        /storyline:
            file: 'storyline.txt'
        /cmds:
            file: 'cmds.txt'
        /admcmds:
            file: 'unauthorized.txt'
            Admin: 'admcmds.txt'
        /admrules:
            file: 'unauthorized.txt'
            Admin: 'admrules.txt'
        /register:
            file: 'register.txt'
        /about:
            file: 'http://tazzernator.com/files/bukkit/plugins/MCDocs/about.txt'
    I also noticed that /admcmds always displays the unauthorized.txt file even though I added the permission nodes for said commands to the admin permission list.

    Even if I use the mcdocs.command.* node, I still can't use the admcmds command or any of the other admin commands as it just displays unathorized.txt:

    Any ideas?

    Thanks in advance!
     
  21. Offline

    wuselrob

    Hi,

    I can't get it to work properly. seems to be a permission problem.
    As Admin I can run /help and /motd and so on.
    My Users have mcdocs.command.* and mcdocs.command.motd (etc.) but when they type the command, there happens nothing. no message, no error, nothing.

    Can mcdocs conflict with Essentials motd/help commands?
    even if i change the command to /mycommand it shows nothing.

    I'm using Groupmanager. Bukkit is the latest 1.2.5 release

    Best regards,
    Robert
     
  22. Offline

    thernztrom

  23. Offline

    maciek1o3s

    Hello,
    i have problem with configuring McDocs, my plugin/mcdocs:
    http://screenshooter.net/4275660/toicvtj

    and config.yml:
    Code:
    #MCDocs 14 by Tazzernator / Andrew Tajsic
    #Configuration File.
    #For detailed assistance please visit: http://dev.bukkit.org/server-mods/mcdocs/
     
    #Here we determine which command will show which file.
    commands:
        /pomoc:
            file: 'help.txt'
        /help lwc:
            file: 'lwc.txt'
        /help jobs:
            file: 'jobs.txt'
        /help shops:
            file: 'shops.txt'
        /help warps:
            file: 'warps.txt'
        /help cuboid:
            file: 'cuboid.txt'
        /help loan:
            file: 'loan.txt'
        /help maps:
            file: 'maps.txt'
        /help lvt:
            file: 'lvt.txt'
        /help tp:
            file: 'tp.txt'
        /help ground:
            file: 'ground.txt'
        /help rest:
            file: 'rest.txt'
        /motd:
            file: 'motd.txt'
        /rules:
            file: 'tules.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'
            Moderator: 'motd-moderator.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%group%suffix (%prefix%name%suffix) has joined from %country.'
        groups:
            Admin: '%prefix%group%suffix (%prefix%name%suffix) has joined the server. Respect the admins.'
    quit:
        message: '%prefix%group%suffix (%prefix%name%suffix) has left the server.'
        groups:
            Admin: '%prefix%group%suffix (%prefix%name%suffix) has left the server. You can relax.'
     
    #This changes the pagination header that is added to MCDocs automatically when there is > 10 lines of text.
    header-format: '[color=red][b]%commandname[/b][/color] | [color=yellow]Page %current of %count[/color] | [color=gray]%command <page>[/color]'
     
    #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: 5
     
    #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
    
    When i write eg /help it is shown bukkit help - not help from help.txt file. When i rename /help to /pomoc nothing is shown...

    What i did wrong?

    My permissions file:
    Code:
    groups:
        Guest:
            default: true
            permissions:
            - god.all
            - modifyworld.*
            - foo.bar
            - boa.*
            - essentials.list
            - essentials.spawn
            - essentials.msg
            - essentials.motd
            - essentials.rules
            - essentials.back.ondeath
            - essentials.back
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.sethome
            - essentials.home
            - lwc.protect
            - ichat.color
            - slowhealth
            - iConomy.list
            - iConomy.payment
            - iConomy.rank'
            - ChestShop.shop.create
            - ChestShop.shop.buy
            - ChestShop.shop.sell
            - jobs.world.Main
            - jobs.join.*
            - lagmeter.command.lagmem
            - lagmeter.command.mem
            - lagmeter.command.lag
            - modreq.status:
            - modreq.request
            - mcdocs.*       
            options: null
            prefix: '&f[&7Gracz&f]&f '
        Admin:
            permissions:
            - '*'
            - modifyworld.*
            inheritance:
            -
            options: null
            prefix: '&f[&cAdmin&f]&f '
    users:
        RefleX_PL:
            group:
            - Admin[/mcdocs]
    btw. im using PermissionsEX - is it bad?
     
  24. Offline

    james00000001

    Is anyone here able to help me?

    I have set up myself a ranks.txt and linked it to "/ranks". It is designed to show the server ranks and some basic info on them. The problem is that my ranks looks like this: [P] (player) [T] (trusted) [A] (admin). And MCDocs thinks they are formatting commands as it removes them. I have tried putting it in quotes but that has not worked. Does anyone know how I can get it to display these ranks without it interpreting them as formatting commands.
     
  25. Offline

    Schlumpfpirat

    Having a problem. Getting this error on join event + commands don't work either.

    Join:
    Code:
    2012-07-04 13:58:52 [SEVERE] Could not pass event PlayerJoinEvent to MCDocs
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:41)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.motdProcess(MCDocsListener.java:1011)
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerJoin(MCDocsListener.java:954)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
        ... 9 more
    Command:

    Code:
    2012-07-04 14:00:45 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to MCDocs
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:814)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
        at java.lang.String.replace(Unknown Source)
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.basicVariableSwap(MCDocsListener.java:761)
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerCommandPreprocess(MCDocsListener.java:384)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
        ... 12 more
     
  26. Offline

    Tazzernator

    Schlumpfpirat

    The player whom joins / issues a command is not part of a permissions group.

    Setup a default.
     
  27. Offline

    Schlumpfpirat

    Tazzernator

    Thank you for your reply.
    Actually I do have a default. After my config somehow did not work I went back using your config, which resulted the same issue.

    My config (should it work?):

    Code:
    #MCDocs 14 by Tazzernator / Andrew Tajsic
    #Configuration File.
    #For detailed assistance please visit: http://dev.bukkit.org/server-mods/mcdocs/
     
    #Here we determine which command will show which file.
    commands:
        /motd:
            file: 'motd.txt'
            groups:
                Admin: 'motd-admins.txt'
                Moderator: 'motd-moderator.txt'
                VIP: 'motd-vip.txt'
                Sponsor: 'motd-sponsor.txt'
                Special: 'motd-special.txt'
                Builder: 'motd-builder.txt'
        /rules:
            file: 'rules.txt'
        /news:
            file: 'news.txt'
        /register:
            file: 'register.txt'
        /apply:
            file: 'register.txt'
        /help:
            file: 'help/help.txt'
            groups:
                Moderator: 'help/mod.txt'
        /modhelp:
            file: 'help/mod.txt'
        /color:
            file: 'color.txt'
        /donate:
            file: 'donate.txt'
        /sponsor:
            file: 'donate.txt'
        /online:
            file: 'online.txt'
        /o:
            file: 'online.txt'
        /list:
            file: 'online.txt'
        /who:
            file: 'online.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-admins.txt'
                Moderator: 'motd-moderator.txt'
                VIP: 'motd-vip.txt'
                Sponsor: 'motd-sponsor.txt'
                Special: 'motd-special.txt'
                Builder: 'motd-builder.txt'
                Default: 'motd.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%group%suffix (%prefix%name%suffix) has joined from %country.'
        groups:
            Admin: '%prefix%group%suffix (%prefix%name%suffix) has joined the server. Respect the admins.'
    quit:
        message: '%prefix%group%suffix (%prefix%name%suffix) has left the server.'
        groups:
            Admin: '%prefix%group%suffix (%prefix%name%suffix) has left the server. You can relax.'
     
    #This changes the pagination header that is added to MCDocs automatically when there is > 10 lines of text.
    header-format: '[color=red][b]%commandname[/b][/color] | [color=yellow]Page %current of %count[/color] | [color=gray]%command <page>[/color]'
     
    #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: 5
     
    #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
    
     
  28. Offline

    Tazzernator

    Schlumpfpirat

    The error indicates that the group is not being found for the player. This is most likely a permission setup issue.

    What permission system are you using?
     
  29. Offline

    Schlumpfpirat

    Tazzernator

    PermissionBukkit & SupermBridge

    //edit: never mind. works now! Failed a little bit with Groupnames.. Thank you. :)
    //edit2:
    Show Spoiler
    How ever, I got something new! ;)

    PlayerJoin:

    Code:
    2012-07-05 02:17:05 [SEVERE] Could not pass event PlayerJoinEvent to MCDocs
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:41)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.motdProcess(MCDocsListener.java:1011)
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerJoin(MCDocsListener.java:954)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
        ... 9 more
    PlayerQuit:

    Code:
    2012-07-05 02:01:51 [SEVERE] Could not pass event PlayerQuitEvent to MCDocs
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:179)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:698)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:234)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
        at com.tazzernator.bukkit.mcdocs.MCDocsListener.onPlayerQuit(MCDocsListener.java:987)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
        ... 10 more

    This only does not happen, when group join&quit messages are defined in the config.
    Eventho the error comes up it promts the McDocs Default join&quit message (so it brings up &e>>> %name has joined the server. but brings up the error aswell).

    config-part

    Code:
    broadcast-enabled: true
     
    join:
        message: '&e>>> %name has joined the server.'
        groups:
            VIP: '&e>>> VIP %name has joined the server.'
            Moderator: '&e>>> %name has joined the server. &cCountenance!'
            Admins: '&4>>> Admin %name &ehas joined the server. &cCountenance!'
    quit:
        message: '&c<<< %name has left the server.'
        groups:
            Moderator: '&c<<< %name has left the server. You can lay back.'
            Admins: '&c<<< %name has left the server. You can relax.'
    


    //edit3: And now, after a restart it stopped working entirely - even for Admins etc. Only let the DeathTpPlus Plugin regenerate its plugin folder..

    //edit4: Restarted the server once more aaaaand at least the group-join&leave stuff work again. Still getting errors on non-group-specified join&leave messages

    //edit5: Restarted once more & group-specific join&leave messages are broken again. This is just so weird.
    After I just restarted again the group-specific stuff works again..

    //edit6:
    Show Spoiler
    Somehow seems to work again & I didn't change anything in the config, just restarted a couple of times. This is really weird.
    And oh yeah - there is a little bug w/in your formatting..

    Like for example this does not work:

    Code:
    &a As a [i]&9Sponsor[/i]
    but this:

    Code:
    &a As a [i] &9Sponsor [/i]
    and sometimes the italic & other formatting does not work at all. Like for example here

    Code:
    version1
    &4#2 &f- &aClick on [i]&bAPPLY HERE[/i]
     
    version2:
    &4#2 &f- &aClick on [i] &bAPPLY HERE [/i]
    both versions does not work.
    And there is something else, but pretty small - I guess it's unfixable, since it's the reset function of MC.
    After you for example type [/i] everything after it gets colored white and loses its color


    //edit7:
    Show Spoiler
    Alright everything works again. I thought about this stuff I posted above a little bit. And then suddenly there came an idea in my mind. The playerjoin & leave error only comes up, when a person first joins the server/is not part of a permission group on paper.
    So for example - a random dude joins, then he gets default permissions, but there is no log/it's not written down, that he is in default permission group.
    Now let's say I add him to users in the permissions file, with group default - then the error does not come up, because then he has a "group on sheet".
    Any idea how to fix this?
     
    Tazzernator likes this.
  30. Offline

    Tazzernator

    New release of MCDocs

    http://dev.bukkit.org/server-mods/mcdocs/files/22-mcdocs-v14-3/

    Changes:
    • 14.3
      • Vault null crashes fixed (patch by Spyboticsguy)
      • Introduction of per-player on join and quit announcements. These override any group announcements if in play (patch by Spyboticsguy)
      • %name is now the plain user's name. %displayname is the player's display name.
      • New server variables. See documentation.
    GitHub Push: https://github.com/atajsic/Bukkit-Plugins/commit/4257a96c3df10e662d79d84192b8fc8f4ff9b16d
    This setup has been slightly tested with Craftbukkit version 1.3.1 R2 and PermissionsEx
    Errors may occur, please report any that you may find.
    Thankyou!
     

Share This Page