From ad3a0ec261e291f64239700de7203d7403ea8482 Mon Sep 17 00:00:00 2001 From: A5H73Y Date: Thu, 8 Dec 2022 20:45:38 +0000 Subject: [PATCH] Updated docs --- docs/changelogs.md | 35 +++++++++---------- docs/tutorials/parkour-config.md | 28 +++++++++++---- .../configuration/impl/DefaultConfig.java | 4 +-- 3 files changed, 40 insertions(+), 27 deletions(-) diff --git a/docs/changelogs.md b/docs/changelogs.md index f706f77f..6f71e177 100644 --- a/docs/changelogs.md +++ b/docs/changelogs.md @@ -4,27 +4,26 @@ Changelogs Please note that each version of Parkour is backwards compatible with the previous version and will automatically upgrade your config upon server start up. There will be no manual intervention, unless stated in breaking changes. ## 7.1.0 -* Fixes to losing Player's JoinLocation - -* Reworked ParkourTools to be more structured -* Fixed "/pa addjoinitem (course)" -* Added missing "%parkour_current_checkpoint_next%" placeholder -* Fixed various placeholders -* Reworked ParkourTools to be more structured - * Added Rockets amount limit - * Each ParkourTool can have individual cooldown and cooldown message -* Fixed full restart resetting player data -* Reset Player's cooldowns on Restart -* New Setting "AutoStart.RestartWhenOnCourse.Enabled" to reset progress on AutoStart action -* New Setting "AutoStart.RestartWhenOnCourse.Teleport" to teleport when on Course +* Improved ParkourTools to be more structured +* Added ability for each ParkourTool to have individual cooldown and cooldown message +* Added Rockets ParkourTool amount limit +* Added ability for Material custom model data using "MATERIAL:123" +* Added Setting "AutoStart.RestartWhenOnCourse.Enabled" to reset progress on AutoStart action +* Added Setting "AutoStart.RestartWhenOnCourse.Teleport" to teleport whilst on Course * Added console command "pac setpropertyforeverysinglecourse (property) [value]" * Added console command "pac setpropertyforeverysingleplayer (property) [value]" -* Added ability for per-checkpoint commands (manual process currently) +* Added ability for per-checkpoint commands (currently a manual process) +* Added missing "%parkour_current_checkpoint_next%" placeholder +* Added option to set display name on Material prizes +* Fixed "/pa addjoinitem (course)" +* Fixed losing Player's JoinLocation * Fixed bug when merging default and per-course commands -* Add ability for Material custom model data using "MATERIAL:123" -* Fire BestTime events after finish event -* Fire Restart events in more places -* Added option to set display name on material prizes +* Fixed various placeholders +* Fixed full restart resetting player data +* Fixed Restart events firing in more places +* Fixed Too many open files +* Player's cooldowns are reset on Restart +* Changed BestTime events after finish event ### Breaking Changes * Please reapply your translations to the `ParkourTool` section. diff --git a/docs/tutorials/parkour-config.md b/docs/tutorials/parkour-config.md index d62397a7..99a356a1 100644 --- a/docs/tutorials/parkour-config.md +++ b/docs/tutorials/parkour-config.md @@ -169,10 +169,13 @@ CourseDefault: # Settings which will be defaulted to on ALL Courses # These can be overridden on a per-Course basis Settings: - HasFallDamage: true - MaxFallTicks: 80 DieInLiquid: false DieInVoid: false + HasFallDamage: true + ManualCheckpoints: false + MaxFallTicks: 80 + MaxDeaths: 0 + MaxTime: 0 RewardOnce: false RewardDelay: 0 RewardLevelAdd: 0 @@ -223,6 +226,8 @@ ParkourTool: Rockets: Material: FIREWORK_ROCKET Slot: 4 + # Seconds delay before being able to fire again + SecondCooldown: 1 # All the options for Parkour Challenges ParkourChallenge: @@ -243,8 +248,6 @@ ParkourModes: Rockets: # Should the velocity be inverted (teleported forwards instead of backwards) Invert: false - # Seconds delay before being able to fire again - SecondCooldown: 1 # Amount of force received from the rocket launching LaunchForce: 1.5 @@ -281,6 +284,11 @@ AutoStart: TickDelay: 0 # Include the world name in the AutoStart to allow multi-world support IncludeWorldName: true + # Should the Player's progress be restarted when activated while on the Course + RestartWhenOnCourse: + Enabled: true + # Should the Player be teleported to the start of the Course + Teleport: false # All the options for displaying a Scoreboard while on a Course # Each entry can be disabled and the order changed @@ -405,6 +413,8 @@ Other: MaximumParkourLevel: 99999999 # Should the Player's potion effects be reset during Parkour events such as joining, dying, leaving, finishing etc. ResetPotionEffects: true + # Should Ops keep their GameMode when joining a Course + OpsBypassGameModeSet: false Display: # Should the plugin display a Join message to the Player "This server uses Parkour v6.X" @@ -428,6 +438,8 @@ Other: StandardFormat: "HH:mm:ss" # The Detailed Time output format, with millisecond information. Used in leaderboard times DetailedFormat: "HH:mm:ss:SSS" + # The Placeholder Time output format. Used when time is displayed in PlaceholderAPI values. + PlaceholderFormat: "HH:mm:ss:SSS" # The TimeZone to use. Only change if you're having weird output. TimeZone: "GMT" @@ -456,11 +468,13 @@ Plugin: # Vault is required to use economy functionality Vault: Enabled: true + # Should Parkour register itself as an Economy plugin, using Parkoins as a currency + RegisterParkoins: false # Allows Parkour to offer external placeholders, also allows using placeholderapi values in multiple places PlaceholderAPI: Enabled: true # How many seconds should database results be cached for - CacheTime: 15 + CacheTime: 3 # How many time results should be cached per Course Database: @@ -485,10 +499,10 @@ LobbySettings: EnforceWorld: false # The installed version of the plugin, used by the updater to automatically update your config -Version: '7.0.0' +Version: '7.1.0' ``` -_This is correct as of Parkour v7.0.0_ +_This is correct as of Parkour v7.1.0_ diff --git a/src/main/java/io/github/a5h73y/parkour/configuration/impl/DefaultConfig.java b/src/main/java/io/github/a5h73y/parkour/configuration/impl/DefaultConfig.java index 5298b6a0..ed853b98 100644 --- a/src/main/java/io/github/a5h73y/parkour/configuration/impl/DefaultConfig.java +++ b/src/main/java/io/github/a5h73y/parkour/configuration/impl/DefaultConfig.java @@ -192,11 +192,11 @@ public DefaultConfig(File file) { this.setDefault("DisplayTitle.Finish.Stay", 20); this.setDefault("AutoStart.Enabled", true); - this.setDefault("AutoStart.RestartWhenOnCourse.Enabled", true); - this.setDefault("AutoStart.RestartWhenOnCourse.Teleport", false); this.setDefault("AutoStart.Material", "BEDROCK"); this.setDefault("AutoStart.TickDelay", 0); this.setDefault("AutoStart.IncludeWorldName", true); + this.setDefault("AutoStart.RestartWhenOnCourse.Enabled", true); + this.setDefault("AutoStart.RestartWhenOnCourse.Teleport", false); this.setDefault("Scoreboard.Enabled", false); this.setDefault("Scoreboard.CourseName.Enabled", true);