Compare commits

...

7 Commits
1.13.2 ... main

Author SHA1 Message Date
never2nv 5b1dc75629 Delete pom.xml 2024-03-14 03:37:58 +00:00
WildInterloper d31d5bf815 Ignore Update 2024-03-13 23:37:36 -04:00
WildInterloper 7322305165 Trash Gobblin 2024-03-13 23:36:19 -04:00
WildInterloper a49a197b3f Asset, screenshots 2024-03-11 12:00:17 -04:00
WildInterloper 3c8c4465f9 Asset Update for Readme 2024-03-11 11:57:49 -04:00
WildInterloper 44ce01dfb7 Re-Loaded Header, Asset 2024-03-11 11:56:47 -04:00
WildInterloper 1b2fcc26c3 Asset Additions, re-creating Wiki. 2024-03-11 11:52:55 -04:00
424 changed files with 13 additions and 2553 deletions

2
.gitignore vendored
View File

@ -3,4 +3,6 @@ dependency-reduced-pom.xml
.idea
.circleci
*.iml
pom.xml
/target/
/target/

View File

@ -1,4 +1,4 @@
![X-Prison Header](https://imgur.com/Hrv0YkI.png)
![X-Prison Reloaded Header](https://git.fngnation.net/NVus.Team/X-Prison_Reloaded/raw/branch/main/assets/plugin-header-reloaded.png)
# X-Prison Reloaded
<!---
![Issues](https://img.shields.io/github/issues/Drawethree/X-Prison?label=Issues&logo=GitHub)
@ -13,6 +13,16 @@ Original author is no longer actively maintaining the original plugin. So I have
### Pull Requests -> Original Plugin
You can still, **supposedly** do pull requests on the original plugin but seeing as the original author has **closed their Discord server from the public** etc. I just wasn't banking on that actually happening **:P**
# Setup
1. Download latest version of UltraPrisonCore
2. Download [helper](https://ci.lucko.me/job/helper/lastSuccessfulBuild/artifact/helper/target/helper.jar), WorldEdit, WorldGuard and Vault plugins, as they are required as dependencies. Don't worry about **helper **plugin, its just a library :)
3. Extract X-Prison-Reloaded-X.X.X.jar to /plugins folder of your Minecraft Server
4. Restart/Reload the server
5. After restart, please select your database system /plugins/X-Prison/config.yml. You can either use SQLite as local database, or MySQL as remote database. If you wish to select MySQL, please set also your connection credentials in config section.
* Note: Java 17 and above is required
* Note: If you would like to use Essentials Kits along with custom enchants from this plugin, please see Essentials Kits Addon page.
# Pages
### General

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
assets/plugin-header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

238
pom.xml
View File

@ -1,238 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>dev.drawethree.xprison</groupId>
<artifactId>X-Prison</artifactId>
<version>1.13.2</version>
<name>XPrison Reloaded</name>
<build>
<defaultGoal>clean install</defaultGoal>
<finalName>XPrison-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>21</source>
<target>21</target>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version> <!-- Make sure to use the latest version -->
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.codemc.worldguardwrapper</pattern>
<shadedPattern>dev.drawethree.xprison.utils.org.codemc.worldguardwrapper</shadedPattern>
</relocation>
<!-- Add other relocations here -->
</relocations>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>paper-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
<repository>
<id>enginehub-maven</id>
<url>https://maven.enginehub.org/repo/</url>
</repository>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/maven-public/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>sqlite</id>
<url>https://oss.sonatype.org/content/repositories/releases/org/xerial/sqlite-jdbc/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
<version>1.5.26</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>internal</groupId>
<artifactId>mrl</artifactId>
<version>LATEST</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/libs/plugins/MineResetLite.jar</systemPath>
</dependency>
<!-- <dependency>-->
<!-- <groupId>internal</groupId>-->
<!-- <artifactId>mrl</artifactId>-->
<!-- <version>LATEST</version>-->
<!-- <scope>system</scope>-->
<!-- <systemPath>src\main\libs\plugins\MineResetLite.jar</systemPath>-->
<!-- </dependency>-->
<dependency>
<groupId>be.maximvdw</groupId>
<artifactId>MVdWPlaceholderAPI</artifactId>
<version>3.1.1-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/libs/plugins/MVdWPlaceholderAPI.jar</systemPath>
</dependency>
<dependency>
<groupId>com.saicone.rtag</groupId>
<artifactId>rtag</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>com.saicone.rtag</groupId>
<artifactId>rtag-item</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>9.7.0</version>
</dependency>
<dependency>
<groupId>org.codemc.worldguardwrapper</groupId>
<artifactId>worldguardwrapper</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>4.0.3</version>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.luckperms</groupId>
<artifactId>api</artifactId>
<version>5.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.Drawethree</groupId>
<artifactId>UltraBackpacksAPI</artifactId>
<version>v1.2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.lucko</groupId>
<artifactId>helper</artifactId>
<version>5.6.13</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.objecthunter</groupId>
<artifactId>exp4j</artifactId>
<version>0.4.8</version>
</dependency>
<dependency>
<groupId>com.github.lalyos</groupId>
<artifactId>jfiglet</artifactId>
<version>0.0.9</version>
</dependency>
<!-- JUnit Jupiter API for JUnit 5 tests -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<!-- JUnit Jupiter Engine -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<!-- JUnit Vintage Engine for running JUnit 3 and 4 tests -->
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<version>5.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -1,26 +0,0 @@
# Settings for auto-miner regions
auto-miner-regions:
# WorldGuard region name
automine:
# World where region is
world: world
# Rewards to give
rewards:
- 'eco give %player% 1000'
- 'tokens give %player% 10'
# Interval of giving rewards (in seconds)
reward-period: 5
# Amount of blocks broken added to player every cycle
blocks-broken: 5
messages:
not_enough_tokens: "&e&lAUTOMINER &8» &cYou do not have enough tokens! (Needed: %tokens%)"
not_a_number: "&c%input% is not a number!"
player_not_online: "&cPlayer &e%player% &cis not online!"
autominer_disabled: "&e&l(!) &7You've &c&lDISABLED &7AutoMiner."
autominer_enabled: "&e&l(!) &7You've &a&lENABLED &7AutoMiner."
auto_miner_enabled: "&aYou are now in &a&lAUTO-MINER &amode."
auto_miner_disabled: "&cYou don't have &c&lAUTO-MINER &ctime."
auto_miner_no_pickaxe: "&cYou do not have any pickaxe equipped!"
auto_miner_time: "&e&lAUTOMINER &8» &7You have &f%time% of Auto-Miner time."
auto_miner_time_add: "&e&lAUTOMINER &8» &7You added &f%time% %timeunit% &7to &f%player%&7."
auto_miner_time_remove: "&e&lAUTOMINER &8» &7You have removed &f%time% %timeunit% &7from &f%player%&7."

View File

@ -1,34 +0,0 @@
messages:
autosell_enable: "&e&l(!) &7You've &a&lENABLED &7Autosell."
autosell_disable: "&e&l(!) &7You've &c&lDISABLED &7Autosell."
not_in_region: "&e&l(!) &cYou must be in region to use /sellall"
invalid_region: "&e&l(!) &cYou have specified invalid region."
sell_all_complete: "&e&lSELLALL &8>> &7You've sold your inventory for &a$%price%"
last_minute_earn: "&e&lINFO &8>> &7You've earn &a$%amount% &7in last minute."
no_permission_sell: "&e&l(!) &cYou do not have permission to sell in this region! (%perm%)"
no_permission_autosell_toggle: "&e&l(!) &cYou do not have permission to toggle autosell feature!"
# Should be autosell enabled automatically on player join?
enable-autosell-automatically: true
# Should blocks be smelted when mined? Example: STONE -> COBBLESTONE, IRON_ORE -> IRON_INGOT
auto-smelt: false
# Settings for broadcasting earnings during autosell
auto_sell_broadcast:
# Interval in seconds
time: 60
message:
- "&e&m-------&f&m-------&e&m--------&f&m--------&e&m--------&f&m-------&e&m-------"
- " &8&l» &6&lAUTOSELL:"
- " &8&l➥ &e&lMONEY MADE: &2$&a%money%"
- " &8&l➥ &e&lITEMS SOLD: &f%items%"
- "&e&m-------&f&m-------&e&m--------&f&m--------&e&m--------&f&m-------&e&m-------"
# Sellprices for each regions
regions: { }
# Notification when player has full inventory
# If 'title' is set, it will send title to players, otherwise it will display chat message.
inventory_full_notification:
# Should players be notified if they have full inventory?
enabled: true
title:
- "&e&lInventory full!"
- "&fType /sellall to sell your inventory"
chat: '&c&l(!) &eYour inventory is full! Type /sellall to sell your inventory'

View File

@ -1,10 +0,0 @@
# Rewards when breaking certain amount of blocks. (Counts overall, not just for pickaxe)
block-rewards:
# Amount of blocks required
100:
# Message to be sent
message: '&e&lBLOCKS &8» &7You have mined &f100&7 blocks.'
# Commands to give rewards
commands:
- tokens give %player% 1000
- aam add %player% 300

View File

@ -1,94 +0,0 @@
#===============================================================================
# TEAM NVus #
# www.FNGnation.com/discord #
# www.FNGnation.com #
# ==============================================================================
# Should plugin show debug messages?
debug-mode: false
#===============================================================================
# DATABASE CONFIGURATION #
# ==============================================================================
# Database type (SQLite, MySQL)
database_type: SQLite
# MySQL connection details
mysql:
host: localhost
port: 3306
database: dbName
username: dbUser
password: dbPass
# Connection properties
# HikariCP database connection properties, please refer to https://github.com/brettwooldridge/HikariCP#gear-configuration-knobs-baby for more information
connection_properties:
connection_timeout: 60000
idle_timeout: 600000
keep_alive_time: 0
max_life_time: 1800000
minimum_idle: 10
maximum_pool_size: 10
leak_detection_threshold: 0
connection_test_query: "SELECT 1"
character_encoding: "utf8"
#===============================================================================
# MODULES CONFIGURATION #
# ==============================================================================
# Enabling / Disabling of specific modules
modules:
tokens: true
gems: true
ranks: true
prestiges: true
multipliers: true
enchants: true
autosell: true
autominer: true
pickaxe_levels: true
gangs: true
mines: true
history: true
# Item migrator config
item-migrator:
enabled: true
bind:
join: true
inventory: false
#===============================================================================
# SUPPORTED PICKAXES FOR UPC ENCHANTS #
# ==============================================================================
# List of supported pickaxes by UPC Enchants
supported-pickaxes:
- DIAMOND_PICKAXE
#===============================================================================
# COMMAND CONFIGURATION #
# ==============================================================================
main-command-aliases:
- xprison
- prison
#===============================================================================
# ORIGINAL LICENSE #
# ==============================================================================
# MIT License
# Copyright (c) 2023 Bc. Ján Kluka
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
ConfigVersion: 1.0; # DO NOT CHANGE THIS VALUE! IT WILL BREAK THE PLUGIN!

Some files were not shown because too many files have changed in this diff Show More