Can This Be Done?

Discussion in 'Plugin Development' started by flaminsnowman99, Jul 10, 2012.

  1. Offline

    flaminsnowman99

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So, I was wondering if this was possible. I'm gonna use Der Pavlov's Cannon Plugin for an example. Lets say I made a cannon. Is it possible, when a player right clicks on it, that it opens the chest GUI? If so, how would this be done?
  2. Offline

    EnvisionRed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hm, it would be very complicated, but maybe have your cannon class implement inventory and extend entity? So when you right click it, it throws a playerInteractEntityEvent, which you can then handle to have it open the inventory associated with it?
  3. Offline

    Taco

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Possible - Yes Easy - No
  4. Offline

    stelar7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    check for canon, make an inventory, show it to the player
  5. Offline

    gjossep

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes do that, Easiest way to do it.
    Making Inventory:
    Bukkit.getServer().createInventory();

Share This Page