Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void holidayLogin(Player player) {
- if (WurmCalendar.isEaster() | Requiem.isTestServer()) {
- String message = "Happy Easter! Be on the lookout for the Easter Bunny and its eggs!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemValentinesDay() | Requiem.isTestServer()) {
- String message = "Happy Valentines Day!";
- RequiemValentinesGift.onPlayerLogin(player);
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemIndependenceDay() | Requiem.isTestServer()) {
- RequiemIndependenceDayGift.onPlayerLogin(player);
- String message = "Happy Independence Day!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemCanadaDay() | Requiem.isTestServer()) {
- RequiemCanadaDayGift.onPlayerLogin(player);
- String message = "Happy Canada Day!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemVictoriaDay() | Requiem.isTestServer()) {
- RequiemVictoriaDayGift.onPlayerLogin(player);
- String message = "Happy Victoria Day!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemThanksgiving() | Requiem.isTestServer()) {
- RequiemThanksgivingGift.onPlayerLogin(player);
- String message = "Happy Thanksgiving Day!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemHalloween() | Requiem.isTestServer()) {
- String message = "Happy Halloween! The creepy crawly creatures are out and about. Go out and find some Halloween fun, but don't eat too many sweets!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemAnniversary() | Requiem.isTestServer()) {
- RequiemAnniversaryGift.onPlayerLogin(player);
- String message = String.format("It is now Requiem of Wurm's %s anniversary! December 1st through December 14th, we are celebrating our %s year here at Requiem of Wurm. Thank you for your support and for choosing this server. See you next year!", RequiemAnniversaryGift.formattedYear, RequiemAnniversaryGift.formattedYear);
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemChristmas() | Requiem.isTestServer()) {
- RequiemChristmasGift.onPlayerLogin(player);
- String message = "Merry Christmas to you! Enjoy your presents from Santa and be careful that the grinch does not pay you a visit.";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemNewYear() | Requiem.isTestServer()) {
- RequiemNewYearGift.onPlayerLogin(player);
- String message = "Happy New Year!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Holidays.isRequiemStPatricksDay() | Requiem.isTestServer()) {
- RequiemStPatrickDayGift.onPlayerLogin(player);
- String message = "Happy St. Patrick's Day!";
- player.getCommunicator().sendServerMessage(message, 0, 255, 0);
- }
- if (Misc.isRequiemPatreon(player)) {
- PatreonSleepPowderGift.onPlayerLogin(player);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement