-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix #1 - Fix error that happened when a rank was eliminated and a player with that rank joined the server.
- Loading branch information
1 parent
716bd7e
commit 7bd5d85
Showing
17 changed files
with
132 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
[![](https://poggit.pmmp.io/shield.state/RankSystem)](https://poggit.pmmp.io/p/RankSystem) | ||
[![](https://poggit.pmmp.io/shield.api/RankSystem)](https://poggit.pmmp.io/p/RankSystem) | ||
[![](https://poggit.pmmp.io/shield.dl.total/RankSystem)](https://poggit.pmmp.io/p/RankSystem) | ||
|
||
<div align="center"> | ||
<h1> 👑 RankSystem 🔧</h1> | ||
<p>An amazing Rank and Permissions Manager</p> | ||
</div> | ||
|
||
## Description: | ||
An amazing Rank and Permissions Manager. The best ranks manager for PocketMine-MP. | ||
|
||
# Commands | ||
Command | Description | Permission | ||
--- | --- | --- | ||
`/ranks create` | Comming soon! | ranksystem.commands | ||
`/ranks delete <rank>` | Delete a Rank. | ranksystem.commands | ||
`/ranks edit <rank>` | Comming soon! | ranksystem.commands | ||
`/ranks list` | Show all ranks list. | ranksystem.commands | ||
`/ranks set <user> <rank> [expTime]` | Set a Rank to a User | ranksystem.commands | ||
`/ranks remove <user> <rank>` | Remove a Rank of a User | ranksystem.commands | ||
`/ranks setperm <user> <permission>` | Set a Permission to a User | ranksystem.commands | ||
`/ranks removeperm <user> <permission>` | Remove a Permission of a User | ranksystem.commands | ||
`/ranks perms <plugin>` | Show a list of all plugin permissions | ranksystem.commands | ||
`/ranks credits` | Show RankSystem Credits | ranksystem.commands | ||
|
||
# Features | ||
|
||
- Multiple Ranks per user support | ||
- Temp-ranks System | ||
- Easy Rank Creation / Edit System in-game | ||
- SQLite3 Provider Support | ||
- Yaml Provider Support | ||
- Ranks inheritance system to allow you to inherit group permissions | ||
- Permissions per User | ||
- Profile System | ||
- Provides simple and flexible API for plugin developers | ||
- And more...! | ||
|
||
# Project information | ||
Version | Pocketmine API | PHP | Status | ||
--- | --- | --- | --- | ||
0.0.1 | [PM4](https://github.com/pmmp/PocketMine-MP/tree/master) & [PM3](https://github.com/pmmp/PocketMine-MP/tree/stable) | 7.3 => 8 | Functional | ||
<div align="center"> | ||
<h1> 👑 RankSystem 🔧</h1> | ||
<p>An amazing Rank and Permissions Manager</p> | ||
</div> | ||
|
||
## Description: | ||
An amazing Rank and Permissions Manager. The best ranks manager for PocketMine-MP. | ||
|
||
# Commands | ||
Command | Description | Permission | ||
--- | --- | --- | ||
`/ranks create` | Comming soon! | ranksystem.commands | ||
`/ranks delete <rank>` | Delete a Rank. | ranksystem.commands | ||
`/ranks edit <rank>` | Comming soon! | ranksystem.commands | ||
`/ranks list` | Show all ranks list. | ranksystem.commands | ||
`/ranks set <user> <rank> [expTime]` | Set a Rank to a User | ranksystem.commands | ||
`/ranks remove <user> <rank>` | Remove a Rank of a User | ranksystem.commands | ||
`/ranks setperm <user> <permission>` | Set a Permission to a User | ranksystem.commands | ||
`/ranks removeperm <user> <permission>` | Remove a Permission of a User | ranksystem.commands | ||
`/ranks perms <plugin>` | Show a list of all plugin permissions | ranksystem.commands | ||
`/ranks credits` | Show RankSystem Credits | ranksystem.commands | ||
|
||
# Features | ||
|
||
- Multiple Ranks per user support | ||
- Temp-ranks System | ||
- Easy Rank Creation / Edit System in-game | ||
- SQLite3 Provider Support | ||
- Yaml Provider Support | ||
- Ranks inheritance system to allow you to inherit group permissions | ||
- Permissions per User | ||
- Profile System | ||
- Provides simple and flexible API for plugin developers | ||
- And more...! | ||
|
||
# Project information | ||
Version | Pocketmine API | PHP | Status | ||
--- | --- | --- | --- | ||
0.0.1 | [PM4](https://github.com/pmmp/PocketMine-MP/tree/master) & [PM3](https://github.com/pmmp/PocketMine-MP/tree/stable) | 7.3 => 8 | Functional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
#Plugin by IvanCraft623 (Twitter: @IvanCraft623) | ||
|
||
/* | ||
8888888 .d8888b. .d888 888 .d8888b. .d8888b. .d8888b. | ||
888 d88P Y88b d88P" 888 d88P Y88b d88P Y88b d88P Y88b | ||
888 888 888 888 888 888 888 .d88P | ||
888 888 888 8888b. 88888b. 888 888d888 8888b. 888888 888888 888d888b. .d88P 8888" | ||
888 888 888 "88b 888 "88b 888 888P" "88b 888 888 888P "Y88b .od888P" "Y8b. | ||
888 Y88 88P .d888888 888 888 888 888 888 .d888888 888 888 888 888 d88P" 888 888 | ||
888 Y8bd8P 888 888 888 888 Y88b d88P 888 888 888 888 Y88b. Y88b d88P 888" Y88b d88P | ||
8888888 Y88P "Y888888 888 888 "Y8888P" 888 "Y888888 888 "Y888 "Y8888P" 888888888 "Y8888P" | ||
*/ | ||
|
||
namespace IvanCraft623\RankSystem\command; | ||
|
||
use pocketmine\command\Command; | ||
use pocketmine\plugin\Plugin; | ||
use pocketmine\plugin\PluginOwned; | ||
|
||
abstract class PluginCommand extends Command implements PluginOwned { | ||
|
||
private $owningPlugin; | ||
|
||
public function __construct(string $name, $plugin){ | ||
parent::__construct($name); | ||
$this->owningPlugin = $plugin; | ||
$this->usageMessage = ""; | ||
} | ||
|
||
/** | ||
* @return Plugin | ||
*/ | ||
public function getOwningPlugin() : Plugin{ | ||
return $this->owningPlugin; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters