Home Registry
Yet another plugin for home teleportation, but I want it to be more economically dependent.
This plugin basically lets players set their homes, but to save a location they have to register it with a special item. Furthermore, when a player wants to teleport to their home, they have to have a ticket linked to the desired location.
Commands:
Users:
Players can use the /homeregistrybuy command (or /hrb) to buy items necessary for registration and teleportation.
- /homeregistrybuy howmuch - This command shows how much items cost.
- /homeregistrybuy registerer <?amount?> - This command is for buying the home registerer item. Amount value is optional.
- /homeregistrybuy ticket <?amount?> - This command is for buying a ticket. Amount value is optional.
Admins:
Additionally, admins have special commands to give items to someone:
- /homeregistry give <player> registerer <?amount?> - That commands is to give somene registerer item. Amount value is optional.
With a ticket, you can also specify a home location, which will change a blank ticket into a home ticket.
- /homeregistry give <player> ticket <amount> <homename>
Other admin commands:
- /homeregistry sethome <homename> - This command sets a home location.
- /homeregistry delhome <homename> - This command removes a home location.
You can also disable the option to purchase items via commands and allow players to obtain them in other ways.
Usage:
To register your home, you need a
registerer item:
With this item, you simply click with
right-click on a properly prepared sign.
If everything goes well, you lose the
Home Registerer and get a sign ready to
link with. Notice your nick, that is now part of the home name.
Now you can use
Blank Tickets to
link them with the sign, also with
right-click. When you shift-click, you link all tickets in your hand.
If the sign was good and there were no problems, then you get your
ticket that lets you go back to the sign.
If you destroy your sign, you get back your registerer, but the tickets won't work anymore. Relax, you can link them to a new home
Permissions
Config:
Code (YAML):
#Option canbuy is to set if items can be buy by commands, and give opportunity to create other ways to obtain items by player.
#cost value is ignored without properly configured vault and can be set to 0.
canbuy
: true
registerer:
name
:
"Home registerer"
lore
:
-
"With this item you can"
-
"Register your home."
material
:
"STICK"
cost
: 10
blankticket:
name
:
"Blank ticket"
lore
:
-
"Blank ticket ready to link"
-
"with home sign"
material
:
"PAPER"
cost
: 1
# {home} is important to show where coupon lead to, but it's not necessary
ticket:
name
:
"Home ticket"
lore
:
-
"Ticket linked to:"
-
"{home}"
material
:
"PAPER"
teleportcooldown
: 1
messages:
wrong_stack_amount
:
"Wrong stack amount value"
buying_disabled
:
"HomeRegistry buy command is disabled."
not_enough_for_item
:
"You don't have enough money to buy {item}."
you_paid
:
"You paid {cost} for {amount} {item}"
create_permission
:
"You do not have the required permissions to create home signs!"
no_home_name
:
"No home name set!\nPlease specify the home name."
home_created
:
"Home successfully registered."
home_name_taken
:
"A home with the same name already exists!"
home_destroyed
:
"Home destroyed."
home_on_sign_not_exist
:
"Home on this sign is not registered!"
home_sign_created
:
"Home successfully registered."
destroy_permission
:
"You do not have the required permissions to destroy home signs!"
home_not_found
:
"Specified home does not exist!"
teleport
:
"Teleporting to {home} in {time} seconds..."
teleport-success
:
"Successfully teleported to {home}."
teleport-error
:
"An error occured, when teleporting to: {home}."
teleport-cancelled
:
"Teleport cancelled."
item_cost
:
"{item} cost {cost}"
economy_false
:
"Economy plugin is not enabled on server."
item_received
:
"{player} received {amount} {item}."
If you encounter any bugs or something isn't working as intended, please let me know.
Check out my other work:
Additionally if you'd like, you can
I would greatly appreciate it!