File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1010import io .swagger .v3 .oas .models .info .Info ;
1111import net .milkbowl .vault .economy .Economy ;
1212import org .bukkit .Bukkit ;
13+ import org .bukkit .configuration .file .FileConfiguration ;
1314import org .bukkit .plugin .RegisteredServiceProvider ;
1415import org .bukkit .plugin .java .JavaPlugin ;
1516
@@ -24,7 +25,8 @@ public class PluginEntrypoint extends JavaPlugin {
2425 private static Javalin app = null ;
2526 @ Override
2627 public void onEnable () {
27-
28+ saveDefaultConfig ();
29+ FileConfiguration bukkitConfig = getConfig ();
2830 setupEconomy ();
2931
3032 // Get the current class loader.
@@ -44,7 +46,7 @@ public void onEnable() {
4446 });
4547 }
4648 // Don't create a new instance if the plugin is reloaded
47- app .start (4567 );
49+ app .start (bukkitConfig . getInt ( "port" ) );
4850
4951 app .before (ctx -> log .info (ctx .req .getPathInfo ()));
5052
Original file line number Diff line number Diff line change 1+ port : 4567
You can’t perform that action at this time.
0 commit comments