• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Transfer money between two players

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#1
You can transfer money between two players. Ussage: /transfermoney <player1> <player2> <amount>. Its only for operators.

cmd create transfermoney transfer money between two players
cmd edit transfermoney 1 let %ifop% = playerstatus(%p%)
cmd edit transfermoney 2 if %ifop%["op"] = %false% then message %p% §cYou dont have permissions to do this command
cmd edit transfermoney 3 if %ifop%["op"] = %false% then exit
cmd edit transfermoney 4 let %target1% = %args%[1]
cmd edit transfermoney 5 let %betrag% = %args%[3]
cmd edit transfermoney 6 let %target2% = %args%[2]
cmd edit transfermoney 7 if %args%[1] notin onlineplayers() then message %p% Player is not online
cmd edit transfermoney 8 if %args%[1] notin onlineplayers() then exit
cmd edit transfermoney 9 if %args%[2] notin onlineplayers() then message %p% Player, you want to transfer the money, is not online
cmd edit transfermoney 10 if %args%[2] notin onlineplayers() then exit
cmd edit transfermoney 11 if varset(%args%[3]) = %false% then message %p% you need an amount which will be transfered
cmd edit transfermoney 12 if varset(%args%[3]) = %false% then exit
cmd edit transfermoney 13 ascon /takemoney %target1% %betrag%
cmd edit transfermoney 14 ascon /givemoney %target2% %betrag%

When you have questions, let me know
 

MuntThee

Tree Puncher
#3
You can transfer money between two players. Ussage: /transfermoney <player1> <player2> <amount>. Its only for operators.

cmd create transfermoney transfer money between two players
cmd edit transfermoney 1 let %ifop% = playerstatus(%p%)
cmd edit transfermoney 2 if %ifop%["op"] = %false% then message %p% §cYou dont have permissions to do this command
cmd edit transfermoney 3 if %ifop%["op"] = %false% then exit
cmd edit transfermoney 4 let %target1% = %args%[1]
cmd edit transfermoney 5 let %betrag% = %args%[3]
cmd edit transfermoney 6 let %target2% = %args%[2]
cmd edit transfermoney 7 if %args%[1] notin onlineplayers() then message %p% Player is not online
cmd edit transfermoney 8 if %args%[1] notin onlineplayers() then exit
cmd edit transfermoney 9 if %args%[2] notin onlineplayers() then message %p% Player, you want to transfer the money, is not online
cmd edit transfermoney 10 if %args%[2] notin onlineplayers() then exit
cmd edit transfermoney 11 if varset(%args%[3]) = %false% then message %p% you need an amount which will be transfered
cmd edit transfermoney 12 if varset(%args%[3]) = %false% then exit
cmd edit transfermoney 13 ascon /takemoney %target1% %betrag%
cmd edit transfermoney 14 ascon /givemoney %target2% %betrag%

When you have questions, let me know
Use if varset() because if you dont you will get errors 😉