Solved Login 2 times on own server, for testing

Discussion in 'Plugin Development' started by Banjer_HD, Aug 5, 2017.

Thread Status:
Not open for further replies.
  1. Hello there!

    Is it possible to join you own server 2 times without having multiple accounts? Some times you need to test but you only have one alt, is there any way?

    Thank you for reading!

    EDIT: Also, is it possible to make a 'fake' OfflinePlayer, becouse I want to use the code
    Code:
    if(Bukkit.getOfflinePlayer(args[1]).hasPlayedBefore()) {
    
    without having 2 accounts
     
  2. @Banjer_HD
    To fake the various Bukkit objects, I recommend writing some unit tests with a mocking library like Mockito (you'll probably need PowerMock too, since a lot of objects can't be mocked without it).

    As for joining the server several times, no, it is not possible, unless you run offline mode and have a modified client to use a different name than the legit account.
     
  3. Thanks for you reply! but I think I fixed the problem without a modified client....

    https://gaming.stackexchange.com/qu...ername-in-offline-mode-in-minecraft-1-6-and-l

    And it totaly works, fixed :)
     
  4. @Banjer_HD
    Ah, well, I think that's sort of on the boundary to a modified client, you mess with the launcher arguments and disconnect your internet :p
     
Thread Status:
Not open for further replies.

Share This Page