Change Youtube Button Link (#275)
* Fix possible NPE in Preferences * Change youtube button link
This commit is contained in:
parent
8d6eb13504
commit
0039b79281
@ -85,8 +85,8 @@ public class YoutubeButton implements GuiItem
|
||||
UtilPlayer.message(_player, C.cGold + C.Bold + C.Strike + "=============================================");
|
||||
UtilPlayer.message(_player, "");
|
||||
|
||||
new JsonMessage(" " + C.Bold + "Click to Open in Web Browser and " + message).click(ClickEvent.OPEN_URL, "https://www.youtube.com/embed/RW3sOmkiEG-A?list=UU1MtBclG_aHPd0nLmUupCKg&controls=0&showinfo=0&autoplay=1").sendToPlayer(_player);
|
||||
new JsonMessage( " " + C.cGreen + C.Line + "http://youtube.com/mineplexgamesofficial").click(ClickEvent.OPEN_URL, "https://www.youtube.com/embed/RW3sOmkiEG-A?list=UU1MtBclG_aHPd0nLmUupCKg&controls=0&showinfo=0&autoplay=1").sendToPlayer(_player);
|
||||
new JsonMessage(" " + C.Bold + "Click to Open in Web Browser and " + message).click(ClickEvent.OPEN_URL, "http://file.mineplex.com/ads.php").sendToPlayer(_player);
|
||||
new JsonMessage( " " + C.cGreen + C.Line + "http://youtube.com/mineplexgamesofficial").click(ClickEvent.OPEN_URL, "http://file.mineplex.com/ads.php").sendToPlayer(_player);
|
||||
UtilPlayer.message(_player, "");
|
||||
UtilPlayer.message(_player, C.cGold + C.Bold + C.Strike + "=============================================");
|
||||
}
|
||||
|
@ -65,7 +65,8 @@ public class PreferencesManager extends MiniPlugin implements ILoginProcessor
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
int accountId = _clientManager.getAccountId(player);
|
||||
_repository.saveUserPreferences(_preferences.remove(accountId));
|
||||
UserPreferences p = _preferences.remove(accountId);
|
||||
if (p != null) _repository.saveUserPreferences(p);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user