Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit

Permalink
poin enable switch
Browse files Browse the repository at this point in the history
  • Loading branch information
naturefreshmilk committed Jul 2, 2018
1 parent 4aa89ab commit 65cd5a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/io/rudin/minetest/tileserver/TileServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public static void main(String[] args) throws Exception {
injector.getInstance(WebSocketUpdater.class).init();

//Register poi mapblock listener
injector.getInstance(PoiMapBlockListener.class).setup();
if (cfg.poiEnable()) {
injector.getInstance(PoiMapBlockListener.class).setup();
}

ScheduledExecutorService executor = injector.getInstance(ScheduledExecutorService.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,17 @@ public interface TileServerConfig extends Config {
@DefaultValue("2")
int playerUpdateInterval();

/*
POI stuff
*/

@Key("poi.enable")
@DefaultValue("true")
boolean poiEnable();

@Key("tiles.directory")
@DefaultValue("target/tiles")
@Deprecated
String tileDirectory();

/*
Expand Down

0 comments on commit 65cd5a4

Please sign in to comment.