Inactive [TP] MultiHome v0.11.3 - Multiple personal named home locations [2058 / 1.2.3-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by MadManMarkAu, Apr 2, 2011.

  1. Offline

    MadManMarkAu

    MultiHome - Multiple named home locations:
    Version: v0.11.3

    This plugin is much the same as other multi-home plugins, except this plugin supports named home locations and home sharing. no longer do you need to keep a list of which home number is for what location; why not simply name the location from the start?

    When the plugin generates it's data files for the first time, it will import and convert your home locations if you use Essentials or MultipleHomes.

    To enable home-on-death, set enableHomeOnDeath, under MultiHome, in the config file to "true" and give the appropriate users the multihome.homeondeath permission.

    All test displayed to the user can be fully customized. This also allows for translations to other languages!

    Acknowledgements
    Sleaker: Too much to list here... Heaps of stuff. You rock!
    HereInPlainSight: Submitting a pull request to add PermissionsBukkit support. Also a pull request for new event system.
    Maxis010: For providing basic support in this thread.

    Donate:
    Donations help with development of this and other plugins, as well as the upkeep of our server. They're completely optional and give you that feel-good feeling we all know and love. :)

    [​IMG]

    Features:
    • Supports multi-world.
    • Multiple per-user home locations.
    • Home locations use names rather than numbers.
    • Can respawn player to their default home upon death.
    • Forwards-compatible with SimpleHome data file format. Simply replace "MultiHome/homes.txt" with the homes.txt from SimpleHome to migrate.
    • Can list and delete home locations.
    • Optional warm-up, cool-down and max-homes settings for all Permissions groups. Global settings for undefined
    • Automatically imports home locations from Essentials, MyHome and MultipleHomes data directories.
    • Can invite players to your home. Can globally invite all players to your home. Can impose a time limit on invites.
    • Every piece of text displayed to the player can be customized!

    Download: http://dev.bukkit.org/media/files/579/623/MultiHome.jar

    Source Code: https://github.com/MadManMarkAu/MultiHome

    Todo:
    • Support for custom commands.
    • User-settable option to enable/disable spawn-to-home.
    • Lockable homes.
    • Persistant, user settable HomeOnDeath option.
    • Option to store home locations in MySQL database.
    • Settable message colors.

    Bugs:
    If you encounter bugs in my plugin, open an issue on GitHub: https://github.com/MadManMarkAu/MultiHome/issues

    Commands (open)

    Commands:
    • /home - Teleport you to your default home location
    • /home <name> - Teleport to a named home location
    • /home <player>:<name> - Teleport to another players home location if you have permission or an invite is open.
    • /sethome - Set your default home location
    • /sethome <name> - Set a named home location
    • /sethome <player>:<name> - Set a home location for another player. Requires permission. Leave <name> blank to set default home.
    • /deletehome <name> - Delete named home location.
    • /deletehome <player>:<name> - Delete another player's named home location. Permission required.
    • /listhomes - List home locations for yourself.
    • /listhomes <username> - List home locations for another player. Requires permission.
    • /invitehome {<user>|*} - Invite another user (use "*" for global invite) to your default home location.
    • /invitehome {<user>|*} <home> - Invite another user (use "*" for global invite) to your named home location.
    • /invitehometimed {<user>|*} <time> - Invite another user (use "*" for global invite) to your default home for a short time.
    • /invitehometimed {<user>|*} <time> <home> - Invite another user (use "*" for global invite) to your named home for a short time.
    • /uninvitehome {<user>|*} - Retract invitation for another player to visit your default home.
    • /uninvitehome {<user>|*} <home> - Retract invitation for another player to visit your named home.
    • /listinvites - List invites open to you.
    • /listmyinvites - List invites you have open to others.
    Permissions (open)

    Permissions:
    • multihome.defaulthome.go - Allow user to teleport to their default home location.
    • multihome.defaulthome.set - Allow user to create their default home location.
    • multihome.defaulthome.invite - Allow player to invite others to their default home.
    • multihome.defaulthome.invitetimed - Allow player to invite others to their default home with a timer.
    • multihome.defaulthome.uninvite - Allow player to retract invitations to their default home.
    • multihome.namedhome.go - Allow user to teleport to a named home location.
    • multihome.namedhome.set - Allow user to create a named home location.
    • multihome.namedhome.delete - Allow user to delete a named home location.
    • multihome.namedhome.list - Allow user to list their home locations.
    • multihome.namedhome.invite - Allow player to invite others to their named home.
    • multihome.namedhome.invitetimed - Allow player to invite others to their named home with a timer.
    • multihome.namedhome.uninvite - Allow player to retract invitations to their named home.
    • multihome.othershome.go - Allow user to teleport to another player's home without invite.
    • multihome.othershome.set - Allow user to create another player's home.
    • multihome.othershome.delete - Allow user to delete another player's named home location.
    • multihome.othershome.list - Allow user to list home locations of another user.
    • multihome.free.defaulthome.go - Teleporting to default home is always free.
    • multihome.free.defaulthome.set - Setting default home is always free.
    • multihome.free.namedhome.go - Teleporting to named home is always free.
    • multihome.free.namedhome.set - Setting named home is always free.
    • multihome.free.othershome.go - Teleporting to other players home is always free.
    • multihome.listinvites.tome - Allow player to list invites open to them.
    • multihome.listinvites.toothers - Allow player to list invites they have open to others.
    • multihome.ignore.cooldown[/B] - Player will ignore the cooldown timer.
    • multihome.ignore.warmup[/B] - Player will ignore the warmup timer.
    • multihome.homeondeath - Player will be taken to their default home when respawning.
    Changelog (open)

    Version 0.11.2
    • Consolidated MultiHome and MultiHome_m commands.
    • Fixed a permissions bug.
    • Improved compatibility for Essentials.
    Version 0.11.1
    • Plugin resends target chunk to clients one second after teleporting. Might fix teleport chunk glitches.
    Version 0.11
    • Updated to latest Bukkit version.
    • Trying a fix to alleviate missing chunk glitches.
    Version 0.10
    • Fixed a typo in handling "{AMOUNT}" payment tags.
    • Added support for Bukkit permissions and SuperPerms.
    • Switched to using "Register" for economy handling.
    • Added permissions list to plugin.yml (for Bukkit perms support).
    Version 0.9.7
    • Rewrote permissions nodes.
    • Fixed permissions loading and economy loading (or lack thereof).
    Version 0.9.6
    • Merged update from Sleaker.
    • Added economy support.
    • Added PermissionsEX support.
    • Bunch of tweaks.
    Version 0.9.5
    • Updated to CraftBukkit 953
    Version 0.9.3
    • Updated to CraftBukkit 798
    • Added importing of newer Essentials home formats.
    Version 0.9.2
    • Fixed cooldowns.
    Version 0.9.1
    • Fixed typo in permissions.
    Version 0.9
    • Massive code rewrite.
    • Added invite system.
    • More permissions.
    • Lots of stuff, some large, some small.
    Version 0.8
    • Optional home-on-death. Players can teleport back home rather than to spawn when dead.
    Version 0.7
    • Imports home locations from Essentials and MultipleHomes.
    Version 0.6.2
    • Fixed a bug where plugin wasn't honoring groups correctly.
    Version 0.6.1
    • Fixed unnecesary warp scheduling when warmup time = 0
    Version 0.6
    • Updated to CraftBukkit 670
    • Implemented new config file.
    • Per-group warm-up, cool-down and max-homes settings.
    • Split create and teleport permissions.
    Version 0.5.2
    • Fixed a bug to do with MultiHome loading before MultiVerse and removing all home locations.
    Version 0.5.1
    • Fixed listing homes when no homes set.
    Version 0.5
    • Added /listhomes and /deletehome
    Version 0.4
    • Added support for Permissions/FakePermissions
    Version 0.3
    • Homing from another world will now teleport between worlds before teleporting to home. Fixes a server bug when changing worlds and locations simultaneously.
    Version 0.1-0.2
    • I honnestly can't remember... Released, I guess?
     
  2. Offline

    MadManMarkAu

    Are you using the Help plugin ( http://forums.bukkit.org/threads/6536/ ) or the built-in Minecraft help command? I'm thinking of adding the Help plugin support.

    That's because Essentials uses the same commands as my plugin. EssentialsHome hasn't been updated to Bukkit 617 yet.

    Certainly a possibility, I'll look into this.

    My goodness, this would be awesome. I currently don't know the "proper" way to implement custom commands and still use the Bukkit config.yml command structure. I CAN do it with onPlayerCommandPreprocess, but that cuts out much of the Bukkit command system and might cause problems further down the track. This requires more investigation! Come, Watson, the game is afoot!
     
  3. Offline

    Darktrance

    is it possible to insert an Invite Feature to get another Member to my other Members Home Location?

    Regards Darktrance
     
  4. Offline

    zandoze

    How do u set the permissions, i have it loading but on the server pages, says permissions not set and then unloads?
     
  5. Offline

    Adam Bilbaeno

    Is there anyway you could create seperate permissions for teleporting to a home and creating a home?

    I don't want users to be able to teleport into protected structures they've built.
    But rather be able to teleport to a set number of home locations I've designated.
    Cities essentially.
    This is for pvp purposes.
     
  6. Offline

    handyplayer13

    Hi,

    I´ve got a problem with the functions "/listhomes" and "/delethome"!

    When I type "/listhomes", it only says "/listhomes", but nothing happens... :(
    When I type "/deletehome", it says "/deletehome location_name", but nothing happens...

    Do you have a solution for me?
     
  7. Offline

    MadManMarkAu

    What version of CraftBukkit are you using?
     
  8. Hi great plugin! Got a question though.

    Everytime i restart the server i lose my set homes and so does my players on my server. Is this a known error?

    I look in the text file and everything is there but it still says "No home set" and then i do /sethome and it adds it in the game and everything in the homes.txt is deleted and replaced by the new home location.
     
  9. Offline

    MadManMarkAu

    This means it's not loading the homes file correctly. I had this problem during development, but that was caused by a bug in the loading code. What version of CraftBukkit are you using, what operating system, which version of Java (type "java --version" into your shell)?
     
  10. Craftbukkit 617
    Windows Server 2008
    Java 6 update 22
    Craftbukkit installdir: D:\Craftbukkit\

    Need moar?
     
  11. Offline

    BiblicalFlood

    I am currently using bukkits built in help, but I am going to switch to help (used link just to make sure that's the Help everyone is talking about)
     
  12. Offline

    DaManWitDaPlan

    I keep getting this error. I'm new to Bukkit and Permissions, so pardon my ignorance...

    15:34:20 [INFO] Starting minecraft server version Beta 1.4
    15:34:20 [INFO] Loading properties
    15:34:20 [INFO] Starting Minecraft server on *:25565
    15:34:20 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-
    g4c7a9e7-b617jnks (MC: 1.4)
    15:34:20 [INFO] Preparing level "world"
    15:34:20 [INFO] Preparing start region
    15:34:20 [INFO] 144 recipes
    15:34:21 [INFO] [Permissions] version [2.1] (Handler) was Initialized.
    15:34:21 [SEVERE] PLAYER_COMMAND loading MultiHome v0.5.1 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_COMMAND
    at com.nijikokun.bukkit.Permissions.Permissions.registerEvents(Permissio
    ns.java:118)

    ...And it continues to list a long list of errors in the call stack. Any idea why this is happening?
     
  13. Offline

    MadManMarkAu

    I'd need to see more of the error stack to know for sure, but this seems to be a Permissions problem. What version of Permissions are you using? Are you using Permissions or GroupManager with FakePermissions?
     
  14. Offline

    Tony Xu

    Is it possible to limit people's home?
    For example, group moderator has 10 homes(max) and group default only have 5 (max)
     
  15. Offline

    handyplayer13

    I am using 617! ;)

    EDIT:
    I did anything, but I don´t know what!
    Now it works fine! :)
     
  16. Do you need more info on my side or did you get enough??
     
  17. Offline

    MadManMarkAu

    Nono, that info will do. Real life things have been keeping me busy for a couple of days, but I'm free for now. I'll look into it right now. Would you be willing to run a test version of the plugin with some logging enabled?

    I have a debug version available here: http://madmanmarkau.net/MultiHome.jar

    Download that one and install into your Bukkit server. Load your server, set a home location, reload your server, then stop your server. It will create a file in "MultiHome/trace.txt". Paste that file onto http://pastebin.com/ and post the link here.
     
  18. Offline

    Treksdot

    Can confirm this working with RB 670.
     
    SirMustachio likes this.
  19. Offline

    MadManMarkAu

    It seems the plugin can't find the world the homes are assigned to. This might be a CraftBukkit related bug, probably to do with capitalization. Have you recently altered, created or disabled any worlds? Are you somehow using a custom name for your Survival world?

    EDIT: It's not case related. I'm still looking into the cause of this.

    EDIT2: It's possible that somehow one of your other plugins are renaming the worlds when it loads. How, if at all, are you implementing multiple worlds?

    EDIT3: Okay, the only thing I can think of is your multiworld plugin isn't loading until AFTER MultiHome. What plugin are you using the enable multiple worlds? What order do your plugins load? Perhaps pastebin the output of your server startup?
     
  20. Offline

    MadManMarkAu

    Ahha, just as I thought. MultiHome is loading before MultiVerse has loaded, thus the home locations don't exist. I'll look into ways to get MultiVerse to load before MultiHome. It'll probably require my plugin to signal the plugin manager to load it.

    Done. New version released. 0.5.2

    I changed the way the plugin handles storing the home locations in memory. Before, I would create a Location object (which needs a reference to a loaded world) for each home when the plugin loads, but this was failing without MultiVerse loaded.

    It now stores the raw location information and only creates a Location object when one is needed (like when passing the location to the server). This means the home locations will still exist, even if the world does not, thus protecting your data.

    Also added warm-up, cool-down and home limits to the TODO list. Yes, I am working on these :)

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

    Maxis010

    Nice, now I can remove my dirty fix (renamed the jar to XMultiHome.jar)

    Oh and v1.5.2, don't you mean v0.5.2 as you put in the OP?
     
  22. Offline

    MadManMarkAu

    Ah, yeah I did. Fix'd.
     
  23. Offline

    AmazingHayman

    Its like the MultipleHomes Plugin I think.
    But I like it that users are able to give their homes names and that users are able to have a list of their homes.

    When theres a feature which limit the homes for every group I'll install it on my server.
     
  24. Offline

    MadManMarkAu

    Massive update, can't be bothered to tag all the post it applies to. But anyway, new version! Implemented warpups, cooldowns and max homes by group. Split permissions into creating and warping permissions.
     
  25. Offline

    AmazingHayman

    I have a little question. Only want to ask if its possible.

    I said, that I've MultipleHomes installed on my server. This plugin has a "homes" directory. This is the directory where all homes are saved in .txt files. The files are named from home_1 to home_15.

    I think its a silly question, cause MultiHomes and MultipleHomes are different plugins but..
    is it possible to use that directory for your plugin?
     
  26. Offline

    MadManMarkAu

    The plugin won't recognize that data directory, you'll have to do a manual conversion between formats. I don't know the format of the MultipleHomes save format, so I don't know how easy/hard it will be. I'm sure a small script will do the job. Could be as easy as copy/pasting.

    My MultiHome plugin uses a single text file stored in "MultiHome/homes.txt". All homes are stored in this file, one home per line. The format is as follows:

    <username>;<x>;<y>;<z>;<pitch>;<yaw>;<world>[;<name>]

    <name> is an optional field, but will be added by the plugin.

    If you have difficulty, speak to me on Skype or MSN (same username as here) and I'll help you out.
     
  27. Offline

    Maxis010

    I'll look in to cooking something up but I could only offer it in php, do you have a website which you could host it on?
    If not then I can always write down the conversion process so you can remake it in Java then integrate it in to MultiHome
    Just some thoughts
     
  28. Offline

    MadManMarkAu

    Sure, I can host PHP. I'm webmaster for 3 different Apache servers. I can even give you a VirtualHost if you want one.

    The format for MultipleHomes is:

    ~<user>:<x>_<y>_<z>_<yaw>_<pitch>_<world>

    Notice the pitch and yaw entries are swapped compared to mine. The home name is the file name: "home_<n-1>.txt". Eg. home #1 is "home_0.txt". Home #2 is "home_1.txt". Each file can have multiple entries, one per user. They also have comments (lines starting with "#") and blank lines in them, so only lines starting with "~" should be processed. This'd be easy to write a script for.
     
  29. can u make it compatible with essentials by renaming your commands to /mhome etc. for example? essentials often update their plugins and i dont want to have to download jar file and change stuff in it every day :( but i really would like to use your plugin!
     

Share This Page