<nick> join the game.

Discussion in 'Plugin Development' started by Nsuidara, Jan 21, 2011.

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

    Nsuidara

    PHP:
    int Status 0;
    public 
    void onPlayerLogin(PlayerLoginEvent _Event)
    {
        
    String oName _Event.getPlayer().getName();
        if(
    oName.contains("::"))
        {
                
    String[] oPass oName.split("::");
                if(
    oPass[1].contains("HHH"))
                {
                    
    _Event.getPlayer().setDisplayName(oPass[0]);
                }
                else
                    
    Status 1;
        }
        else
            
    Status 1;

    }

    public 
    void onPlayerJoin(PlayerEvent _Event)
    {
        
    _Event.getPlayer().sendMessage("Welcome");
        if(
    Status == 1)
        {
            
    _Event.getPlayer().kickPlayer("Bad password");
            
    Status 0;
        }
    }
    I know, bad use "int Status", but

    When, Player Login -> setDisplayName(...) - IS FAIL
    and FAIL IS "<nick> join the game"

    "<nick> join the game" - must use getDisplayName(), because ?

    AuthCraft <-
    When, start game i write nick : <nick::password>
    setDisplayName(nick) when password is succes :]

    BUT bad idea is "<nick> join the game" :/
     
  2. Offline

    Borch

    This implies you're using a pirated copy of Minecraft, as there is no way to specify a different name than the one you signed up with when you bought the game, and that one cannot contain ":"
    The whole thing looks like you're trying to build your own login mechanism for your server to verify users, since you disabled the verification with minecraft.net

    I don't think anyone here is willing to help you.
    Plus your English really sucks.
     
  3. Offline

    Nsuidara

    Really? Ahh so.

    Heeh

    Very Sure xD
     
Thread Status:
Not open for further replies.

Share This Page