Add config option

This commit is contained in:
Ganom
2019-07-18 22:32:54 -04:00
committed by GitHub
parent fe2a27e8d1
commit 1bc3d1c26c

View File

@@ -56,18 +56,29 @@ public interface PlayerScouterConfig extends Config
keyName = "onlyWildy", keyName = "onlyWildy",
name = "Only Scout in Wildy", name = "Only Scout in Wildy",
description = "This will only scout players in the wilderness.", description = "This will only scout players in the wilderness.",
position = 1 position = 2
) )
default boolean onlyWildy() default boolean onlyWildy()
{ {
return true; return true;
} }
@ConfigItem(
keyName = "outputItems",
name = "Output Items",
description = "This will output all of their risked gear to the webhook.",
position = 3
)
default boolean outputItems()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "minimumRisk", keyName = "minimumRisk",
name = "Minimum Risk", name = "Minimum Risk",
description = "Minimum risk for the player to be scouted.", description = "Minimum risk for the player to be scouted.",
position = 2 position = 4
) )
default int minimumRisk() default int minimumRisk()
{ {
@@ -78,7 +89,7 @@ public interface PlayerScouterConfig extends Config
keyName = "minimumValue", keyName = "minimumValue",
name = "Minimum Value", name = "Minimum Value",
description = "Minimum value for the item to be posted on discord.", description = "Minimum value for the item to be posted on discord.",
position = 3 position = 5
) )
default int minimumValue() default int minimumValue()
{ {
@@ -89,7 +100,7 @@ public interface PlayerScouterConfig extends Config
keyName = "timeout", keyName = "timeout",
name = "Timeout", name = "Timeout",
description = "Minimum amount of ticks before the player can be scouted again. (1 tick = 600ms)", description = "Minimum amount of ticks before the player can be scouted again. (1 tick = 600ms)",
position = 4 position = 6
) )
default int timeout() default int timeout()
{ {