Getting the player who purchased your plugin

Discussion in 'Spigot Plugin Development' started by Multimap, May 28, 2017.

  1. On featherboard it says like licensed to then a link to their profile. How do you achieve this?
     
  2. Mas

    Mas

    When premium plugins are downloaded, the String "%%__USER__%%" will be replaced with the buyer's ID in the code.
     
  3. I don't really get it. You're saying that if I set a a string to "%%__USER__%%", it will return the buyer's ID?
     
  4. Code (Java):

    String userID = "%%__USER__%%"; // this will become the user's ID after being downloaded
     
    Spigot edits the bytecode when a plugin is downloaded, this means that it is able to change the value of this hardcoded string