Bukkit.dispatchCommand

Discussion in 'Plugin Development' started by thatdubstepgamer, Feb 10, 2014.

Thread Status:
Not open for further replies.
  1. Hello Ive used the Bukkit.dispatchCommand befoer but I can get it to load the schematic than paste it here is my code.

    Code:java
    1. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "/schematic load castle");
    2. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "/paste");


    Please help I cant figure it out D:
     
  2. Offline

    MrAwellstein

    Isn't that a player Only Command? Im not sure what command it is exactly.
     
  3. Yes even after I changed it to a sender or player command it still wont work...
     
  4. Offline

    xTigerRebornx

    thatdubstepgamer If I am not mistaken, the WorldEdit schematic command relies entirely on a real Player and its Location, so to do what you want to do, it'd be easier to hook into the WorldEdit api (unless you are having a Player actually sending the command, in which case I'd need to see your full code)
     
Thread Status:
Not open for further replies.

Share This Page