Adding Extra Slots to certain users?

Discussion in 'Plugin Development' started by DragsZombies, Mar 18, 2013.

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

    DragsZombies

    I'm making a plugin for a friend, and they wanted to have certain people, like donators, be able to join the server even when it's full. I know ops can do this, but it's really hard to "op" someone who you know might abuse the power. I've tried using VIPSlots but it's really buggy, and there are some thing's I can add that VIPslots doesn't have.

    I don't need help doing the entire thing, I just need to know how I can achieve this tricky part of coding. I would look in the file that allows ops to join a full server, but I just cannot find it.

    I really appreciate the help.
     
  2. I think you can use PlayerLoginEvent then check if the player has the required permission and then you can use event.allow() to allow the player.
     
  3. Offline

    DragsZombies

    Really? That's great! I'll try it! Thanks You really helped me with this!
     
  4. Or, as an alternative solution... make them OP while they're offline and non-op while online.
    The way this works is when they disconnect you set them as OP, when they next join you listen for PlayerJoinEvent and the permission that only allows them to be temporary offline-op and de-op them so they can't use OP in-game, it just allows them to use it to join.

    Might not be as reliable as it sounds but you should try the other way first and leave this as a last resort.
     
  5. Offline

    DragsZombies

    I like your idea's Digi, and I'll be glad to try both. Also, I have a question. Since I'm newish to coding plugins, How would I update them? Especially the one that I'm working on currently?
     
  6. Update what ? Your plugins would rarely need updates because of game or API changes, depends on what you were doing and what was added to the game.

    In this exact case you won't need to update the plugin for a long time, but it would be better if you added new features and stuff.
     
  7. Offline

    DragsZombies

    Great! You wouldn't happen to know how to set up the command for this right? I'm not familiar with commands yet.
     
  8. Offline

    CreeperShift

    http://wiki.bukkit.org/Plugin_Tutorial there is a whole section dedicated to commands :)
     
  9. Offline

    DragsZombies

    Alright thank you CreeperShift! :D
     
  10. Offline

    xXMaTTHDXx

  11. Offline

    DragsZombies

    I appreciate it, but the one I'm coding is a bit different. When I started this, that plugin wasn't posted yet. I'm glad you posted it, but I know a few more things I can add to benefit my plugin.
     
  12. Offline

    xXMaTTHDXx

    Ok good luck!
     
  13. Offline

    DragsZombies

    Thank you! :D I hope you do good with whatever it is that you are doing.
     
Thread Status:
Not open for further replies.

Share This Page