Skip to content

Repository files navigation

KristPay3

Commands

For Players

  • /bal[ance] (kristpay.balance.get.base)
    View your own Krist balance
  • /txs/transactions (kristpay.list.base)
    View your own transaction history
  • /pay <address> <amount> (kristpay.pay.address)
    Pay another player or Krist address
  • /deposit (no permission node)
    View your own deposit address
  • /welfare (kristpay.welfare.check.base)
    Check whether you are opted into welfare
  • /welfare opt in (kristpay.welfare.opt.in.base)
    Opt into welfare
  • /welfare opt out (kristpay.welfare.opt.out.base)
    Opt out of welfare
  • /welfare return (kristpay.welfare.return.base)
    Return your welfare rewards to the master wallet

For Staff

  • /bal[ance] <player> (kristpay.balance.get.others)
    View another player's Krist balance
  • /setbal [player] <amount> (kristpay.balance.set)
    Set a player's Krist balance
  • /grant <player> <amount> (kristpay.balance.grant)
    Grant a player Krist (semantically equivalent to /setbal oldBal+delta)
  • /txs <player>/transactions <player> (kristpay.list.others)
    View another player's transaction history
  • /masterbal (kristpay.masterbal.check)
    View the master wallet and the allocated / unallocated amounts
  • /welfare <player> (kristpay.welfare.check.others)
    Check whether a player is opted into welfare
  • /welfare return <player> (kristpay.welfare.return.others)
    Return a player's welfare rewards to the master wallet

Permissions

PermissionRoleDescription
kristpay.balance.get.baseUSERAllows the user to view their own Krist balance
kristpay.balance.get.othersMODAllows the user to view another user's Krist balance
kristpay.balance.set.baseADMINSet your Krist balance
kristpay.balance.set.othersADMINSet another user's Krist balance
kristpay.grant.baseADMINGrant yourself Krist
kristpay.grant.othersADMINGrant another user Krist
kristpay.list.baseUSERList your own transactions
kristpay.list.othersMODList another user's transactions
kristpay.masterbal.checkMODAllow the user to check the master wallet balance
kristpay.pay.addressUSERAllow the user to pay another user or address
kristpay.welfare.check.baseUSERAllow the user to check whether they are opted into welfare
kristpay.welfare.check.othersMODCheck whether another user is opted into welfare
kristpay.welfare.claimNONEAllow the user to claim all types of welfare
kristpay.welfare.claim.faucetUSERAllow the user to run /faucet
kristpay.welfare.claim.loginUSERAllow the user to claim the daily login bonus
kristpay.welfare.opt.inUSERAllow the user to opt in to welfare
kristpay.welfare.opt.outUSERAllow the user to opt out of welfare
kristpay.welfare.return.baseUSERAllows the user to return the welfare rewards they have received back to the server
kristpay.welfare.return.othersADMINForce another user to return the welfare rewards they have received

API Usage

# gradle.propertieskristpayVersion = <version>
// build.gradle.ktsval kristpayVersion:String by project
repositories {
maven {
url = uri("https://maven.pkg.github.com/SwitchCraftCC/KristPay3-OSS")
content {
includeGroup("io.sc3")
}
}
}
dependencies {
compileOnly("io.sc3", "kristpay-api", kristpayVersion)
}

License

This mod and its source code is licensed under the BSD 3-Clause.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages