Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tpalea.ktskript #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Overfake
Copy link

A script to random tp yourself between 2000 to 5000 blocks from where you are.
Only people with permission "tpalea" will be able to random tp.
You can add an integer as argument to change the number of blocks, just do as in the other script called : admpw.ktskript (just an exemple)

A script to random tp yourself between 2000 to 5000 blocks from where you are.
Only people with permission "tpalea" will be able to tp.
You can add an integer as argument to change the number of blocks, just do as in the other script called : admpw.ktskript
@randombyte-developer
Copy link
Owner

randombyte-developer commented Nov 22, 2018

Thanks for the contribution!

I am wondering if the @a[name=${player.name}] is needed, can't this just be replaced with the player name directly?

execute ${player.name} ~ ~ ~ /spreadplayers ~ ~ 2000 5000 false @s

And the execute command is needed because the player normally doesn't have the permission to execute spreadplayers right?

And can you explain the name tpalea, I don't get it right now lol.

@Overfake
Copy link
Author

Yes you can replace by the name of the player, but I wanted to do here :
Anyone who has the permission to use this command gets teleported between 2k block from where he is to 5k blocs.
If i put a username it will only work for that username.
I've another file which do the same thing but its for staff it do teleport random username you put in the command as argument, would you like me to add the other command ?

Added a new command which takes as argument a player
for staff if an admin wants to tp a player randomly
/tpaleap PLAYER_USERNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants