By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
public function getData(Player $player): \mystats\utils\Data {
$api = \mystats\MyStats::getAPI();
return $api->getPlayerData($player);
}public function getData(Player $player): \mystats\utils\Data {
$api = \mystats\MyStats::getAPI();
return $api->getPlayerData($player);
}
public function getKills(Player $player): int {
$data = $this->getData($player);
return $data->getKills();
}| format | description |
|---|---|
| %name | player`s name |
| %level | player`s level |
| %x, %y, %z | player`s coords |
| %itemid | player`s item in hand id |
| %itemname | player`s item in hand name |
| %broken | broken blocks |
| %placed | placed blocks |
| %kills | kills |
| %deaths | deaths |
| %money | player`s money |
| %rank | player`s rank |
| %faction | player`s faction |
| %online | count online players |
| %version | server version |
| %ip | server address |
| %port | server port |
| %tps | server tps |
| %ping | player's ping |
---
config-version: '1.4.6'
prefix: '&5&l[ &r&2MyStats &l&5]'
economy: 'false'
factions: 'false'
ranks: 'false'
mainFormat:
- '&5-- == &6[&eMyStats&6] &5== ---'
- '&3Welcome: &b%name'
- '&3You are playing on &b%level'
- '&9- &3Kills: %kills'
- '&9- &3Deaths: %deaths'
cmdFormat:
- '&5--- == &6[&eMyStats&6] &5== ---'
- '&9- &3Name: &b%name'
- '&9- &3K/D: &b%kills / %deaths'
- '&9- &3Broken Blocks: &b%broken'
- '&9- &3Placed Blocks: &b%placed'
- '&9- &3Joins: &b%joins'
filter: 'false'
defaultFormat: '1'
popupWorlds:
- Lobby
- Spawn
- PlotMe
tipWorlds:
- world
- Hub
...
# ---------------------------------------------------------------------------- #
##
### Economy
##
# Economy types: EconomyAPI
# To enable economy type Economy type
economy: 'EconomyAPI'
# ---------------------------------------------------------------------------- ## ---------------------------------------------------------------------------- #
##
### PurePerms
##
# Enable pureperms
ranks: 'true'
# ---------------------------------------------------------------------------- ## ---------------------------------------------------------------------------- #
##
### Factions
##
# Enable faction
factions: 'true'
# ---------------------------------------------------------------------------- #Reply to review by :
You can leave one review per plugin release, and delete or update your review at any time