diff --git a/BuddyPlugin.cs b/BuddyPlugin.cs index 1ec63a0..5d26970 100644 --- a/BuddyPlugin.cs +++ b/BuddyPlugin.cs @@ -93,9 +93,11 @@ public override void Register() this.AddConfig(new ConfigSetting("buddy_disallow_guard_scientist_combo", disallowGuardScientistCombo, true, "If true, buddies will never spawn in as a guard and scientist. Only both a guard or both a scientist.")); this.enabled = this.GetConfigBool("buddy_enabled"); this.forceExactRole = this.GetConfigBool("buddy_force_exact_role"); + this.disallowGuardScientistCombo = this.GetConfigBool("buddy_disallow_guard_scientist_combo"); if (!this.enabled) { this.OnDisable(); + this.Info("Disregard any further messages about the plugin being enabled. It has been disabled."); return; } this.AddEventHandler(typeof(IEventHandlerRoundStart), new RoundStartHandler(this), Priority.Highest); diff --git a/README.md b/README.md index 17d213d..d3c5629 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,13 @@ Buddy lets you pair up with another player before the round begins, and spawn in To install Buddy, just download the latest release at https://github.com/PintTheDragon/Buddy/releases , then stick Buddy.dll in your sm_plugins directory. After you launch your server, you can configure it. ## Configuration -For the most part, Buddy works out of the box, but you may want to configure it. To change the commands and things it says, go to sm_translations and open buddyplugin.txt. From there, you can modify the commands/responses. Actual config doesn't work yet. +For the most part, Buddy works out of the box, but you may want to configure it. To change the commands and things it says, go to sm_translations and open buddyplugin.txt. From there, you can modify the commands/responses. +To configure Buddy, you'll need to add the config options to config_gameplay.txt (or wherever your config goes if you're using MultiAdmin, etc): +| Config | Description | Default Value | +| ------ | ------------- | ------ | +| buddy_enabled | Enables/disables the plugin. | true | +| buddy_force_exact_role | Makes a player the exact role as their buddy. | false | +| buddy_disallow_guard_scientist_combo | If true, buddies will never spawn in as a guard and scientist. Only both a guard or both a scientist. | true | ## Usage To use buddy plugin, run ".buddy " before the round starts (friend's name does not need to be exact). Then, your friend needs to run ".baccept". That's it! You will both spawn in on the same team. \ No newline at end of file