Home Plugin with a few extra features.

Discussion in 'Archived: Plugin Requests' started by DangerfieldUK, Oct 12, 2014.

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

    DangerfieldUK

    I am looking for a home plugin, with a few extra features.

    What I want people to be able to do:

    /home
    /home set
    /home delete
    /home move (or /home move playname (for staff to relocate someones home))
    /home invite playername (gives the invited player access to the below command)
    /home playername (teleports to players home depending on factors such as public/private and invite/no invite)
    /home uninvite playername (removes player permission to teleport to persons home if previously invited)
    /home public/private (allows people to teleport here (public: without an invite, private: with an invite)

    Of course, all homes should be accessible to staff members via permissions. Each player will only have ONE home (this includes all staff and owner), as extra teleports may be assigned via warps.

    Is this possible, and if so, how hard would it be to do?
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    DangerfieldUK

    timtower I don't know anything about coding so for all I know, I could be asking the impossible. haha

    I mean like, what is the difficulty of this plugin and chances of someone actually taking the time to make it?
     
  4. Online

    timtower Administrator Administrator Moderator

    DangerfieldUK Difficulty level is a relative thing on here. Just be patient.
     
    VG.Developments likes this.
  5. Offline

    DangerfieldUK

    timtower Ok, thank you.

    I'm new to the forum side of Bukkit so sorry if I seem a bit uninformed.
     
  6. Online

    timtower Administrator Administrator Moderator

    DangerfieldUK Then a summary of the rules:
    Don't bump within 24 hours.
    Never ask for or offer money.
    Don't be rude.

    That is pretty much it. Welcome.
     
    glasseater and klosjaarrr like this.
  7. Offline

    DangerfieldUK

    Sounds like a pretty nice forum to be a part of!

    Happy to be here :)
     
  8. Offline

    DangerfieldUK

    Do people let you know if they are working on something? If so, please let me know if you are going to :)
     
  9. Online

    timtower Administrator Administrator Moderator

    DangerfieldUK likes this.
  10. DangerfieldUK Hey, I haven't had time to actually test this, but the plugin starts up with no errors so that's not a bad sign :p https://www.dropbox.com/s/p6lik09gsreel3a/HomeInvite.jar?dl=0

    Sorry I didn't have time to test, been a busy day, but let me know if you run into any issues. :)

    Commands:

    /home - Teleport to home
    /home <player> - Teleport to a player's home if you have staff permission, have been invited, or it's a public home
    /home set - Sets your home to your current location
    /home set <player> - Sets someone else's home to your current location
    /home invite <player> - Allows a player to access your home
    /home uninvite <player> - Revokes visiting privileges
    /home public - Makes your home public
    /home private - Makes your home private

    Permissions:
    homeinvite.set - Allows you to set a home
    homeinvite.set.others - Allows you to set someone else's home
    homeinvite.invite - Allows you to use /home invite
    homeinvite.uninvite - Allows you to use /home uninvite
    homeinvite.toggle - Allows you to set your home to private/public
    homeinvite.anyhome - Allows you to teleport to anyone's home
     
  11. Offline

    DangerfieldUK

    Oh so fantastic! I will test this out now! :)

    Thank You!

    AdamQpzm timtower The server is using essentials home and I am having trouble disabling it, any ideas?
     
  12. DangerfieldUK Essentials is a nice plugin that should disable its home command by itself since it detects my plugin wants to use /home... failing that, there is also a part in the config somewhere that enables you to disable some of the essentials commands. Simply add home to that list.
     
  13. Offline

    DangerfieldUK

    AdamQpzm Sounds good. I am having a few troubles with getting the permissions to work, however I think that might be me. When I type them in, they come up red.
     
  14. DangerfieldUK I'm guessing you mean they come up red in your text editor? If yes, then this means that your editor detected an error in the file. Upload your permissions.yml file to a YAML validator (like this one: http://wiki.ess3.net/yaml/) and it should tell you what's wrong. :)
     
  15. Offline

    DangerfieldUK

    It's alright. I just added the commands via the commands in game (WOW it's so much easiers).
    And it's working fine so far, just need someone to come on and help me test it as I need someone else to set a home.

    AdamQpzm One issue I've found so far: Homes reset after relog.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  16. DangerfieldUK That's weird, they shouldn't do... can you post your latest.log file to gist.github.com so I can take a look at it?
     
  17. Offline

    DangerfieldUK

  18. DangerfieldUK Ah I see the problem. I'll fix it up when I get home. FYI, unofficial builds & offline mode aren't supported, and might cause problems with the plugin since the plugin uses UUIDs to identify people. :)
     
  19. Offline

    DangerfieldUK

    @AdamnQPZM what do you mean by unofficial builds? Also, does that mean that players cannot teleport to someone elses house whilst they are offline?

    More issues:
    • Players do not have permission to teleport to others homes when invited unless they have the home invite. any home permission which then bypasses the invites system.
    • Players are not notified when invited.
    • /home set <playername> sets the home at the position of the player who's name was entered rather than the player setting the home.
     
  20. DangerfieldUK Unofficial builds being non-CraftBukkit builds, such as Spigot. And yes, that is true. I'm not sure how well that'd work, especially on an offline server.
     
  21. Offline

    DangerfieldUK

    AdamQpzm I see, I have updated the previous post with some more issues. :)
     
  22. Offline

    DangerfieldUK

    AdamQpzm Thank You Adam, I really do appreciate it.

    AdamQpzm It's still removing the homes after restart.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  23. Maybe you did forget

    Code:
    public void onDisable() {
       
            saveDefaultConfig(); (if you are using default config, if not use your custom save)
     
    }
     
    DangerfieldUK likes this.
  24. DangerfieldUK Ah my mistake - same link, I've tested it and it works now :)

    MaTaMoR_ Nope, I save my config in various places. Also, iirc, saveDefaultConfig() is only made to check if the config file exists, and create it if it does not. So it's best to do in in onEnable() not onDisable() but thanks for trying to help :)
     
  25. yes my f
    My fault y mean saveConfig();
     
    AdamQpzm likes this.
  26. Offline

    DangerfieldUK

    AdamQpzm It worked! The homes are staying even after reset! :) Now, I'll try and find someone to come and help me test the other commands that require 2 people.

    AdamQpzm Tested every situation I could come up with and everything worked perfectly! :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
    AdamQpzm likes this.
  27. Offline

    DangerfieldUK

    AdamQpzm I just thought of another feature that would be quite good:

    /Home name request - allows the player to request an invitation to the persons home.
    /Home uninviteall - uninvite everybody from your home (will be bypassed by homeinvite.anyhome permission)
    /Home accept-deny - Accepts or Denies the request for an invitation/gives invite to requesting player or doesn't.

    A note for the requests: If a player denies your request for a home invitation, you will not be allowed to send another home request to that person for 50 hours.

    If you would add these, I would really appreciate it. Thanks :)
     
  28. Offline

    DangerfieldUK

Thread Status:
Not open for further replies.

Share This Page