mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-03-12 06:30:28 +01:00
Prevent from scamming
This commit is contained in:
parent
85371eefd7
commit
e18269a7b7
@ -30,6 +30,11 @@ public class PriceChecker implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (line.indexOf('B') != line.lastIndexOf('B') || line.indexOf('S') != line.lastIndexOf('S')) {
|
||||
event.setOutcome(INVALID_PRICE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isPrice(part[0])) {
|
||||
line = "B " + line;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user