Solved Anti-Piracy

Discussion in 'Spigot Plugin Development' started by ApplePie, Jul 1, 2016.

  1. Hello.
    Is there anyone who would happen to know how to make an Anti-Piracy system?
    I read that you would need to create a string, that would change according the player who purchased the plugin. I am just wondering how I would do that.
    Is there anyone who can give me a brief tutorial?
  2. Code (Text):
    final String userid = "%%__USER__%%";

    List<String> blacklist = getBlacklistFromYourWebsite();
    if (blacklist.contains(userid))
  3. Yes, but how do I set the String to the players user ID everytime someone buys the plugin? I don't think it does that automatically.
  4. with premium sigot resources, when somone downloads the l;ugin the site auytomatically replaces the string value with their spigot id.
    • Winner Winner x 1
  5. Oh, thanks!
  6. Just saying: that form of protection is so basic, it is worthless. Java code can easily be decompiled, changed and compiled if you don't use hard obfuscation - and even then it's more or less easy to crack it.
    • Agree Agree x 2
    • Useful Useful x 1