How cand i give Fly without commands, automatic?

Discussion in 'Plugin Development' started by PresiCorrupto, Jun 25, 2014.

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

    PresiCorrupto

    How can i give Fly the first time a player join the server, automatic?
     
  2. Offline

    adam753

    Code:
    player.setFlying(true);
     
  3. Offline

    MCForger

  4. Offline

    PresiCorrupto

    Thanks.

    MCForger I downloaded a SourceCode, but im really noob
    Heres the code

    public void run() {
    if (PAndt.COUNTDOWN.intValue() > 0) {
    if (PAndt.COUNTDOWN >= 10 & PAndt.COUNTDOWN % 10 == 0) {
    PAndt.printTimeChat("Begins in "
    + PAndt.TIME(PAndt.COUNTDOWN) + ".");
    for (Player pl : PAndt.getGamers()) {
    pl.setHealth(20);
    pl.setFoodLevel(20);
    pl.setExp(0);
    pl.setRemainingAir(20);


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

    1Rogue


    That has nothing to do with flying
     
    AoH_Ruthless and MCForger like this.
  6. Offline

    MCForger

    PresiCorrupto
    You downloaded a source code? What do you mean by that?
     
  7. Offline

    PresiCorrupto

    That i downloaded the free source code of a plugin, well im noob, sorry for the problems :oops:
     
  8. Offline

    MCForger

    PresiCorrupto
    Have you tried following the bukkit wikis on creating your first plugin and messing around with commands and events?
     
  9. Offline

    PresiCorrupto

    No, but thanks for the information.
     
  10. Offline

    AoH_Ruthless

    PresiCorrupto
    You also shouldn't copy and paste source code blindly. You have no idea what it does, it's not going to magically work because it looks good. (Hint: You should also consider learning Java)
     
Thread Status:
Not open for further replies.

Share This Page