Skip to content

Commit

Permalink
Merge pull request #83 from vecnavium-pm-pl/master
Browse files Browse the repository at this point in the history
v2.0.0 release
  • Loading branch information
Vecnavium authored Dec 24, 2021
2 parents 7c1cc83 + ba1b353 commit f240b7b
Show file tree
Hide file tree
Showing 54 changed files with 2,229 additions and 6,013 deletions.
2 changes: 1 addition & 1 deletion .poggit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Vecnavium/PurePerms
--- # Poggit-CI Manifest. Open the CI at https://poggit.pmmp.io/ci/Vecnavium/PurePerms
build-by-default: true
branches:
- stable
Expand Down
112 changes: 11 additions & 101 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,109 +13,19 @@

Command | Description | Permission
--- | --- | ---
`/addgroup <group>` | Adds a new group to the groups list. | pperms.command.addgroup
`/addparent <target_group> <parent_group>` | Adds a group to another group inheritance list. | pperms.command.addparent
`/defgroup <group> [world]` | Allows you to set default group. | pperms.command.defgroup
`/fperms` | Allows you to find permissions for a specific plugin. | pperms.command.fperms
`/groups` | Shows a list of all groups. | pperms.command.groups
`/grpinfo <group> [world]` | Shows info about a group. | pperms.command.grpinfo
`/listgperms <group> <page> [world]` | Shows a list of all permissions from a group. | pperms.command.listgperms
`/listuperms <player> <page> [world]` | Shows a list of all permissions from a user. | pperms.command.listuperms
`/addrank` | Adds a new rank | pperms.command.addrank
`/defrank <rank> [world]` | Allows you to set default rank. | pperms.command.defrank
`/plperms` | Allows you to find permissions for a specific plugin. | pperms.command.plperms
`/listranks` | Shows a list of all ranks. | pperms.command.ranks
`/ppinfo` | Shows info about PurePerms. | pperms.command.ppinfo
`/ppsudo <login / register>` | Registers or logs into your Noeul account. | pperms.command.ppsudo
`/ppreload` | Reloads all PurePerms configurations. | pperms.command.ppreload
`/rmgroup <group>` | Removes a group from the groups list. | pperms.command.rmgroup
`/rmparent <target_group> <parent_group>` | Removes a group from another group inheritance list. | pperms.command.rmparent
`/setgperm <group> <permission> [world]` | Adds a permission to the group. | pperms.command.setgperm
`/setgroup <player> <group> [world]` | Sets group for the user. | pperms.command.setgroup
`/delrank <rank>` | Removes a rank from the rank list. | pperms.command.delrank
`/setrank <player> <rank> [world]` | Sets rank for the user. | pperms.command.setrank
`/unsetuperm <rank> <permission> [world]` | Removes a permission from the user. | pperms.command.unsetuperm
`/setuperm <player> <permission> [world]` | Adds a permission to the user. | pperms.command.setuperm
`/unsetgperm <group> <permission> [world]` | Removes a permission from the group. | pperms.command.unsetgperm
`/unsetuperm <player> <permission> [world]` | Removes a permission from the user. | pperms.command.unsetuperm
`/usrinfo <player> [world]` | Shows info about a user. | pperms.command.usrinfo

# Config

``` YAML

# PurePerms by 64FF00 (xktiverz@gmail.com, @64ff00 for Twitter)

# 제 블로그 이외에 허락없이 마음대로 플러그인 배포하실 시에는 바로 한국어 파일 삭제 조치하고 공유 중단합니다

---
# Set default data provider for PurePerms
# - mysql, yamlv1, yamlv2
data-provider: yamlv1

# Set the default language for PurePerms (<3)
# - en, ko, jp, ru, ua, it, sp, cz, sk, de, idn, tr
# English message resource by @64FF00 and @Samueljh1 (GitHub)
# Korean message resource by @64FF00 (GitHub)
# Japanese message resource by @onebone and @haniokasai (GitHub)
# Russian message resource by @vvzar and @Pub4Game (GitHub)
# Ukrainian message resource by @samalero (GitHub)
# Italian message resource by @AryToNeX (GitHub)
# Spanish message resource by @iksaku and @JoahDave (Github)
# Czech message resource by @Michael2010117 (GitHub)
# Slovak message resource by @Michael2010117 (GitHub)
# German message resource by @Exxarion (GitHub)
# Indonesian message resource by @DevillordMCPE (GitHub)
# Turkish messages resource by @PainTR (GitHub)
default-language: en

# Disable /op permission for all players
# - true / false
disable-op: true

# Setting this option will allow you to use per-world permissions
# - true / false
enable-multiworld-perms: false

# Enables 'Noeul', a 'pointless' security management system for PurePerms
# - true / false
enable-noeul-sixtyfour: false

# MySQL Settings (Only configure this if you are going to use MySQL data provider)
mysql-settings:
host: "PurePerms-FTW.loveyou.all"
port: 3306
user: "YourUsernameGoesHere"
password: "YourPasswordGoesHere"
db: "YourDBNameGoesHere"

# Sets a minimum length for a Noeul password when registering a new account
# - int
noeul-minimum-pw-length: 6

# Special thanks to @jazzwhistle for helping me with this cool feature! #JAZZWHISTLE-FTW
# Ranks that can only be set on console
# Also, users with a superadmin-rank can only have their rank changed on console
# - array
superadmin-ranks: ["OP"]
```
```
YAML
---
Guest:
alias: 'gst'
isDefault: true
inheritance: []
permissions:
- -essentials.kit
- -essentials.kit.other
- -pocketmine.command.me
- pchat.colored.format
- pchat.colored.nametag
- pocketmine.command.list
- pperms.command.ppinfo
worlds: []
```

# Features

- Set up permissions for different groups!
- Multi-group inheritance system to allow you to inherit group permissions
- Multi-language support, just choose your favorite language in config.yml! (Currently supports Czech, English, German, Korean, Japanese, Russian, Italian, Indonesian, Slovak, Spanish, Turkish, and Ukrainian! :D)
- Supports YAML + MySQL providers
- Provides simple and flexible PurePerms API for plugin developers
- And so on... ;)
- Set up permissions for different rank!
- Multi-rank inheritance system to allow you to inherit rank permissions
- Supports JSON, SQLITe3 + MySQL providers
- Provides simple and flexible PurePerms usage and stable.
125 changes: 49 additions & 76 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,76 +1,49 @@

# PurePerms by 64FF00 (xktiverz@gmail.com, @64ff00 for Twitter)

name: PurePerms
main: _64FF00\PurePerms\PurePerms
version: 1.4.5
api: [4.0.0]
load: POSTWORLD
author: "Vecnavium , 64FF00 & ProjectInfinity"
permissions:
pperms:
default: op
description: "PurePerms by 64FF00! (Twitter: @64FF00)"
pperms.command:
default: op
description: "Allows you to use all PurePerms commands."
pperms.command.addgroup:
default: op
description: "Allows you to add a new group to the groups list."
pperms.command.addparent:
default: op
description: "Allows you to add a group to another group inheritance list."
pperms.command.defgroup:
default: op
description: "Allows you to set the default group manually."
pperms.command.fperms:
default: op
description: "Allows you to find permissions for a specific plugin."
pperms.command.groups:
default: op
description: "Allows you to see a list of all groups."
pperms.command.listgperms:
default: op
description: "Allows you to see a list of all permissions from a group."
pperms.command.listuperms:
default: op
description: "Allows you to see a list of all permissions from a user."
pperms.command.ppinfo:
default: true
description: "Allows you to get current PurePerms information."
pperms.command.grpinfo:
default: op
description: "Nothing"
pperms.command.ppreload:
default: op
description: "Allows you to reload all PurePerms configurations."
pperms.command.rmgroup:
default: op
description: "Allows you to remove a group from the groups list."
pperms.command.rmparent:
default: op
description: "Allows you to remove a group from another group inheritance list."
pperms.command.setgperm:
default: op
description: "Allows you to add a permission to the group."
pperms.command.setgroup:
default: op
description: "Allows you to set group for a user."
pperms.command.setuperm:
default: op
description: "Allows you to add a permission to a user."
pperms.command.unsetgperm:
default: op
description: "Allows you to remove a permission from the group."
pperms.command.unsetuperm:
default: op
description: "Allows you to remove a permission from the user."
pperms.command.usrinfo:
default: op
description: "Allows you to see info about a user."
pperms.noeul:
default: op
description: "Allows you to access all 'Noeul' related features."
pperms.noeul.ppsudo:
default: op
description: "Allows you to use the Noeul 'ppsudo' command."

# PurePerms by 64FF00 (xktiverz@gmail.com, @64ff00 for Twitter)

name: PurePerms
main: _64FF00\PurePerms\PurePerms
version: 2.0.0
api: [4.0.0]
load: POSTWORLD
author: "Vecnavium , 64FF00 & ProjectInfinity"
permissions:
pperms:
default: op
description: "PurePerms by 64FF00! (Twitter: @64FF00)"
plperms.command:
default: op
description: "Allows you to use all PurePerms commands."
pperms.command.addrank:
default: op
description: "Allows you to add a new rank"
pperms.command.defrank:
default: op
description: "Allows you to set the default rank manually."
pperms.command.plperms:
default: op
description: "Allows you to find permissions for a specific plugin."
pperms.command.ranks:
default: op
description: "Allows you to see a list of all rank."
pperms.command.listuperms:
default: op
description: "Allows you to see a list of all permissions from a user."
pperms.command.ppinfo:
default: true
description: "Allows you to get current PurePerms information."
pperms.command.rmrank:
default: op
description: "Allows you to remove a rank from the ranks list."
pperms.command.setrank:
default: op
description: "Allows you to set rank for a user."
pperms.command.setuperm:
default: op
description: "Allows you to add a permission to a user."
pperms.command.unsetgperm:
default: op
description: "Allows you to remove a permission from the group."
pperms.command.unsetuperm:
default: op
description: "Allows you to remove a permission from the user."
33 changes: 6 additions & 27 deletions resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,20 @@

---
# Set default data provider for PurePerms
# - mysql, yamlv1, yamlv2
data-provider: yamlv1
# - json (JSON Database)
# - mysql (MYSQL Database) (Temporarily removed)
# - sqlite3 (SQLITe3 Database)
data-provider: json

# Set the default language for PurePerms (<3)
# - en, ko, jp, ru, ua, it, sp, cz, sk, de, idn, tr
# Set the default language for PurePerms
# - en
# English message resource by @64FF00 and @Samueljh1 (GitHub)
# Korean message resource by @64FF00 (GitHub)
# Japanese message resource by @onebone and @haniokasai (GitHub)
# Russian message resource by @vvzar and @Pub4Game (GitHub)
# Ukrainian message resource by @samalero (GitHub)
# Italian message resource by @AryToNeX (GitHub)
# Spanish message resource by @iksaku and @JoahDave (Github)
# Czech message resource by @Michael2010117 (GitHub)
# Slovak message resource by @Michael2010117 (GitHub)
# German message resource by @Exxarion (GitHub)
# Indonesian message resource by @DevillordMCPE (GitHub)
# Turkish messages resource by @PainTR (GitHub)
default-language: en

# Disable /op permission for all players
# - true / false
disable-op: true

# Setting this option will allow you to use per-world permissions
# - true / false
enable-multiworld-perms: false

# Enables 'Noeul', a 'pointless' security management system for PurePerms
# - true / false
enable-noeul-sixtyfour: false

# MySQL Settings (Only configure this if you are going to use MySQL data provider)
mysql-settings:
host: "PurePerms-FTW.loveyou.all"
Expand All @@ -44,10 +27,6 @@ mysql-settings:
password: "YourPasswordGoesHere"
db: "YourDBNameGoesHere"

# Sets a minimum length for a Noeul password when registering a new account
# - int
noeul-minimum-pw-length: 6

# Special thanks to @jazzwhistle for helping me with this cool feature! #JAZZWHISTLE-FTW
# Ranks that can only be set on console
# Also, users with a superadmin-rank can only have their rank changed on console
Expand Down
46 changes: 0 additions & 46 deletions resources/groups.yml

This file was deleted.

Loading

0 comments on commit f240b7b

Please sign in to comment.