Fake players

Discussion in 'Plugin Development' started by coldandtired, Oct 12, 2011.

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



    I'm currently writing my first plugin, and have hit a small issue.

    Is there any way of spawning fake players onto a server? I need this for testing purposes, and I don't have my own server (only a local one to test) to mess around on.

    The players don't have to do anything, I just need some names to interact with.
  2. Offline


    If your pc has the power to run multiple minecraft clients, try this:

    1. Run in offline mode. Don't worry, it's safe, it's only to log in the dummy accounts.
    2. Save the following as a .bat file:
    java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft "Dummy"
    3. Repeat 2, replacing Dummy with other names as needed. If no more are needed, proceed to step 4.
    4. Log into minecraft, connect to localhost with your test server running.
    5. Repeat 4, but with the clients opened by the .bat file(s) you made.
    6. ???
    7. Profit!
  3. Offline


    Yeah, if you only need them to mess around with, then I'd say go for this.
  4. Offline


    Thanks for this, I'll give it a go this afternoon :)
  5. Offline


    Or you could use the Citizens plugin.
  6. Offline


    Tried Citizens, but I need the players to show up as real players (it's an admin plugin I'm writing) so they need to be bannable, teleport-able, etc.

    I tried this but the .bat file gives an error when run that it can't find or load the main class in lwjgl.jar.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 20, 2016
  7. Offline


    I think you can run minecraft once as your user and once without a username and then offline and try logging on to the server in both of them
Thread Status:
Not open for further replies.

Share This Page