-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize CSV Handler and start implementing logging. + Optimize CSV handler by removing buy/sell data from csv as its not needed for trade.csv. + Update logging to use logging levels. + Remove trade.html as it will be revamped and it doesn't work with the new trade.csv. + Removed unused values in config.yml.
- Loading branch information
1 parent
e0ccc7b
commit 9b37064
Showing
8 changed files
with
88 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ public class Config { | |
@Getter | ||
private static Config config; | ||
|
||
private boolean webServer; | ||
private boolean webServerEnabled; | ||
private boolean sellPriceDifferenceVariationEnabled; | ||
private boolean tutorial; | ||
private boolean disableMaxBuysSells; | ||
|
@@ -66,7 +66,7 @@ private void loadConfig() { | |
FileConfiguration configF = Main.getInstance().getDataFiles().getConfig(); | ||
setApiKey(configF.getString("apiKey", "xyz")); | ||
setEmail(configF.getString("email", "[email protected]")); | ||
setWebServer(configF.getBoolean("web-server-enabled", true)); | ||
setWebServerEnabled(configF.getBoolean("web-server-enabled", true)); | ||
setPort(configF.getInt("port", 8123)); | ||
setTimePeriod(configF.getInt("time-period", 30)); | ||
setMenuTitle(configF.getString("menu-title", "Shop")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,6 @@ | |
|
||
## -- General Settings -- ## | ||
|
||
## API key given on sign-up | ||
api-key: 'xyz' | ||
|
||
## Email used on sign-up | ||
email: '[email protected]' | ||
|
||
## Enable/Disable integrated Web Server. | ||
## Info: Use /trade to view the web-server | ||
web-server-enabled: true | ||
|
Oops, something went wrong.