1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Using signs

Discussion in 'Development' started by Amon28, May 29, 2017.

  1. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    How can i make a plugin that when I tap a sign it gives me item when the sign has
    1st line => Command
    2nd line => Item
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    From a public plugin developer's perspective, it's not advisable to make the plugin's action rely on sign text. It has many disadvantages, such as 1) incompatibility with other plugins (multiple plugins using the same sign text), 2) insufficient typing space (limited to 15 characters per line), 3) uncustomizable text appearance and 4) uncontrolled input source. For example, a sign may be created before the plugin is installed, or from a downloaded map, hence uncontrolled permissions.
     
  3. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    Good point
     
  4. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    I wanted to make a shop which sells custom named weapons with enchants
    How can i sell these without using signs or commands is there another way
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    A good alternative offering a similar functionality is that you register block positions as shops, regardless the type of the block.
     
  6. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    How can I do that
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Could you please generously show your ability to create your own things? We're just talking at the theory level, and you're asking is to do everything from writing the code to thinking what the plugin should do for you.
     
  8. Amon28

    Amon28 Slime

    Messages:
    76
    GitHub:
    amon28
    Sorry, I have done giving the item part but I don't know how to register the block
     
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Use your brain to think of a way. How can you let the player define which block to use as the shop?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.