Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import nl.littlerobots.vcu.plugin.resolver.VersionSelectors

plugins {
java
alias(libs.plugins.spotless)
alias(libs.plugins.version.catalog.update)
}
Expand Down
674 changes: 674 additions & 0 deletions plugins/TokenManager/LICENSE

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions plugins/TokenManager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<h1>TokenManager</h1>

[![](https://jitpack.io/v/Realizedd/TokenManager.svg)](https://jitpack.io/#Realizedd/TokenManager)

A simple economy plugin for spigot. <a href="https://www.spigotmc.org/resources/tokenmanager.8610/">Spigot Project Page</a>

---

* **[Wiki](https://github.com/Realizedd/TokenManager/wiki)**
* **[Commands](https://github.com/Realizedd/TokenManager/wiki/commands)**
* **[Permissions](https://github.com/Realizedd/TokenManager/wiki/permissions)**
* **[config.yml](https://github.com/Realizedd/TokenManager/blob/master/src/main/resources/config.yml)**
* **[lang.yml](https://github.com/Realizedd/TokenManager/blob/master/src/main/resources/lang.yml)**
* **[shops.yml](https://github.com/Realizedd/TokenManager/blob/master/src/main/resources/shops.yml)**
* **[Support Discord](https://discord.gg/RNy45sg)**


### Getting the dependency

#### Repository
Gradle:
```groovy
maven {
name 'jitpack-repo'
url 'https://jitpack.io'
}
```

Maven:
```xml
<repository>
<id>jitpack-repo</id>
<url>https://jitpack.io</url>
</repository>
```

#### Dependency
Gradle:
```groovy
compile (group: 'com.github.Realizedd', name: 'TokenManager', version: '3.2.4') {
transitive = false
}
```

Maven:
```xml
<dependency>
<groupId>com.github.Realizedd</groupId>
<artifactId>TokenManager</artifactId>
<version>3.2.4</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
```

### plugin.yml
Add TokenManager as a soft-depend to ensure TokenManager is fully loaded before your plugin.
```yaml
soft-depend: [TokenManager]
```

### Getting the API instance

```java
@Override
public void onEnable() {
TokenManager api = (TokenManager) Bukkit.getServer().getPluginManager().getPlugin("TokenManager");
}
```
52 changes: 52 additions & 0 deletions plugins/TokenManager/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
plugins {
java
id("com.gradleup.shadow")
}

repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/public")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://repo.purpurmc.org/snapshots")
maven("https://nexus.frengor.com/repository/public/")
maven("https://nexus.scarsz.me/content/groups/public/")
maven("https://repo.codemc.io/repository/maven-public/")
maven("https://repo.inventivetalent.org/content/groups/public/")
maven { url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") }
}

dependencies {
compileOnly("org.projectlombok:lombok:1.18.42")
annotationProcessor("org.projectlombok:lombok:1.18.42")
implementation(libs.purpur.api)
implementation("me.clip:placeholderapi:2.10.9")
implementation(libs.vault.api)
implementation("org.apache.commons:commons-lang3:3.19.0")

// shaded dependencies
implementation("redis.clients:jedis:3.5.1")
implementation("org.apache.commons:commons-pool2:2.4.2")
implementation("com.zaxxer:HikariCP:4.0.2")
implementation("org.slf4j:slf4j-nop:1.7.32")
}

tasks.apply {
jar { enabled = false }

shadowJar {
archiveBaseName.set(project.name)
archiveClassifier.set("")
archiveVersion.set("")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

build { dependsOn(shadowJar) }

processResources {
val version: String by project
val properties = mapOf("version" to version)
inputs.properties(properties)
filteringCharset = Charsets.UTF_8.name()
filesMatching("plugin.yml") { expand(properties) }
}
}
1 change: 1 addition & 0 deletions plugins/TokenManager/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=1.0-SNAPSHOT
1 change: 1 addition & 0 deletions plugins/TokenManager/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "TokenManager"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package me.realized.tokenmanager;

public final class Permissions {

private static final String PREFIX = "tokenmanager.";

public static final String CMD_TOKEN = PREFIX + "use";
public static final String CMD_ADMIN = PREFIX + "admin";
public static final String CMD_BALANCE_OTHERS = PREFIX + "use.balance.others";
public static final String CMD_SELL = PREFIX + "use.sell";
public static final String CMD_SELL_ALL = PREFIX + "use.sell.all";
public static final String CMD_SEND = PREFIX + "use.send";
public static final String CMD_SHOP = PREFIX + "use.shop";
public static final String CMD_TOP = PREFIX + "use.top";
public static final String CMD_WORTH = PREFIX + "use.worth";
public static final String CMD_WORTH_ALL = PREFIX + "use.worth.all";

public static final String SHOP = PREFIX + "use.shop.";
public static final String SHOP_SLOT_OLD = PREFIX + "use.";
public static final String SHOP_SLOT_CANCEL = PREFIX + "cancel.";

private Permissions() {}
}
Loading
Loading