Inactive [ADMN/MISC] GuestLock v0.1 - Make guests read your rules. [1337]

Discussion in 'Inactive/Unsupported Plugins' started by NuclearW, Aug 17, 2011.

  1. Offline

    NuclearW

    GuestLock - Make guests read your rules.
    Version: v0.1

    GuestLock lets you set a message to be shown to guests and a command they must use in order to be able to move. This lets you point them to a rules page or such to find the command they need in order to be able to move.

    GuestLock supports language translation: Simply edit the "lang" file to change anything GuestLock says.

    GuestLock has been translated into Polish:

    If you translate this plugin I would be very grateful if you would send me your lang file so that I may share it with others in this post.

    GuestLock uses Bukkit Permissions, so any Bukkit Permissions provider will work with GuestLock.

    Features:
    • Lock guests in place until they use a command.
    • Configurable command and message
    Commands:
    • Changeable in the config file, will unlock a player when used.
    • Default is: /ilikethisplugin
    Configuration:

    By default, GuestLock will create a 'config' file and a 'lang' file on run, the defaults are as such:
    You need to change the find-command line to point users are your website or rules page, and the secret-command to whatever secret word you want them to have to use to unlock themselves.

    Then, for the user, they need only use /<secretword> in-game to unlock themselves.


    Download GuestLock

    Changelog:
    • Version 0.1
      • Initial release.
    GuestLock was suggested by @Nipper
     
  2. Offline

    PatrickFreed

    Brilliant. What's the permissions node though?
     
  3. Offline

    NuclearW

    No node, it simply keeps a tally of anyone who hasn't used the command before, so everyone will have to do it at least once.

    Might throw your users for a spin, but how much harm will making them read the rules again really do?

    Thanks for the comment, also.
     
  4. Offline

    morizuki

    can u support spaces on the secret command?
     
  5. Offline

    NuclearW

    It already does!
     
  6. Offline

    SwearWord

    Do you hook into Player_Move.....
     
  7. Offline

    Nipper

    @NuclearW TY Vary much. I will have to get my server updated to 1060 before I can give it a go. Just waiting for a few others to update up to 1060.

    Edit:
    I was testing and I think I found a flaw. Well not so much of a flaw.
    I made a test server just that plugin nothing else. The spawn point was above water. Due to the rubber banding effect it kicked me for flying. So I turned allow fly on. But the rubber band effect is still there. Is there a way you can make it if it rubber bands the person that it would check to make sure there is a block they could stand on first below them. I will try and test it with a setspawn plugin to see if this effect still happens.

    Edit2:
    I used commnadbooks ./setspawn command and set it on solid ground to to see if it would have solve the rubber banding issue from dropping just one block over water. It did stop it. So might want put that in the docs to make sure your spawn is not up in the air or over water.
     
  8. Offline

    Randy Schouten

  9. Offline

    NuclearW

    Yes, because that was what was asked for in the request.

    I would rather have not done so, in fact, I'll put it on my list for 0.2: Config option to not hook the move event.
     
  10. Offline

    SwearWord

    Most plugins just schedule an event when an offending player joins that ticks every second and resets their position. No need to check everyone's movement all the time.

    Hooking into Player_Move guarantees you a spot in Hell, just saying.
     
    Kohle likes this.
  11. Offline

    NuclearW

    Alright, if people report massive lag issues I'll change it, until that time it works as-is.
     
  12. Offline

    DrBowe

    @SwearWord

    PLAYER_MOVE isn't so bad to the point that he can't make one simple check for every movement. From what I understand, people have gotten away with a lot worse inside of onPlayerMove
     
  13. Offline

    NuclearW

    I have one line which gets me O(1) time on a check if they should be blocked, I'm not seeing many issues with it.

    I understand PLAYER_MOVE done wrong is bad, but to avoid it at all costs is just silly.
     
  14. Offline

    Nipper

    Just tested and working on my server in build 1000 so might want to add that to the topic. I have been to lazy to update to 1060 due to plugins being out of date.
     
  15. Offline

    SwearWord

    Why not avoid it when you can in a simple way? It's a good practice imo.
    Whatever, it's your plugin.
     
  16. Offline

    NuclearW

    I have and do for the bigger plugins I make which rely on player location, just not this one.

    Thanks to @TGF for the polish translation.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  17. Offline

    zecheesy

    WOW. Just set their rank so "Build" is "false".............
     
  18. Offline

    Kiiirk

    i don't have the option to edit the config??
     
  19. Offline

    NuclearW

    Do you have proper access to your server?

    You should talk to your server host if you cannot modify the config file.
     
  20. Offline

    xsebixx

    Hi can you please make a secound plugin, wich is exactly same like that, only users can move and chat. Can you make, that a Guest type in for example /ilikethisplugin and after he isnt in the Guest group (Permissions,Groupmanager). Now he is in the Builder group. Do you know, what i mean ?
    Sorry for my English i'm German :D When you can make this for me, so i hope you contact me under the mail [email protected], thanks
     
  21. Offline

    joar1001

    My players can't use commands. So whent they type / and the password it says that they don't have rights or something!!!!
     
  22. Offline

    NuclearW

    Could you provide more information? What version of CraftBukkit are you using? What is in your config? What happens when they use a command? Are there any errors that show up in console? If so, what is the error?
     
  23. Offline

    kahlilnc

    Could there be a permissions node for bypassing it :D I dont want every player already on server to have to do this. ;(

    @NuclearW thought I had to notify you :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  24. Offline

    mrgreaper

    @NuclearW i really need to add a fake player to the list for one of our mods but it wont let me ...if i edit the file it corrupts it . .please add a way for us to add players to it or set players to be bypassed!
     
  25. Offline

    NuclearW

    kahlilnc likes this.
  26. Offline

    kahlilnc

    Well all existing daily returners have lol. but nice plugin :D
     
  27. Offline

    mrgreaper

    thnx, though a way to add players to the list manualy would help

    i took my server to online false logged in to create Player on the auth file changed that to Blayer (anything les chars messed up the file) renamed the mod to use the player name Blayer and all is fine (back on online mode)

    can i suggest a simple yml file or text file for the auth as the one at the moment really hates being edited lol

    oh and nice plugin really helps keep griefers away!
     
  28. Offline

    NuclearW

    Right now it's a serialized object but I'll see what I can do about making commands.
     
    mrgreaper likes this.
  29. Offline

    kahlilnc

    @NuclearW could you get this to spam less?
     
  30. Offline

    jaboy

    i have some requests :p

    can you make it so its only enabled in one world (by permission or some kinda config) ?!

    add an command for making a new "secretword" ?!
    add an command for deleting the database so everyone has to retype the "secretword" ?!

    Why i need the first one: all my visitors spawns in a world where they can't build but they can go to our playground where they can build all they want ..... thats where i want this pulgin to "stop" them

    i need the two others because admins update the rules a lot :eek:
     

Share This Page