Spoiler 

using System;
namespace MCLawl
{
public class CmdGimme : Command
{
public override string name { get { return "gimmemoney"; } }
public override string shortcut { get { return "gimme"; } }
public override string type { get { return "other"; } }
public override bool museumUsable { get { return true; } }
public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }
public override void Use(Player p, string message)
{
if (p.overallBlocks >= 0)
{
if (p.overallBlocks >= 1001)
if (p.overallBlocks < 2501)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %21000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys+ "%e.");
}
if (p.overallBlocks >= 2501)
if (p.overallBlocks < 5001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %22500 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys+ "%e.");
}
if (p.overallBlocks >= 5001)
if (p.overallBlocks < 10001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %25000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 10001)
if (p.overallBlocks < 25001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %210000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 25001)
if (p.overallBlocks < 50001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %225000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 50001)
if (p.overallBlocks < 100001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %250000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 100001)
if (p.overallBlocks < 250001)
{
p.money = p.money + 2;
Player.SendMessage(p, "You got more then %2100000 %eblocks, you get %22%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 250001)
if (p.overallBlocks < 500001)
{
p.money = p.money + 2;
Player.SendMessage(p, "You got more then %2250000 %eblocks, you get %22%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 500001)
if (p.overallBlocks < 1000001)
{
p.money = p.money + 2;
Player.SendMessage(p, "You got more then %2500000 %eblocks, you get %22%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 1000001)
if (p.overallBlocks < 2500001)
{
p.money = p.money + 5;
Player.SendMessage(p, "You got more then %21000000 %eblocks, you get %25%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 2500001)
if (p.overallBlocks < 5000001)
{
p.money = p.money + 5;
Player.SendMessage(p, "You got more then %22500000 %eblocks, you get %210%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 5000001)
if (p.overallBlocks < 10000001)
{
p.money = p.money + 10;
Player.SendMessage(p, "You got more then %25000000 %eblocks, you get %210%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 10000001)
if (p.overallBlocks < 25000001)
{
p.money = p.money + 100000;
Player.GlobalChat(p, p.color + p.name + "%e is a %cMasterBuilder%e, he modified more than %210000000 %eblocks!", false);
Player.SendMessage(p, "You got more than %210000000 %eblocks, you get %2MAXIMUM%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 25000001)
{
p.money = p.money + 100000;
Player.GlobalChat(p, p.color + p.name + "%e is a %4MasterBuilder%e, he modified more than %225000000 %eblocks!", false);
Player.SendMessage(p, "You got more then %225000000 %eblocks, you get %2MAXIMUM%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
}
else
{
//Message returned if player has no money
Player.SendMessage(p, "You don't have enough blocks modified.");
}
}
public override void Help(Player p)
{
//Help message
Player.SendMessage(p, "/gimmemoney - Gives a player money if they modified x blocks.");
}
}
}
namespace MCLawl
{
public class CmdGimme : Command
{
public override string name { get { return "gimmemoney"; } }
public override string shortcut { get { return "gimme"; } }
public override string type { get { return "other"; } }
public override bool museumUsable { get { return true; } }
public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }
public override void Use(Player p, string message)
{
if (p.overallBlocks >= 0)
{
if (p.overallBlocks >= 1001)
if (p.overallBlocks < 2501)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %21000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys+ "%e.");
}
if (p.overallBlocks >= 2501)
if (p.overallBlocks < 5001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %22500 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys+ "%e.");
}
if (p.overallBlocks >= 5001)
if (p.overallBlocks < 10001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %25000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 10001)
if (p.overallBlocks < 25001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %210000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 25001)
if (p.overallBlocks < 50001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %225000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 50001)
if (p.overallBlocks < 100001)
{
p.money = p.money + 1;
Player.SendMessage(p, "You got more then %250000 %eblocks, you get %21%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 100001)
if (p.overallBlocks < 250001)
{
p.money = p.money + 2;
Player.SendMessage(p, "You got more then %2100000 %eblocks, you get %22%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 250001)
if (p.overallBlocks < 500001)
{
p.money = p.money + 2;
Player.SendMessage(p, "You got more then %2250000 %eblocks, you get %22%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 500001)
if (p.overallBlocks < 1000001)
{
p.money = p.money + 2;
Player.SendMessage(p, "You got more then %2500000 %eblocks, you get %22%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 1000001)
if (p.overallBlocks < 2500001)
{
p.money = p.money + 5;
Player.SendMessage(p, "You got more then %21000000 %eblocks, you get %25%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 2500001)
if (p.overallBlocks < 5000001)
{
p.money = p.money + 5;
Player.SendMessage(p, "You got more then %22500000 %eblocks, you get %210%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 5000001)
if (p.overallBlocks < 10000001)
{
p.money = p.money + 10;
Player.SendMessage(p, "You got more then %25000000 %eblocks, you get %210%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 10000001)
if (p.overallBlocks < 25000001)
{
p.money = p.money + 100000;
Player.GlobalChat(p, p.color + p.name + "%e is a %cMasterBuilder%e, he modified more than %210000000 %eblocks!", false);
Player.SendMessage(p, "You got more than %210000000 %eblocks, you get %2MAXIMUM%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
if (p.overallBlocks >= 25000001)
{
p.money = p.money + 100000;
Player.GlobalChat(p, p.color + p.name + "%e is a %4MasterBuilder%e, he modified more than %225000000 %eblocks!", false);
Player.SendMessage(p, "You got more then %225000000 %eblocks, you get %2MAXIMUM%c Coin%e.");
Player.SendMessage(p, "You now got %2" + p.money + " %c" + Server.moneys +"%e.");
}
}
else
{
//Message returned if player has no money
Player.SendMessage(p, "You don't have enough blocks modified.");
}
}
public override void Help(Player p)
{
//Help message
Player.SendMessage(p, "/gimmemoney - Gives a player money if they modified x blocks.");
}
}
}
This code is ment for minecraft classic.
It gives you coins,if you have modifyed enough blocks (if you say /gimmemoney)
The thing is, you can use /gimmemoney forever. I want it so it could be used ONCE.