Skip to content

maurxce/PaidPortals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PaidPortals

Experience a new level of community cooperation with this Minecraft plugin, where players must pool their resources using Vault economy to unlock access to the Nether and End dimensions.

Note: if you're upgrading from 1.0 to 1.1, please make sure to reset your lang.yml!

Table of Contents

As of v1.1, this plugin was written for Spigot 1.19.3
I'm planning to add multiversion support in the future

  1. Download the latest version
  2. Drag and drop the .jar into your /plugins folder
  3. Make sure to also install the Dependencies
  4. Start your server and enjoy!
# METRICS (bStats)
metrics: true

# DATABASE
# types: mysql, mongodb, yaml
# default ports: 3306 (mysql), 27017 (mongodb)
database:
  type: yaml

  # (none of the following database settings apply to yaml)
  host: localhost
  port: 3306

  name: paidportals
  username: portal_user
  password:

# ECONOMY POOL SETTINGS
# unlock-amount: total amount the players need to pay the pool to unlock a dimension
nether:
  enable: true
  unlock-amount: 5000

the_end:
  enable: true
  unlock-amount: 20000

# PORTAL SETTINGS
# these settings apply before the dimension goal is reached
player-portal-create: false
player-portal-enter: false

For information on database setup, please see the Database Guide

Command Arguments Alias Description
/reload - - Reload the config
/resetpool - - Reset the money pool
/viewpool - - View the money pool
/dpay [amount] dimensionpool, dimensionpay Pay a certain amount of money into the dimensions pool
Permission Default Description
paidportals.reload OP Permission to use /reload
paidportals.resetpool OP Permission to use /resetpool
paidportals.ignore OP Allows players to use portals, even when its still locked for everyone else
paidportals.viewpool Everyone Permission to use /viewpool
paidportals.dimensionpay Everyone Permission to use /dpay
Placeholder Description
%paidportals_nether% Returns the lock status of the Nether
%paidportals_the_end% Returns the lock status of the End
  1. Vault
  2. Any Vault supported Economy plugin (e.g. EssentialsX)
  3. PlaceholderAPI (optional)
  1. MySQL

    • Make sure to install MySQL
    • open the mysql shell
    • CREATE USER 'portal_user'@'localhost' IDENTIFIED BY 'GENERATED_PASSWORD_HERE'
    • CREATE DATABASE IF NOT EXISTS paidportals
    • GRANT ALL PRIVILEGES ON paidportals.* TO 'portal_user'@'localhost' IDENTIFIED BY 'GENERATED_PASSWORD_HERE' WITH GRANT OPTION
  2. MongoDB

    • Make sure to install MongoDB
    • open the mongo shell
    • use paidportals
    • db.createUser({ user: "portal_user", pwd: "GENERATED_PASSWORD_HERE", roles:" ["readWrite""] })
  3. YAML

    • No additional setup needed!

As of v1.0, this plugin only supports these 3 Database types I'm planning to add SQLite in the future