Configuration
This is default configuration for over9000homes.
maxHomes: 15 defaultHomeName: '1' homesPerPage: 9 correctRegex: '[A-Za-z0-9-]+' respawnAtHome: true teleportToNearest: false warmup: 0 cooldown: 60 freezeOnWarmup: true inviteExpireTime: 300 language: default newGroups: false
- maxHomes is maximum amount of homes for each player. It also exists maxhomes permission node. Permissions.
- defaultHomeName is default home name (when using /home, /sethome or /deletehome without arguments).
- homesPerPage is number of homes on page when using /homelist.
- correctRegex is regexp used to check whether home name is correct.
- respawnAtHome: when set to true, player will be teleported to the nearest home when died.
- if teleportToNearest is set to true, players will teleport to the nearest home by sending /home without parameters.
- warmup is time (in seconds) to teleport player to his home after /home command.
- cooldown is minimum time (in seconds) between two teleportations.
- if freezeOnWarmup is set to true, players will be frozen (they can't move when they are frozen) during warmup.
- inviteExpireTime is time (in seconds) of invite expiration.
- newGroups means whether enable new groups system.
- language is current language.
You can also block /sethome or /home in certain worlds. For example, to block /sethome in world "noset", block /home in world "nohome" and block both /sethome and /nohome in world "both". "setcost" is price to use /sethome in this world and "tpcost" is price to use /home.
worlds: noset: sethome: false nohome: home: false both: sethome: false home: false expensive: setcost: 10.0 tpcost: 5.0
Players with over9000homes.alwaysAllowed can always use these commands.
If value not found, plugin will use default one. If configuration file not found, plugin will create default one.
feature sugest: cooldown for /sethome so useful!
@MinasApatridas
Yeah, not bad idea, but... Why cooldown? What is real advantage of using cooldown for sethome? Please explain and I will add this to my TODO.
where do i add the setcost lines to make ppl pay to use homes?
A cooldown of /sethome prevents a constant abuse of it as a mining alternative. Multiple homes or bases are great, but griefers who just set home in a town to move on soon after, annoying. A configurable sethome cool down would be awesome.