Internal error when using any Landlord command - NO WorldGuard #48


  • New
  • Defect
Open
Assigned to _ForgeUser7498307
  • _ForgeUser21728707 created this issue Sep 10, 2015

    What steps will reproduce the problem?
    1. Configure Landlord: http://pastebin.com/mQV6rWxK
    2. Issue a Landlord command (e.g. /ll info)

    What is the expected output? What do you see instead?
    Expected: command to function as normal
    Actual: Receive error "An internal error has ocurred while attempting to perform this command" and the command does not produce the expected output. Commands such as /ll claim and /ll unclaim function as expected (except for producing any meaningful output), but still display the error message.

    What version of the product are you using?
    Landlord v1.3
    Spigot craftbukkit-1.8.8-R0.1-SNAPSHOT
    NO WorldGuard plugin installed
    PermissionsEx-1.23.3
    Essentials-2.x-SNAPSHOT
    a few other plugins such as betteralias, killrewards, logblock, vault, etc.

    Do you have an error log of what happened?
    http://pastebin.com/sVQSFzeX

    Please provide any additional information below.
    Most of the tickets I have seen on here usually involve some sort of interference with WorldGuard, but I don't have that plugin installed.

  • _ForgeUser21728707 added the tags Defect New Sep 10, 2015
  • _ForgeUser21728707 posted a comment Sep 10, 2015

    As far as I can tell, this issue is actually related to the use of particle effects on the chunks in your code (e.g. for the info command, Effect.LAVADRIP is used). I see this error in the console:

    Caused by: java.lang.NoSuchFieldError: LAVADRIP
            at com.jcdesimp.landlord.LandlordCommandExecutor.landlord_info(LandlordCommandExecutor.java:1046) ~[?:?]
            at com.jcdesimp.landlord.LandlordCommandExecutor.onCommand(LandlordCommandExecutor.java:103) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Bukkit-9a17f01]
            ... 15 more
    

    And you have this in your Info.java:

                if(plugin.getConfig().getBoolean("options.particleEffects")){
                    land.highlightLand(player, Effect.LAVADRIP);
                }
    

    That's where the error is being thrown.

    Is it possible to get a build of Landlord without particle effects enabled? In some places you use effects, you check for the options.particleEffects option, but in other places (like Unclaim.java) you don't.

    Alternatively, could I submit a patch that checks for options.particleEffects every time a particle effect is used?

  • _ForgeUser7498307 posted a comment Sep 12, 2015

    Landlord currently only supports Spigot, not craftbukkit. I would like to change this in the future but for now this is the case unfortunately.


To post a comment, please login or register a new account.