RandomTP ( GUI Based )

Status
This thread has been locked.

Spce

Owner Of MineBlast
Banned
Feedback score
0
Posts
29
Reactions
13
Resources
0
e7a8220afee89a21877a7af79deedf8a.png

RandomTP is a GUI Based random teleportation plugin. Players use money in there balance to be randomly TP'd into the wilderness. The prices in the GUI Are configurable as well as the world you want players to random teleport in


b09270a74b0b99158252f2836ea7d91c.png


2266d0a695d1252951bcb071b82890cd.gif


7cd0183a47ac68ce52314e29f9019e61.png


* /rtp

Download:
https://www.spigotmc.org/resources/randomtp-gui-based.23112/
 

Spce

Owner Of MineBlast
Banned
Feedback score
0
Posts
29
Reactions
13
Resources
0
Banned forever. Reason: Ban Evading (MCSetupsTeam, https://builtbybit.com/members/mcsetupsteam.4223/)

user7089

I deleted discord. Clones are scams.
Premium
Feedback score
5
Posts
137
Reactions
112
Resources
0
Psst...
Code:
public static Location getRandomLocation(Location center, int min, int max) {
        int x = randomInt(-max, max);
        int z;
        if (Math.abs(x) < min) {
            z = randomInt(min, max);
            if (new Random().nextBoolean()) {
                z = -z;
            }
        } else {
            z = randomInt(-max, max);
        }
        x = center.getBlockX() + x;
        z = center.getBlockZ() + z;
        return center.getWorld().getHighestBlockAt(x, z).getLocation();
    }
Your randomizer ignores spaces between the corners, this is also a more efficient way of doing it, but A for creativity :p
Yours:
#N#
NNN
#N#
Mine:
###
#N#
###

N - never
# - possible location
 

user7089

I deleted discord. Clones are scams.
Premium
Feedback score
5
Posts
137
Reactions
112
Resources
0
Or make it even better:
Code:
gui:
  0: "STAINTED_GLASS_PANE:15 1 name:&r"
  15: "15000|DIAMOND_SWORD name:&6Small_TP"
nItemStack

Code:
 for (String s : cfg.getConfigurationSection("gui").getKeys(false))) {
            Inventory.setItem(Integer.parseInt(s),new nItemStack().decode(cfg.getString("gui." + s)));
        }
 

Spce

Owner Of MineBlast
Banned
Feedback score
0
Posts
29
Reactions
13
Resources
0
Banned forever. Reason: Ban Evading (MCSetupsTeam, https://builtbybit.com/members/mcsetupsteam.4223/)
Status
This thread has been locked.
Top