Configuration

Config

-Out-Side game Configuration-

Changing the config outside of the game is very simple. Note that you should never include "Special" Characters such as ?'s and !'s in the config

The "Help" section defines a series of strings that will be displayed upon using one of the help commands. Using the ยง symbol, Followed by a letter, You can define a Colour that the string will be in. Examples are given in the Default config (Copied to */plugins/sGift/config.yml).

  • For example, You can define the string that displays help for "/trade stop" by changing the Text next to "Stop:" in the section named "Trade:".

In the "Features" Section, You can define whether the features Gift, Swap or Trade are enabled. Simply put either True or False next to these to define where they're enabled or disabled, Respectively.

In the "Options" section, You can define values of features in sGift.

  • The request-timeout node is the amount of time any Trade, Swap etc. request will be available until it automatically cancels. setting this to 0 will disable it.
  • The allow-between-worlds node defines whether players can Trade, Swap or Gift between worlds. The permission node "sgift.overrides.world" will override this and allow players with the perm node to Trade regardless of the Config's setting.
  • The max-distance node defines the maximum distance at which Trades are possible. Set this to 0 to disable it.

-In-Game Configuration-

In-Game configuration is also very easy. You can configure any node in the "Options:" and "Features:" sections. This can be accessed via the /sgift set command. For example:

/sgift set gift false - Would set "enable-gift:" to false.

/sgift set distance reset - Would reset "max-distance" to 0 (Note this is currently the only node you can "reset")

The applicable nodes are:

  • Gift [true|false]
  • Trade [true|false]
  • Swap [true|false]
  • Distance [number|reset]
  • Allow-Auto [gift|swap|trade] [true|false]

More will be added to this list, Maybe eventually Help strings.

That covers most aspects of configuration in sGift. Hopefully that will clear things up! =)


Comments

Posts Quoted:
Reply
Clear All Quotes