https://github.com/javierleon9966/alias
Detects players possible alternatives accounts
https://github.com/javierleon9966/alias
php pmmp-plugin pocketmine-plugin pocketmine-plugins
Last synced: 9 months ago
JSON representation
Detects players possible alternatives accounts
- Host: GitHub
- URL: https://github.com/javierleon9966/alias
- Owner: JavierLeon9966
- License: gpl-3.0
- Created: 2021-03-24T20:24:42.000Z (over 5 years ago)
- Default Branch: stable
- Last Pushed: 2023-07-03T20:22:52.000Z (about 3 years ago)
- Last Synced: 2024-09-27T10:21:13.875Z (almost 2 years ago)
- Topics: php, pmmp-plugin, pocketmine-plugin, pocketmine-plugins
- Language: PHP
- Homepage:
- Size: 98.6 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alias
Detects players possible alternatives accounts
## Overview
This plugin stores players `Address`, `ClientRandomId`, `DeviceId`, `SelfSignedId`, and `XUID`.
Which will detect players accurately and hard for hackers to ban evade.
Also it has a command and alert system to staff members.
## Configuration
In the configuration you can modify the `mode`, `data` and `alert`.
Here's a example of the default configuration:
```yaml
alert: false #Everyone that has alias.alerts permission
ban: 'You are banned' #Ban message
mode: none #Options: none, ban
data: ['Address', 'ClientRandomId', 'DeviceId', 'SelfSignedId', 'XUID'] #Check for matching data in which will alert the staff members or ban the player
# Data that can be saved from a detected player, usually you would want to save the data that can't be spoofed, so it doesn't ban
# innocent players, but you may also want to save legit players that attempt to ban evade.
save: ['Address', 'XUID']
```
## Command
`/alias `
Only users with `alias.command.alias` permission can execute this command.
Returns a list of possible players matching `IP`, `ClientRandomId`, `DeviceId`, `SelfSignedId`, and `XUID`.
## API
You can use this plugin API by the following:
```php
use JavierLeon9966\Alias\Alias;
use SOFe\AwaitGenerator\Await;
Await::f2c(function() use($player){
$database = yield from Alias::getDatabase();
$players = yield from $database->getPlayersMatchingAddressesFrom($player->getName());
//Do something with the players whose adresses match the given player's name
});
```
## Database
In the data folder of this plugin there is a file called `players.sqlite` which there's stored all the players that have logged into the server.