Sell a Minecraft plugin, a FiveM script, a Discord bot or a desktop app, and someone will use it without paying. Usually it isn't a skilled cracker. It's one buyer sharing their copy with five friends, or a jar reposted on a leak forum the week you launch.
You can't make piracy impossible, and trying to usually hurts paying customers more than pirates. What you can do is make sharing inconvenient, make leaks traceable, and make paying the easy option. This is the plan I'd follow, in order. Each step is worth doing on its own, so stop wherever the effort stops paying off.
Step 0: Decide what you're actually fighting
Threat How common What stops it
A buyer shares their copy or key Very common Per-buyer keys and machine limits (steps 1-2)
A jar gets reposted on a leak site Common Per-buyer keys, watermarks, takedowns (steps 1, 6, 8)
Someone deletes your license check Less common, easier with AI editors Core unlock and obfuscation (steps 4-5)
A determined cracker rewrites your code Rare Nothing fully.…