You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SimpleEcon/SimpleEcon.cs
+78-1Lines changed: 78 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ namespace SimpleEcon
18
18
publicclassSimpleEcon:TerrariaPlugin
19
19
{
20
20
publicoverridestringName=>"Simple Economy";
21
-
publicoverrideVersionVersion=>newVersion(1,0,3);
21
+
publicoverrideVersionVersion=>newVersion(1,1,0);
22
22
publicoverridestringAuthor=>"Average";
23
23
publicoverridestringDescription=>"A simple, light-weight economy TShock V5 plugin that can also be utilized by other plugins. No bullshit dependecies!";
player.SendErrorMessage($"The moderator {args.Player.Name} has reset your balance! Your new balance is: {PlayerManager.GetPlayer(player.Name).balance}{(PlayerManager.GetPlayer(player.Name).balance==1?config.currencyNameSingular:config.currencyNamePlural)}");
304
+
return;
305
+
306
+
}
307
+
308
+
privatevoidTakeBal(CommandArgsargs)
309
+
{
310
+
if(args.Parameters.Count==0)
311
+
{
312
+
args.Player.SendErrorMessage("Please enter a player name! /tbal <user> <amount>");
313
+
return;
314
+
}
315
+
if(args.Parameters.Count==1)
316
+
{
317
+
args.Player.SendErrorMessage($"Please enter a quantity to take away from the player! /tbal {args.Parameters[0]} <amount>");
player.SendErrorMessage($"The moderator {args.Player.Name} has manipulated your currency and removed {amount}{(amount==1?config.currencyNameSingular:config.currencyNamePlural)} from your account! Your new balance is: {PlayerManager.GetPlayer(player.Name).balance}{(PlayerManager.GetPlayer(player.Name).balance==1?config.currencyNameSingular:config.currencyNamePlural)}");
0 commit comments