Hello, I am fauge7, partial owner of ftbcraft. I am wondering how do i get an array of players, then use that list to deposit 100$ into their personal holdings not their bank accounts Code:java Player[] onlinePlayerList = Bukkit.getServer().getOnlinePlayers();for(Player player : onlinePlayerList){econ.depositPlayer(player.getName(),100); that is the snippit of code which would do the function, its giving me a null pointer exception on line 3.
Thanks ^_^ Code:java RegisteredServiceProvider<Economy> rsp = Bukkit.getServer().getServicesManager().getRegistration(Economy.class); that's correct right?
@fauge: yes and then use this to initialize: Code:java if (rsp != null) {econ = rsp.getProvider();} and before using econ check if it is not null