mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
feat: Add option to return to spawn when dies (#540)
* feat: user return to spawn when dies * feat: add return to spawn in config docs * feat: improve respawn feature variable name
This commit is contained in:
1 parent
b07a558211
commit
5496b9d1ec
3 files changed
+13
-2
No files matched your search
@@ -165,6 +165,9 @@ public class Settings {
|
||||
@YamlKey("general.description_regex")
|
||||
private String descriptionRegex = "\\A\\p{ASCII}*\\z";
|
||||
|
||||
@YamlComment("Whether the user should back to spawn when they die")
|
||||
@YamlKey("general.always_respawn_at_spawn")
|
||||
private boolean alwaysRespawnAtSpawn = false;
|
||||
|
||||
// Back command settings
|
||||
@YamlComment("Whether /back should work to teleport the user to where they died")
|
||||
@@ -439,6 +442,10 @@ public class Settings {
|
||||
return descriptionRegex;
|
||||
}
|
||||
|
||||
public boolean doAlwaysRespawnAtSpawn() {
|
||||
return alwaysRespawnAtSpawn;
|
||||
}
|
||||
|
||||
public boolean doBackCommandReturnByDeath() {
|
||||
return backCommandReturnByDeath;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user