Solved Help for Bukkit.getServerID();

Discussion in 'Plugin Development' started by BierGarten100, Jan 18, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    BierGarten100

    Hi there,

    why gives me Bukkit.getServerID(); the output unnamed?
    I would like to have the server's unique ID.

    Unfortunately I don't know what a ServerID looks like.

    So how do I get the ServerID from a Minecraft server?
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    BierGarten100

    @timtower i need a serverid for a unique Plugin check.
    I only want to create the plugin for a specific person whose server will not change.
    So if one of its developers copies my plugin and uploads it to its own server, the plugin should no longer work at the end because the ServerID does not match.

    So when the plugin is loaded for the first time, the server ID is registered in my database and only this server ID can access it. Saving a ServerID in the Config is not an option, since it could be copied at the end.
     
  4. Online

    timtower Administrator Administrator Moderator

    @BierGarten100 Thing with that check: server id will probably be different between every run.
    The developer should be able to remove the check within an hour.
     
  5. Offline

    BierGarten100

    @timtower The check runs on an external server that belongs to me. I really only need the unique server id to make a copy of the plugin difficult. :'(

    And btw., its developers are not the smartest. :'D
     
  6. Online

    timtower Administrator Administrator Moderator

    @BierGarten100 There is no unique server id.
    And then they can get somebody else to do it for them.
     
  7. Offline

    BierGarten100

    @timtower Then why is Bukkit using this method? (Bukkit.getServerId();)

    EDIT: I use now the MAC from the Server. It's simple but helpful. ;)
     
    Last edited: Jan 18, 2020
  8. Online

    timtower Administrator Administrator Moderator

    @BierGarten100 Is it using it or does it just exist and has it no specific implementation?
     
Thread Status:
Not open for further replies.

Share This Page