Command list

Discussion in 'Plugin Help' started by Harviy, Nov 19, 2016.

  1. Infernus101

    Infernus101 Witch

    Messages:
    54
    GitHub:
    infernus102
    PHP:
    $event->setCancelled(true);
    Didn't work either :/
     
  2. gurun

    gurun MiNET

    Messages:
    20
    GitHub:
    niclasolofsson
    Yeah, sorry, but I can't really debug the code from remote. I don't want to earn the trophy of "Spoon feeder". But you are on the right track, so just start debugging. You'll get there.
     
    Infernus101 and HimbeersaftLP like this.
  3. Intyre

    Intyre Administrator Staff Member PMMP Team

    Messages:
    81
    GitHub:
    Intyre
    Works fine for me. Maybe you should add some debug output to your code.
     
    gurun and Infernus101 like this.
  4. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    There are a few ways to do this:
    1. Send AvailableCommandPacket with an empty string for the first field
    2. Send 0 for commandsEnabled in StartGamePacket on join
    3. Send SetCommandsEnabledPacket with the enabled field as 0
    4. [insert other methods here]
     
    gurun likes this.
  5. Infernus101

    Infernus101 Witch

    Messages:
    54
    GitHub:
    infernus102
    Please give the code for any one of the method @dktapps
     
  6. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    They are actually already obvious enough. If you understood the code you wrote in the code you asked @gurun about, you should be able to write the code for all three methods, at least easily 2 and 3.
     
    gurun likes this.
  7. Infernus101

    Infernus101 Witch

    Messages:
    54
    GitHub:
    infernus102
    I didn't write it, @Harviy did, i don't understand DataPackets Events. Please, help.
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
     
    gurun, HimbeersaftLP and dktapps like this.
  9. Infernus101

    Infernus101 Witch

    Messages:
    54
    GitHub:
    infernus102
    It worked! In your face :cool:!
     
  10. gurun

    gurun MiNET

    Messages:
    20
    GitHub:
    niclasolofsson
    What worked?

    Whose face are you talking about? What do you mean?
     
  11. Infernus101

    Infernus101 Witch

    Messages:
    54
    GitHub:
    infernus102
    It's mostly a matter of attitude. Basically, me looking at that reply, would say it's @SOFe face. However, it might be that you, looking at that reply, would think it's your face. I believe the fault could be one of expectations. Basically i expect it to do something different than you do, hence it is working for me. Just a matter of attitude.

    So you are faced with 1 of 2 choices here. Either change the reply in your head to match your expectations of how it should work, OR change your expectations to match how the reply actually works.

    Your choice.
     
  12. gurun

    gurun MiNET

    Messages:
    20
    GitHub:
    niclasolofsson
    You are correct, it's all about attitude. I'm just trying to establish if it's an attitude towards the people spending time trying to help you code that would create the expectation of a ban.
     
    dktapps, SOFe and Infernus101 like this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.