A little change nothing more.
Open up ShopHandler.java.
and search:
Change the # for how fast the shop gotta restock. Just pick between 1-100.
then search:
You'll see something like this.
Change # for how many the shop need to restock ( 100, 1000 ect. )
Save and compile.
Q: Why i made this?
A: Because people still whine about server restarts.
Open up ShopHandler.java.
and search:
- Code:
public static int MaxShowDelay = #;
Change the # for how fast the shop gotta restock. Just pick between 1-100.
then search:
- Code:
public void process() {
You'll see something like this.
- Code:
public void process() {
boolean DidUpdate = false;
for (int i = 1; i <= TotalShops; i++) {
for (int j = 0; j < MaxShopItems; j++) {
if (ShopItems[i][j] > 0) {
if (ShopItemsDelay[i][j] >= MaxShowDelay) {
if ((j <= ShopItemsStandard[i])
&& (ShopItemsN[i][j] <= ShopItemsSN[i][j])) {
if (ShopItemsN[i][j] < ShopItemsSN[i][j]) {
ShopItemsN[i][j] += #; // if amount lower then
// standard, increase it
// !
}
} else {
DiscountItem(i, j);
}
ShopItemsDelay[i][j] = 0;
DidUpdate = true;
}
ShopItemsDelay[i][j]++;
}
}
Change # for how many the shop need to restock ( 100, 1000 ect. )
Save and compile.
Q: Why i made this?
A: Because people still whine about server restarts.