description |
---|
Updates can also contain Math operations |
economy.update(((query, update) -> {
// [...]
update.inc("field", 100);
})).execute();
economy.update(((query, update) -> {
// [...]
update.decr("field", 100);
})).execute();
economy.update(((query, update) -> {
// [...]
update.mul("field", 100);
})).execute();
economy.update(((query, update) -> {
// [...]
update.div("field", 100);
})).execute();
economy.update(((query, update) -> {
// [...]
update.inc("field", 100);
})).execute();
economy.update(((query, update) -> {
// [...]
update.min("field", 100);
})).execute();
economy.update(((query, update) -> {
// [...]
update.max("field", 100);
})).execute();