在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Shadowwolf97/Minecraft-UUID-Utils开源软件地址(OpenSource Url):https://github.com/Shadowwolf97/Minecraft-UUID-Utils开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Minecraft UUID UtilsMinecraft UUID Utils is a set of ready to use PHP classes to fetch Minecraft usernames or uuids from either a uuid or username. These classes allow you to find a user's UUID from their Username or Username from UUID. DocumentationMinecraftProfile->getUsername()
MinecraftProfile->getUUID()
MinecraftProfile->getProperties()
MinecraftProfile->getProfileAsArray()
UsageMake sure to include the Minecraft UUID library. include("MinecraftUUID.php"); Username to UUIDExample: $profile = ProfileUtils::getProfile("Shadowwolf97");
if ($profile != null) {
$result = $profile->getProfileAsArray();
echo 'username: '.$result['username'].'<br>';
echo 'uuid: '.$result['uuid'].'<br/>';
} UUID to UsernameExample: $profile = ProfileUtils::getProfile("c465b1543c294dbfa7e3e0869504b8d8");
if ($profile != null) {
$result = $profile->getProfileAsArray();
echo 'username: '.$result['username'].'<br>';
echo 'uuid: '.$result['uuid'].'<br/>';
} FindProfile.phpUsage, Username to UUID, and UUID to Username (above) goes live with this file. It accepts GET Request with either username or uuid. Append "?username=YOUR_USER_NAME" to retrieve associated UUID OR Append "?uuid=YOUR_UUID" to retrieve associated Username This will print out Username and UUID on the screen. Background Assets:There are also functions that may be called that might be useful. ProfileUtils::getUUIDFromUsernameTakes in a string username. This function will convert the username and will return an array. This array is in the format of (Key => Value) "username" => Minecraft username (properly capitalized) "uuid" => Minecraft UUID. ProfileUtils::getUUIDsFromUsernamesTakes in an array of usernames in string formatting. This function will convert up to 100 usernames and will return an array containing arrays. This internal array is in the format of (Key => Value) "username" => Minecraft username (properly capitalized) "uuid" => Minecraft UUID. ProfileUtils::formatUUIDTakes in an unformatted UUID string and returns a formatted uuid string. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论