Conditionals
A plugin that will automate various tasks like rewarding, punishing, promoting players when certain conditions are met. This is the first release and can still contain bugs but most features should be working as of version 0.1. Please report any bugs you might find in the comments.
Config
Debug mode: false Time: (same counting system as my previous plugin, times can be copied over from those configs) Enable: false Update interval: 5 Save interval: 30 Leaderboard update interval: 30 Monitor chat: false (doesn't do anything right now) Conditions1: In group: Newcomer; true Min time: 1800 Result1: Command: '%p is now a Member;rank %p Member' (multiple commands are split with a ; ) Activate1: After minutes: 1 On login: true
Possible Conditions
(that should in theory be working)
- InGroup:groupname,true or false
- In Primary Group:groupname,true or false
- Has Permission:permissionname,true or false,world
- Has item:ID,amount,true or false
- Is In Region:regionname,true or false
- In world:worldname, true or false
- Uses spoutcraft: true or false
- Min money:10
- Max money:20
- Min exp:100
- Max exp:200
- Min time:1000
- Max time:2000
- Min strikes:1
- Max strikes:5
Commands
/cond or /conditionals [action]
Actions:
- help: lists actions
- checktime: gives your time played
- checktime [player name] : gives the time a player has been online
- leaderboard: give the 10 players with the most minutes played
- settime [player name] [number]: sets the played time
- givestrike [player name]: gives 1 more strike to the player
- setstrikes [player name] [number]: sets amount of strikes
- checkstrikes: give the amount of strikes you have
- checkstrikes [name]: give the amount of strikes the player has
Permissions
- conditionals.*: Allows all commands.
- conditionals.leaderboard: Allows the leaderboard command
- conditionals.checktime: Allows the checktime command
- conditionals.checktimeother: Allows the checktime [player name] command
- conditionals.givestrike: Allows the givestrike command
- conditionals.setstrikes: Allows the setstrikes command
- conditionals.checkstrikes: Allows the checkstrikes command
- conditionals.checkstrikesother: Allows the checkstrikes [playername] command
- conditionals.settime:Allows the settime command
Copied the command execution feature of this to my Autorank plugin, probably making that better for what most of you guys are trying to do.
@AssRealm @Stonehengeflk98
It -should- work :P please tell me if something doesn't work, having no time to test all of these features is the main reason why I haven't put too much work into this
this is EXACTLY what i'm looking for! thanks!!! :D €: does it work on CB 1.2.5?
Conditions1:
In group: Chicken; true
Min time: 60
Result1:
Command: /say &p is now a Sheep Rank;/pex user &p group set Sheep
Activate1:
After minutes: 1
Conditions2:
In group: Sheep; true
Min time: 180
Result2:
Command: /say &p is now a Pig Rank;/pex user &p group set Pig
Activate2:
After minutes: 1
Will this work?
@AssRealm
time is in minutes but beware that the plugin is mostly untested, been short on time lately.
How do i use this plugin?
Is the time calculated in minutes/hours or miliiseconds
D: i dont understand
Its not saving or checking times, any suggestions?
Messages would be a nice feature, too.
So like "Remember to lock it using /cprivate!" when the user gets a chest. Maybe also check what he has in his hand in the very moment.