Bug with /setblock Command #177


  • New
  • Defect
Open
Assigned to _ForgeUser7307234
  • _ForgeUser20782344 created this issue Jun 27, 2015

    What steps will reproduce the problem?
    1. I created a Command Signs
    2. I set the command "/*setblock -1028 65 -5202 1" as line1
    3. When I run the command using the signs, nothing happend but the console show this :

    19:19:14 CONSOLE: ERROR]: Could not pass event PlayerInteractEvent to CommandSigns v1.9.3.2
    19:19:14 CONSOLE: org.bukkit.command.CommandException: Unhandled exception executing 'setblock -1028 65 -5202 1' in org.bukkit.craftbukkit.v1_7_R1.command.VanillaCommandWrapper(setblock)
    19:19:14 CONSOLE: Source) ~[?:?]
    19:19:14 CONSOLE: Source) ~[?:1.7.0]
    19:19:14 CONSOLE: Source) ~[?:1.7.0]
    19:19:14 CONSOLE: java.lang.ClassCastException: org.zonedabone.commandsigns.proxy.PlayerProxy cannot be cast to org.bukkit.craftbukkit.v1_7_R1.entity.CraftPlayer
    19:19:14 CONSOLE: Source) ~[?:?]
    19:19:14 CONSOLE: Source) ~[?:1.7.0]
    19:19:14 CONSOLE: Source) ~[?:1.7.0]
    19:19:14 CONSOLE: ERROR]: Could not pass event PlayerInteractEvent to CommandSigns v1.9.3.2
    19:19:14 CONSOLE: org.bukkit.command.CommandException: Unhandled exception executing 'setblock -1028 65 -5202 1' in org.bukkit.craftbukkit.v1_7_R1.command.VanillaCommandWrapper(setblock)
    19:19:14 CONSOLE: Source) ~[?:?]
    19:19:14 CONSOLE: Source) ~[?:1.7.0]
    19:19:14 CONSOLE: Source) ~[?:1.7.0]
    19:19:14 CONSOLE: java.lang.ClassCastException: org.zonedabone.commandsigns.proxy.PlayerProxy cannot be cast to org.bukkit.craftbukkit.v1_7_R1.entity.CraftPlayer
    19:19:15 CONSOLE: Source) ~[?:?]
    19:19:15 CONSOLE: Source) ~[?:1.7.0]
    19:19:15 CONSOLE: Source) ~[?:1.7.0]

    What is the expected output? What do you see instead?

    What version of the product are you using?

    The Latest version of the plugin

    Do you have an error log of what happened?

    See upside

    Ps : I'm French so sorry if my English is bad
    Please provide any additional information below.

  • _ForgeUser20782344 added the tags New Defect Jun 27, 2015
  • omanoctoa posted a comment Mar 20, 2016

    To my knowledge, /setblock requires more input than what you have specified in your command.

    First, /setblock cannot be run from console without it defaulting to the main "world" (it defaults to the one named 'world', if it does anything at all). It also has issues setting a block at a location that already has a block there. The command you will probably therefore need to use is...

    /cmds 1 /*sudo <player> setblock -1028 65 -5202 1 0 replace
    

    ...Which, should place a block of STONE in the same world as the player who uses it, as -1028, 65, -5202, replacing whatever block may be at that location. There are a few alternatives to 'replace' - just search "minecraft setblock usage" in google.

    Please note however, regardless of using the silent operator ? in front of a command (like ?/*sudo <player>), /setblock will still display Block Placed in that player's chat. I have yet to figure out a way around this, and very few other plugins support silent command operation.


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