# AntiTeamRocket

## Highlights

* Supports pokemon properties to determine which pokemon needs protection.
* Has protection timer to give other players chance to do what they please.
* Able to give trust to other players, enabling them to do what they please.

## Commands

<table><thead><tr><th width="257.33333333333326">Command</th><th width="277">Permission</th><th>Description</th></tr></thead><tbody><tr><td>/antiteamrocket info</td><td>N/A</td><td>Shows the plugin information and commands.</td></tr><tr><td>/antiteamrocket reload</td><td>antiteamrocket.command.reload</td><td>Reloads the configuration files.</td></tr><tr><td>/antiteamrocket list</td><td>antiteamrocket.command.list</td><td>Shows all protected wild pokemon with their protector and trusted players.</td></tr><tr><td>/antiteamrocket fulltrust add/remove/list [&#x3C;player>]</td><td>antiteamrocket.command.fulltrust</td><td>add - Adds the player to the persistent trusted list.<br><br>remove - Removes the player from the persistent trusted list.<br><br>list - Shows all persistent trusted players.</td></tr><tr><td>/antiteamrocket trust add/remove/list [&#x3C;player>] [&#x3C;pokemon>]</td><td>antiteamrocket.command.trust</td><td>add - Adds the player to the pokemon's trusted list.<br><br>remove - Removes the player from the pokemon's trusted list.<br><br>list - Shows all wild pokemon protected by the player and with their trusted players.</td></tr></tbody></table>

## Main Configuration

<details>

<summary>Expand</summary>

```json
{
  "CommandAlias": [
    "antiteamrocket",
    "atr"
  ],
  # The time in seconds, before the protection is removed.
  "ProtectionTime": 60,
  "ProtectedProperties": [
    "shiny=yes",
    "bidoof",
    "magikarp"
  ],
  "NoProtectedPokemon": "&cNo protected pokemon found.",
  "ProtectionList": "&a%pokemon% &7- &b%player% &7- &e%trusted%",
  "NoUnderProtection": "&cNo pokemon found under your protection.",
  "PlayerOffline": "&cThe player %player% is offline.",
  "NotUnderProtection": "&cThe pokemon %pokemon% is not under your protection.",
  "AlreadyTrusted": "&cYou already trusted %player% to %pokemon%.",
  "TrustAdded": "&aYou have trusted %player% to %pokemon%.",
  "NotTrusted": "&c%player% is not trusted yet to %pokemon%.",
  "TrustRemoved": "&a%player% is no longer trusted to %pokemon%.",
  "TrustList": "&a%pokemon% &7- &e%trusted%",
  "InvalidTrustArgs": "&cInvalid args. /antiteamrocket trust add/remove/list [<player>] [<pokemon>]",
  "FullTrustAdded": "&aThe player %player% has been added to your trust list.",
  "FullTrustRemoved": "&aThe player %player% has been removed from your trust list.",
  "FullTrustList": "&7- &e%player%",
  "InvalidFullTrustArgs": "&cInvalid args. /antiteamrocket fulltrust add/remove/list [<player>]",
  "ProtectionAddedTitle": "&aA wild %pokemon% has spawned",
  "ProtectionAddedSubTitle": "&aand is being protected by you!",
  "ProtectionAddedMessage": "&aThe protection wears off in 60 seconds!",
  "NotTrustedInteract": "&cThe pokemon %pokemon% is under the protection of the player %player%.",
  "ProtectionRemoved": "&cThe protection for %pokemon% has been removed!"
}
```

</details>

## Dependencies

* Java 21
* [Cobblemon Fabric 1.21.1](https://modrinth.com/mod/cobblemon/)
