If this is for ModPE, unfortunately, there is no method that gives you access to the current player's name. I've seen scripts reading the /sdcard/games/com.mojang/minecraftpe/options.txt to find the player's name, but that's a hacky solution.
If this is for ModPE, unfortunately, there is no method that gives you access to the current player's name. I've seen scripts reading the /sdcard/games/com.mojang/minecraftpe/options.txt to find the player's name, but that's a hacky solution.
I'm considering adding this function.
ok i will try it but i have seen so of the modder they can get player name use the world file but thx 500ise
ok i will try it but i have seen so of the modder they can get player name use the world file but thx 500ise
yes can i use yours mod to my new mod
They used the Java bridge to directly read the options file. This is nasty (what if Minecraft changes its option file location), and should be avoided.
If you want to do this, view the source of those mods.
People, please discuss the topic at hand, not your opinions of the other posters in this thread.
Also please remember that English is not always the first (or in many cases, even second) language of the people posting here. When you are about to criticize someone's English, ask yourself how well you could post in their first language.
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm considering adding this function.
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThey used the Java bridge to directly read the options file. This is nasty (what if Minecraft changes its option file location), and should be avoided.
If you want to do this, view the source of those mods.
Sure but you have to be part of my moding team is that ok
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
-
View User Profile
-
View Posts
-
Send Message
Retired StaffAlso please remember that English is not always the first (or in many cases, even second) language of the people posting here. When you are about to criticize someone's English, ask yourself how well you could post in their first language.
Thank you.
The golden age: it's not the game, it's you ⋆ Why Minecraft should not be harder ⋆ Spelling hints