Sueta
IT

iTpa | Simple and secure tpa plugin

1.0.1

iTpa allows users to tpa or tphere.

·Plugin

Hello!

you must be wondering there are already a lot of tpa plugins out there so why is he releasing another tpa plugin? well, you are partially right because that's true there are a lot of plugins out there that either includes tpa into themselves or are standalone plugins. However, this plugin brings a small change on the table and which is also the reason why I'm releasing this plugin:

  • Command syntax for /tpaccept has been changed from /tpaccept to /tpaccept <user>
  • Command syntax for /tpdeny has been changed from /tpdeny to /tpdeny <user>

These changes not only prevent the user from accepting teleports wrongly from someone (e.g if player1 sent tpa request to player2, and player3 also sent a request to player2, player2 would accept the teleport request from player3 instead of player1 since requests used to get overwritten. same goes for tphere) but also allow the same user to receive multiplayer requests at the same time without any issues.

Config.yml
This file allows you to customize all the messages sent to the players, feel free to edit them as per your likings.

configuration file

#messages sent when request received/sent (tpa)
requestReceived_1: "&b&liTpa&f&l» &aTeleport request from &6/user/ &areceived."
requestReceived_2: "&aType &b&l/tpaccept /user/ &ato accept or &c&l/tpdeny /user/ &ato deny."
#messages sent when request received/sent (tphere)
requestReceived_3: "&b&liTpa&f&l» &6/user/ &ahas requested you to teleport to them."
requestReceived_4: "&aType &b&l/tpaccept /user/ &ato accept or &c&l/tpdeny /user/ &ato deny."
#message sent when sending a request
requestSent: "&b&liTpa&f&l» &aTeleport request successfully sent to &6/target/"
#messages sent when request accepted or denied
tpaRequestAccepted: "&b&liTpa&f&l» &6/user/ &ahas been teleported to you!"
tphereRequestAccepted: "&b&liTpa&f&l» &aYou have been teleported to &6/user/!"

RequestAccepted: "&b&liTpa&f&l» &6/target/ &aaccepted the teleport!"
NoRequestToAccept: "&b&liTpa&f&l» &7No request to accept!"
RequestDeniedTeleport: "&b&liTpa&f&l» &6/target/ &7has denied the teleport "
RequestDenied: "&b&liTpa&f&l» &7You denied the teleport"
NoRequestToDeny: "&b&liTpa&f&l» &7No request to deny!"

#Errors handling
PlayerInAnotherWorldError: "&b&liTpa&f&l» &7You can't teleport to a player into another world!"
NoPlayerSpecified: "&b&liTpa&f&l» &7Please specify a player!"
PlayerDoesNotExistError: "&b&liTpa&f&l» &7That player doesn't exist!"
ConsoleForbidden: "&b&liTpa&f&l» &cYou cannot use this command from the console!"

Permissions
There are 4 permissions used in this plugin, all of them are associated with the respective commands and are set to true by default.

permissions

permissions:
itpa.tpa:
default: true

itpa.accept:
default: true

itpa.deny:
default: true

itpa.tphere:
default: true

Please do notice this my first public release, but also the fact I'm into java/plugin development since only a few weeks, so you've got to excuse any bad code issues. However, I'm always open to constructive criticism about code and the plugin itself.

For source code, issues and PR's please use the GitHub page at https://github.com/iiLearner/iTpa

Similar projects

Plugin →