▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Traincarts Ticket Shop
Traincarts Ticket Shop

Traincarts Ticket Shop

A plugin which allows players to create shop GUIs for purchasing tickets from the Traincarts plugin.

16
1

A plugin which allows players to create ticket shop guis for purchasing tickets from the Traincarts plugin.

FOR FULL INFORMATION ABOUT PLUGIN USAGE, PLEASE VISIT THE WIKI ON GITHUB

How to use

  • Run /train ticket create <Traincarts ticket name> to create a Traincarts ticket.
  • Run /tshop ticket create <Traincarts ticket name> to get a "gui ticket" item.
  • Run /tshop gui create <Gui ID> to create a shop Gui.
  • Run /tshop gui rename <new display name> to change the Gui title.
  • Run /tshop gui edit <Gui ID> to edit the Gui.
  • Drag the ticket you were given by the plugin into the inventory that opens. image
  • Run /tshop gui open <Gui ID> to open the shop GUI. Click on a ticket to get it in your inventory.

Other methods of opening the GUI

Signs

Create a sign with this format:

[tshop]
<gui ID>

Any other text

image

Right click on the sign to open the shop Gui.

Links

Links are a powerful tool which allows players to "link" multiple guis together.

To get started, you must have at least two guis already created. For example, we may have run:

  • /tshop gui create mainline
  • /tshop gui create subline

We may want to have it so that the gui mainline links to the second gui, subline.

Firstly, we must create a new "link". To do this, we can run:

  • /tshop link create <linked Gui ID>
  • /tshop link rename <new display name>

In our example, this would look something like:

  • /tshop link create subline
  • /tshop link rename "<yellow>Subline Tickets"

This should give us a link item which looks something like this:

image

With this new link, we can run:

  • /tshop gui edit mainline

and drag and drop the link item anywhere within the mainline gui, even amongst other tickets.

image(1)

Now, when a player opens the mainline gui, they will be able to click the link item. This will redirect them to the subline gui.

Untitled-2024-01-25-2133

It's also possible to set the destination page that a link item will link to.

For example:

  • /tshop link setDestinationPage 10

will make it so that when the link is clicked, it will try to redirect the player to page 10 of the destination gui. If there aren't that many pages in the Gui, it will default to the highest page possible.

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:GPL-3.0-only
Опубликован:1 месяц назад
Обновлён:1 месяц назад
Главная