Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update EcoModule.cs
Fix being able to lower peoples money by paying a negative amount
  • Loading branch information
TheCrunchy authored Oct 29, 2024
commit cdf3e690af1b6c0ac7accf5e69e4b8deb3a8331b
5 changes: 4 additions & 1 deletion Essentials/Commands/EcoModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ public void EcoCheck(string Player) {
[Command("pay")]
[Permission(MyPromoteLevel.None)]
public void EcoPay(string Player, long amount) {

if (amount <= 0) {
Context.Respond("Amount cannot be negative");
return;
}
if (Context.Player == null) {
Context.Respond("Console cannot execute this command");
return;
Expand Down