So I have two players one of which is me, named Xxxx and another named xxxxy it doesn't allow me to tp to XXXX only xxxxy is theres a special syntax that would let me tp to XXXX. Their names are the same but one has a a cap X and the other one is lowercase with a y at the end.
Teleport to player with similar names?Solved
/tpr xxx #1
/tpr xxx #2
How would u use that with the tp command? /tp playertotp xxx #2 /tp playertotp xxx #1? that doesnt work for me. and /tp xxxx #2 doesnt work either.
aside from adding a GUI this will always be a pain in the ass. no time for a GUI
instead we can assign a unique 4 character ID when players connect
when you receive the message with multiple players found then and only then will it show their ID alongside their name. teleport using their ID instead of using their name when this happens
Multiple players found:
shit - nivex
head - mrnivex/tp shit
/tp shit head
should work with /tpr as well
https://pastebin.com/cgNLeKFJ
Save as NTeleportation.cs
test it if you want.
What about putting a player name in quotations "XXXX" would have to match the player XXXX exactly or it wouldnt work. Any other symbol or identifier would work as well
I don't think it works that way. using quotes allows you to put multiple words as one argument. the code has no idea you used quotes to do that, unless there is spaces.
Locked automatically