HarksmauPlugin Bukkit Code

Discussion in 'Bukkit Help' started by Hark Collins, Feb 28, 2015.

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

    Hark Collins

    This is the code I got so far.

    Code:
    import:bukkitJoinEvent()
    if(playerJoinEvent()){
    hideChat()
    concmd("freeze" + getName()")
    print(chatColor(RED) + "Please enter the following code to prove that you are human:" + chatColor(BLUE) + "TEX92")
    }
    if(lastSaid("TEX92")){
    hideChat()
    print(chatColor(GREEN) + "You have entered the correct code! You may now talk."));
    return.true
    else
    hideChat()
    print(chatColor(RED) + "That was the incorrect code or your not able to talk yet. Please enter the correct code.");
    return.true
    }
    if(playerQuitEvent()){
    concmd("ban" + getName());
    return.true
    }
    
    CODE VERSION 2.

    Code:
    if(playerJoinEvent()){
    print(chatColor(RED) + "Please enter the following code to prove that you are human:" + chatColor(BLUE) + "TEX92")
    }
    if(lastSaid("TEX92")){
    print(chatColor(GREEN) + "You have entered the correct code! You may now talk."));
    return.true
    else
    print(chatColor(RED) + "That was the incorrect code or your not able to talk yet. Please enter the correct code.");
    return.true
    }
    if(playerQuitEvent()){
    concmd("ban" + getName());
    return.true
    broadcast(chatColor(RED) + getName() + "was banned for not doing the captcha.");
    return.true
    }
    }
    thaend
    
     
    Last edited: Mar 2, 2015
  2. Offline

    Gamecube762

    Mind explaining the problem and your goal? as far as I see it, this code will do exactly what is typed: It will throw errors and won't compile.

    I also suggest using the [code=java][/code] tags when you want to show code so it's easier to read.
     
    Last edited: Feb 28, 2015
  3. Offline

    Hark Collins

     
    Last edited by a moderator: Mar 1, 2015
  4. Offline

    Gamecube762

    @Hark Collins No need to post your code multiple times.

    Telling us the problem you are having and what you are trying to achieve with this code will help us fix the problem.

    It also seems you are not using Java to code this, mind telling us what you are using?

    Also, @Tahg or quote a user so they can see the message you posted.
     
  5. Offline

    Hark Collins

    Well how do you get the captcha?
     
Thread Status:
Not open for further replies.

Share This Page