Milestones
Allows you to collect data about players using several conditions and events.
Commands:
/miles, /milestones, /mile
<> == required argument
() == optional argument
* == all
/milestones reload - reloads configuration files... how unexpected.
/milestones clear <playerName/global/*> <milestoneName/*> - clears data from storage based on your selectors.
global == clear stats from a global milestone (= same for all players)
/milestones list - list configured milestones
/milestones info <milestoneName> - writes info about exact milestone
/milestones stats (playerName) - prints out milestone statistics
/milestones addItem <itemName> - saves item in datastorage.yml, can be used in configuration with a intern placeholder %item_<itemname>%
/milestones getItem <itemName> - gives you the item ^^'
milestones.yml
== that's where you set the conditions and rewards
# milestones.yml
# It is possible to delete any section to disable it entirely.
# If a boolean is deleted, the plugin will take it as 'false' value.
# Whatever name you want.
pvp :
# Required
# entitykill/blockbreak/blockplace/playerjoin/playerquit/playerchat
type : entitykill
# Required
# Displayed in the info, pretty much useless for now.
display-name : '&cPvP &7 ( Player vs Pig ) '
# Condition section
conditions :
# Set item type, or an item from the datastorage.yml
# format: MATERIAL_NAME;DATA
# ex.: STONE;2
# Using datastorage to add item:
# Save item in-game using /miles addItem <itemName>
# Add to the list below with the following placeholder:
# %item_<itemName>%
# Can be used in tools, reward items and in-inventory.
# This section is also used with blockplace event.
tools :
- DIAMOND_SWORD
# Used to determine what type of block/entity or which message should count.
# blockbreak == block material
# entitykill == entity type
# playerchat == message
targets :
- PIG
# Too see biome names, simply press F3..
# Possible biome names..
biomes :
- FOREST
- PLAINS
# Checks for region names the player is standing in. Requires WorldGuard..
# Player has to be at least in one of these..
reions :
- pvp_region
# I think the description is a bit useless on some nodes..
# Possible world names, player has to be in at least one of these.. kinda makes sense.
worlds :
- world
# Items required to be in the inventory, player has to have all of them
in-inventory :
- WHEAT
# Permission required, player has to have all of them.
permissions :
- 'some.made.up.permission'
# Global milestone means that the points are counted for all players.
# The rewards don't work well with this, will improve.
global-milestone : false
# Counts the milestone only once, works with both global and personal milestones.
log-only-once : false
rewards :
# Commands to run by console.
console-commands :
- msg %player% Uumf, you did it, congrats.
# Commands run by the player
player-commands :
- say I'm the greatest.
# Items to give the player, won't work with full inv.
# Not case sensitive, can use item placeholder.
items :
- aPPle
# Message sent to the player.
inform-message :
- '&cYou just killed %milestoneScore%. innocent pig.. GJ!'
# Message broadcasted to all.
broadcast-message :
- '&c %player% is a pig killer!'
staged-rewards :
# Count of points required to get the rewards.
'10' :
# Same as basic rewards.
broadcast-message :
- '&f %player% &3hit &f10&3 scores in &f%milestoneName%&3!'
# Gives the reward
repeat : true
# Denies normal reward,.. the one that's given every time.
deny-normal : false
'20' :
broadcast-message :
- '&f %player% &3hit &f20&3 scores in &f%milestoneName%&3!'
repeat : false
Plugin placeholders:
%player% - Player's name
%playerDisplay% - Player's display name
%playerSuffix% - Suffix from Vault
%playerPrefix% - Prefix from Vault
%playerMaxHP%
%playerHP%
%playerX%
%playerY%
%playerZ%
%playerWorld%
%playerFood%
%playerLevel% - Xp level
%milestoneName%
%milestoneDisplay%
%milestoneScore%
%item<itemName>% - ItemStack placeholder used in item lists in milestones.yml
PlaceholderAPI Placeholders:
%milestones_<milestoneName>% - score of the milestone, works for both global and personal
Optional dependencies:
- Vault - for permissions & chat placeholders
- PlaceholderAPI - for the placeholder... ^^'
- WorldGuard - for region support
- WorldEdit - required for worldguard to work
Don't hesitate to leave a review. Feature requests and bug reports send to Wertík#5332 on discord. (if you don't have it, just PM me here)
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta