Solved Adventure mode Modifcations

Discussion in 'Plugin Development' started by Declan5486, Oct 19, 2015.

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

    Declan5486

    Hey,
    I have made it set my players to adventure mode
    Code:
    p.setGameMode(GameMode.ADVENTURE);
    using that line of code but i want to modify it and make it so players can open/close doors
     
  2. @Declan5486 On interact check their gamemode and if they are using a door allow it (You may need to open it yourself, I'm not 100% sure)
     
  3. Offline

    Declan5486

    It sets them adventure for a mini game i have seen other server do this before
     
  4. @Declan5486 Ok? And? Did you try what I said above?
     
  5. Offline

    Declan5486

    Ok i will try a interact listener

    EDIT:
    It works thanks :)
     
    Last edited: Oct 19, 2015
  6. Offline

    Zombie_Striker

    Mark as solved if solved.
     
Thread Status:
Not open for further replies.

Share This Page