Comments (2)
The last option can be used but with no keys, so in practice it becomes an array of objects:
announcements:
- trigger: streak
interval: 5
message: '%player% is on a hunt!'
- trigger: streak
amount: 100
message: '%player% killed 100 players in a row!'
Parses as:
{
"announcements": [
{
"message": "%player% is on a hunt!",
"trigger": "streak",
"interval": 5
},
{
"amount": 100,
"trigger": "streak",
"message": "%player% killed 100 players in a row!"
}
]
}
Since we're now managing intervals, we'll probably have to loop over all options at runtime anyway to figure out which ones should trigger...
from pvpstats.
Updated requirements based on new features. After reflecting after forgetting we had this issue and this discussion... I am not sure I like the way of setting up these nodes to split up announcements and commands so early. I think there might be a reason to keep them closer together, maybe:
actions:
- trigger: streak
amount: 10
command:
# can be server or player ; maybe server: true / false
scope: server
lines:
- give %player% diamond 1
- permission give %player% hat.dominator
message:
# can be global or player; maybe global: true / false
scope: global
lines:
- %players% is on a rampage!
- There is a new dominator! Welcome %player%
Writing this up I came up with something a bit more flexible but of course more complicated
actions:
- trigger: streak
amount: 10
commands:
server:
- give %player% diamond 1
- permission give %player% hat.dominator
# run a command as the player
player:
- pvpstats show
messages:
global:
- %players% is on a rampage!
- There is a new dominator! Welcome %player%
player:
- You are now a wearing a bounty hat!
All above things apply like further configurable options like "interval or absolute" and "minimal or maximal" and I need to think about whether we always have all values in there as examples or if we can omit values to have less spam
Edit:
By grouping it like this we can allow setting of these map values and have only one value for each integer, right?
Command ideas:
/pvpstats action 10 add command player "me is the best"
/pvpstats action 10 set type interval
/pvpstats action 10 set minimum 50
from pvpstats.
Related Issues (20)
- SSL mysql error HOT 3
- [Suggestion] Add SQLite support HOT 2
- Update? HOT 1
- Placeholders for placeholders api not working HOT 9
- Placeholders don't work for offline players
- [Suggestion] Add players to database on join
- [Issue] Command doesn't work. HOT 2
- [Issue] Placeholders don't work HOT 1
- 1.8 Stats no getting saved sometimes HOT 1
- plugin version HOT 1
- Suggestion HOT 5
- /pvpstats set ... not working and also freeze the game HOT 3
- Could not pass event EntityDamageByEntityEvent to pvpstats v1.5.3 HOT 2
- Suggestion - Log victim's UUID in database
- Duplicate player name on Leaderboard
- Enhancement - Add a custom command to stop a player killstreak HOT 2
- Placeholder api HOT 1
- MySQL Errors HOT 3
- NPE: calcResult HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pvpstats.