How to test your plugin without having a friend

Discussion in 'Plugin Development' started by GreatBlitz, May 8, 2014.

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


    Often, one needs to test a plugin which requires multiple people like TagAPI where you need to see someone else's name tag.What does one do in such cases? When none of your friends are online?
  2. Offline


    Ask for public server
  3. Offline


    log in twice, with another account
  4. Offline


    Easiest 2 options would be:

    1) Have another account. They're not actually all that expensive.

    2) Use offline mode. While it's not supported by bukkit, I don't see a real problem with having an offline mode local server that's purely for testing. Either way, you'll likely run into a time sooner rather than later that you want to test but the Mojang servers are down :p Of course, you'll likely run into problems if you want to test UUID stuff.
  5. Offline


    you can earn money for second account in single workday...
  6. Offline


    I have used this plugin in the past not sure if it will do what you need it to but give it a go
  7. Offline


    Some people don't have jobs.

    I put my server to offline mode and then attempt to log in with a random account with MagicLauncher. It asks you if you'd like to play in offline, and I click yes.

    You can do this or get a friend to do it. From personal experience, it's easier to do it in offline mode because you already know the commands and what you're trying to test.

    If you're trying to test a large plugin that needs beta testing, you could possibly find a server and ask them if you could test it on their server.
  8. Offline

    1Rogue Retired Staff

    I have a batch script that I use to launch with whatever name I want (for offline mode testing servers only). I'll edit it in here when I get back to my home computer.
    ZeusAllMighty11 likes this.
  9. Offline


    I didn't get you.
    1. I'm only 13 so no, my parents bought me an account only I requested them a lot.
    2. Okay so I put the server in offline mode but how do I get a player?
    I'm 13 -.-
    That is always an option, nice idea.
    Thanks a lot!
    Wait, so by launch you mean the server or the client?
    When you reply next can you explain this stuff?
    I just saw the plugin page. Might come in handy later on, but not now because I need an actual player to be "seen" in the game. Ty anyway!

    Thanks all of you guys!
  10. Offline

    1Rogue Retired Staff

    Using windows:

    set USERNAME=Testing
    set VERSION=1.7.5
    set MCDIR=%APPDATA%/.minecraft/
    set GAMEDIR=%MCDIR%/versions/%VERSION%/
    set NATIVES=%GAMEDIR%/natives/
    java -Djava.library.path=%NATIVES% ^
    -cp %GAMEDIR%/%VERSION%.jar;^
    %MCDIR%/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar ^
    net.minecraft.client.main.Main --username=%USERNAME% --version %VERSION% --gameDir %MCDIR% --assetsDir %MCDIR%/assets --userProperties {} --accessToken offline
    Just save it as a bat file. All you need to really change is the VERSION and USERNAME variables to change how the game launches.
    ZeusAllMighty11 and LordVakar like this.
  11. Offline


    If you're a kid, go mow a lawn or two. Or shovel some snow. Or find some other "kid" way to earn money. Perhaps even get a job at a fast food restaurant or grocery store. If you're an adult, you probably have bigger problems than Minecraft accounts.
  12. Offline


    1Rogue Adding in a /p parameter to one or two of those set commands might go a long way ;) Other than that, useful batch

    EDIT: Also, the first one in your classpath assumes 1.7.5 even though you have a version variable. :)
  13. Offline

    1Rogue Retired Staff

    Fixed, I added in the version variable for flexibility here, I had it hardcoded before
    AdamQpzm likes this.
  14. Offline


    This is true. But he still shouldn't have assumed that everyone has a job that they can freely buy a few accounts with.
  15. Offline


    I don't see how he assumed that.
  16. Offline


    Offline mode.
  17. Offline


    I have to keep mine in online mode because people know about my test server and might bypass the whitelist...
    Also I can't switch between online and offline anymore.
  18. Offline


    Copy your server, change port, delete all user configuration, change to offline mode, start server, start multiple instances of cracked launcher and you're done.
  19. Offline


    I'd have to delete my entire test database and re-do all ranks every time I wanted to use offline mode. I don't do my testing with normal plugins. I prefer using my custom ones which require said database for admin permissions. And, again, it's insecure.
  20. Offline


    changing port on test server is good way to get rid of unwanted visitors on tests.

    UUID stuff will require multiple valid acounts to test.

    if you really want to test stuff, you are free to alter code of mojang launcher to allow any nickname and any password to pass verification.

    also there are mods about changing nickname at runtime (outdated) since nickname stored inside simple string field and can be changed without any issues.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jun 8, 2016
  21. Offline


    well, if you "prefer" to use your database and care so much about "security", go ahead and buy extra accounts.
  22. Offline


    You can also write plugin to connect online-mode and offline-mode
    So premium players are logged as premium. (With UUID, and everything)
    pirate (Yep, no-premium is't real :p) players are logged as no-premium

    And then nobody can login to your premium nickname, and just use whitelist for pirate (no-premium)

    PS: and use plugins like LogIt, AuthMe, xAuth for (only) pirate players :p
  23. Offline


    It's easier to just leave my custom system on than switch between it depending on what plugins I'm working on.

    And I already have bought extra accounts.
Thread Status:
Not open for further replies.

Share This Page