Topic category: User side tutorials
Do you don't want to support cracked accounts? Then this tutorial is for you. It simply prevents cracked users from joining any world or server by immediately kicking them with an error message. Accounts are checked using mojangs official session server api. This system excludes the MCreator test account.
Warning: This makes your mod at least partially internet-dependent (internet is required on join to check if the account is premium), but this shouldn't be a bug problem since almost everyone has unlimited internet.
Create a global variable with the following properties:
Name ValidAccount Type logic Scope PLAYER_LIFETIME
- Create a new procedure, save it and lock it
- Replace the code completely with the code found here: https://dpaste.org/xmRXV
- Replace package paths/names that are from my mod (anything with rewe or NotEnoughPotions) with paths/names from your mod
- You can replace the message of the kick commands in line 91 and 122 with a custom message for your mod or change the commands entirely.
Thats it! Now only legit users should be able to use your mod!