Home›Java›Mods›RandomTPItem
RandomTPItem
ModsJava

RandomTPItem

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
RandomTPItem is a plugin that allows for players to be given a "RandomTP Item", which on right-click use, will teleport them to a random location in both the enabled worlds and the maximum coordinates (See Config).

Features:

- RandomTPItem's configuration is very detailed and allows for a ton of customization.

- "RandomTP Items" can be given to players by both console and players, with proper permissions!

- New players can be given a "RandomTP Item" on their first join (See Config).

- "RandomTP Items" can be purchased by players via command. (Note: This feature requires the latest version of Vault)

- "RandomTP Items" can be prevented from teleporting a player into claimed Faction land, including Safezone & Warzone land. (Note: This feature requires the latest version of Factions/MassiveCore)

- RandomTPItem is compatible with the latest version of Spigot 1.8.8.

Commands:

- /rtp : This is the plugin's main command!

- /rtp give : This command will give the player who sent the command a "RandomTP Item".

- /rtp give <name> : This command will give another player a "RandomTP Item".

- /rtp buy : This command will allow a player to buy a "RandomTP Item".

- /rtp reload : This command will reload the plugin's configuration!

Permissions:

Note: All permissions listed are given by default to operators (OPs)

- RandomTP.give: This permission allows a player to use '/rtp give'.

- RandomTP.giveOthers: This permission allows a player to use '/rtp give <name>'.

- RandomTP.buy: This permission allows a player to use '/rtp buy'.

- RandomTP.reload: This permission allows a player to use '/rtp reload'.

- RandomTP.giveOnJoin: This permission allows a player to always be given a "RandomTP Item" when they join.

Configuration:
Code (Text):

## Configuration for RandomTP by CMPSCdev
## Plugin Version : 1.2
## Plugin use intended for MC 1.8+
## Any questions/issues/concerns/glitches/etc should be sent to my Spigot profile :
## https://www.spigotmc.org/members/cmpscdev.61432/

## ----------------------------------------------------------------------

## Permissions and Commands (Commands must be used by Player)
## /rtp (No perm) - Base command, will send a list of commands to CommandSender.
## /rtp give (RandomTP.give) - Give yourself a RandomTP Item.
## /rtp give <name> (RandomTP.giveOthers) - Give a player a RandomTP Item. (Player MUST be online!)
## /rtp buy (RandomTP.buy) - Purchase a RandomTP Item for a configurable purchase cost (purchaseCost).
## /rtp reload (RandomTP.reload) - Reload the plugin configuration (i.e, this file :3)
## No command (RandomTP.giveOnJoin) - Having this permission gives the player a "RandomTP Item" every time they join.

## ----------------------------------------------------------------------

## Configuration for TPItem (The item given to the player via commands, first join, etc)
##       item: DIAMOND_SWORD  - Item that is given to the player.
##       meta: 0 - Used for colored wool/glass/god apples (ex: 322:1). Normal items should have Meta = 0.
##       displayName: '&6RandomTP Item' - Name for item shown. Use ' ' to have it be the normal in-game name (ex: Diamond Sword)
##       Lore: '&7Right click to use!' - Lore of the item shown. Use ' ' to have nothing.

## ----------------------------------------------------------------------

## FINAL NOTE: Please have your player's know that if they try to use the RandomTP Item when it is stacked with
## another RandomTP Item (Stack size: 2, for example), it will NOT teleport them. They must have the two RandomTP Items
## separated before attempting to use them. I hope to update this in a later version when I figure out how to prevent
## the RandomTP Items from stacking by command and inventory storing.

## Configuration options for RandomTP
Options:

  ## Prefix used for all messages sent by the plugin.
  prefix: '&8[&6RandomTP&8] '
  ## Message sent to player when they do not have permission to use a command.
  noPermMsg: '&cYou do not have permission to do that!'
  ## Message sent to console when using a plugin comamnd.
  noConsoleMsg: '&cConsole cannot use that command!'
  ## Message sent to player when using the /rtp reload command.
  reloadMsg: '&cYou have reloaded the configuration!'
  ## Message sent to player when /rtp give <name> target is not online (Use {TARGET} to use the player's name).
  notOnlineMsg: '&c{TARGET} is not online!'
  ## Message sent to player when RandomTP Item is given to the player, but their inventory is full.
  inventoryFullMsg: '&cInventory full! RandomTP Item could not be given!'
  ## Should a player be given a RandomTP Item on their first time joining the server? True = Yes, False = No.
  giveOnFirstJoin: true
  ## Message sent to player when RandomTP Item is given to the player.
  itemGiveMsg: '&aYou have been given a RandomTP Item!'
  ## List of all worlds in which the RandomTP Item can be used (NOTE: This list can be expanded upon/shortened and is case-sensitive).
  EnabledWorlds:
    - world
    - world_nether
    - world_the_end

  ## The maximum X-coordinate that a player can be teleported to.
  maxX: 5000
  ## The maximum Z-coordinate that a player can be teleported to.
  maxZ: 5000
  ## Message sent to player when they use their RandomTP Item and are teleported.
  teleportMsg: '&aYou have been randomly teleported!'
  ## Message sent to player when they try to use their RandomTP Item in a world not defined in "EnabledWorlds" list above.
  nonEnabledWorldMsg: '&cYou cannot use the RandomTP Item in this world!'
  ## Should Vault be used? True = Yes, False = No. (NOTE: This must be enabled to allow players to be able to purchase "RandomTP Items")
  useVault: true
  ## Message sent to player when they use /rtp buy when "useVault" is false (Vault not enabled).
  vaultNotEnabledMsg: '&cYou cannot use this command! Server is not using Vault!'
  ## Price to purchase a "RandomTP Item" via the '/rtp buy' command.
  purchaseCost: 499.99
  ## Message sent to player when their balance is less than the purchase cost for a "RandomTP Item".
  cannotAffordMsg: '&cYou cannot afford to purchase a RandomTP Item!'
  ## Should Factions/MassiveCore be used? True = Yes, False = No. (NOTE: This must be enabled to prevent players from teleporting into faction land)
  useFactions: false

## Configuration options for TPItem
TPItem:
  item: COMPASS
  meta: 0
  displayName: '&6RandomTP Item'
  lore: '&7Right click to use!'
 
To Do:

- Allow for a configurable ParticleEffect to play/spawn when at the player's location after using a "RandomTP Item".

- Allow for a per-mob configurable drop chance to give a player a "RandomTP Item" from killing said mob.

- Whatever else is requested!

Known Bugs/Issues:

- I wasn't able, during the current development of this project, to prevent the "RandomTP Items" from stacking upon each other. This presents a problem where the player can't right-click and use their "RandomTP Item" unless they manually separate from the stack. I hope to resolve this issue in a later version of the project.

- If you intend to use Factions/MassiveCore to prevent players from teleporting into claimed Faction land, you must change the config value for "useFactions" to true and FULLY RELOAD your server! If you only use '/rtp reload' you will get spammed with "ClassNotFoundException" errors.

- Though not fully the fault of this plugin, using a "RandomTP Item" can cause a large amount of chunks to load all at once, thus causing server lag. I would suggest fully loading all of the chunks within a world before letting a whole bunch of players use "RandomTP Items".

- I would suggest FULLY reading the comments I made in the plugin's config.yml. It is really important to follow the format I used!

I hope everyone enjoys this project as much as I enjoyed making it!

If you have suggestions, ideas, or have found issues with my plugin, please leave a comment below and I will respond back as soon as possible!

-CMPSCdev

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

RandomTPItem is a free Minecraft Java mod. Downloaded 246 times (via Spigot). Download it and open it directly in the game.

Explore more