> For the complete documentation index, see [llms.txt](https://medieval-kingdoms.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://medieval-kingdoms.gitbook.io/docs/getting-started/personal-access-token.md).

# Personal Access Token

A guide on how to get access to Medieval Kingdoms Plugins

## How To Setup

Each developer must generate their own **GitHub PAT** (Personal Access Token) with:

* `read:packages`
* `write:packages`
* `delete:packages`&#x20;

[How To Setup Github PAT](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/setting-a-personal-access-token-policy-for-your-organization)

## IntelliJ Settings Configuration

Each developer must edit their `~/.m2/settings.xml` (or create one if missing).

<details>

<summary>Example settings.xml</summary>

```xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      https://maven.apache.org/xsd/settings-1.0.0.xsd">

  <activeProfiles>
    <activeProfile>github</activeProfile>
  </activeProfiles>

  <profiles>
    <profile>
      <id>github</id>
      <repositories>
        <repository>
          <id>central</id>
          <url>https://repo1.maven.org/maven2</url>
        </repository>

        <!-- Your package repository -->
        <repository>
          <id>github</id>
          <url>https://maven.pkg.github.com/medieval-kingdoms/medievalcore</url>rl>
        </repository>
      </repositories>
    </profile>
  </profiles>

  <servers>
    <server>
      <id>github</id>
      <username>GITHUB_USERNAME</username>
      <password>GITHUB_TOKEN</password>
    </server>
  </servers>
</settings>

```

</details>

Since you will be part of the Medieval Kingdoms organization. Github will automatically be able to know whether you have access to read, write or delete from/to the repositories.
