[1.12.1] API additions and Resource Pack Arrow fix.
Changes:
Fix: It was not possible to use the resource pack arrow in versions other than 1.12 and 1.11. This has been fixed and the RPA is now supported in versions 1.9 and up. Thanks, @NullBlox for pointing this out
API Additions: Four new methods have been added to the API. They allow you to set a custom start message for both the Compass and GPS when used.
Code (Java):
void startGPS
(String customStartMessage, Player player,
String start,
String destination
) void startGPS
(String customStartMessage, Player player,
String destination
) void startCompass
(String customStartMessage, Player player,
String destination
) void startCompass
(String customStartMessage, Player player, Location location
)
The methods without the custom start message parameter are still available.
As well as the methods above you can set a custom stop message in the GPSStopEvent. The method for setting the message is: