From 7d5018a5efa98bce7dd16685a2aa0de076af8c3e Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Sun, 25 Dec 2022 05:50:44 +0100 Subject: [PATCH] Remove plugins/revspace_bounties Replaced by 3 lines in revbank.products: BOUNTY1 -10.00@-expenses/bounties Bedankt voor het vegen/stofzuigen BOUNTY2 -10.00@-expenses/bounties Bedankt voor het afvoeren van het afval BOUNTY3 -25.00@-expenses/bounties Bedankt voor het dweilen --- plugins/revspace_bounties | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 plugins/revspace_bounties diff --git a/plugins/revspace_bounties b/plugins/revspace_bounties deleted file mode 100644 index 483eafb..0000000 --- a/plugins/revspace_bounties +++ /dev/null @@ -1,20 +0,0 @@ -#!perl - -my %bounties = ( - 1 => [ 10, "Bedankt voor het vegen/stofzuigen" ], - 2 => [ 10, "Bedankt voor het afvoeren van het afval" ], - 3 => [ 25, "Bedankt voor het dweilen" ], - 4 => [ 15, "Bedankt voor 't poetsen van alle tafels" ], -); - -sub command :Tab(BOUNTY1,BOUNTY2,BOUNTY3,BOUNTY4) ($self, $cart, $command, @) { - if ($command =~ /BOUNTY(\d+)/) { - $cart - ->add(+$bounties{$1}[0], $bounties{$1}[1]) - ->add_contra("-expenses/bounties", -$bounties{$1}[0], "$command by \$you"); - return ACCEPT; - } - - return NEXT; -} -