Skip to content

Commit

Permalink
Add programmatic config update for disableLeash and disableRiding
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 5, 2020
1 parent 8c42cc8 commit 6aec404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/hm/petmaster/PetMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ private void updateOldConfiguration() {
updateSetting(config, "disablePlayerDamage", false, "Protect pets to avoid being hurt by other player.");
updateSetting(config, "enableAngryMobPlayerDamage", true,
"Allows players to defend themselves against angry tamed mobs (e.g. dogs) even if disablePlayerDamage is true.");
updateSetting(config, "disableLeash", false, "Prevent others from using leash on pet.");
updateSetting(config, "disableRiding", false, "Prevent others from mounting pet (horse/donkey).");

if (updatePerformed) {
// Changes in the configuration: save and do a fresh load.
Expand Down

0 comments on commit 6aec404

Please sign in to comment.