Trouble With Inventory GUIs

Discussion in 'Plugin Development' started by PotatoLol12321, Sep 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    PotatoLol12321

    Is there anyway to specify the different colors of wool here?

    switch(event.getCurrentItem().getType()) {
    case WOOL:
    teleportInWord(player, 3328, 68, 530);
    player.closeInventory();
    player.sendMessage(String.format("%sTeleported To %sGym1%s!", ChatColor.GOLD, ChatColor.GREEN, ChatColor.GOLD));

    break;
    case WOOL:
    teleportInWord(player, 3604, 65, -169);
    player.closeInventory();
    player.sendMessage(String.format("%sTeleported To %sGym3%s!", ChatColor.GOLD, ChatColor.DARK_BLUE, ChatColor.GOLD));

    break;
     
  2. Offline

    JasonDL13

  3. Offline

    PotatoLol12321

    Could you send me a sample of a statement? I'm kinda new to this.
     
  4. Offline

    fireblast709

    PotatoLol12321
    Code:java
    1. if (condition)
    2. {
    3. // code to execute if condition is true
    4. }
     
  5. Offline

    MinezBombz

  6. Offline

    fireblast709

    I sincerely hope that it wasn't a suggestion.
     
    es359 likes this.
  7. Offline

    MinezBombz

  8. Offline

    PotatoLol12321

    How would i set it up? I'm new. :/

    The if statement

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  9. Offline

    fireblast709

  10. Offline

    PotatoLol12321

Thread Status:
Not open for further replies.

Share This Page