Jump to content
  • 0
Sign in to follow this  

Double XP weekend game message doesn't work!


Hello guys. On my server double XP is activated as it is weekend, but there are no messages saying that double xp is activated. I know that double XP is activated because the lamps gave me x2 xp

this is the code on the player.java
[QUOTE]if (TimeManager.isWeekend() || Settings.MANUAL_DXP)
getPackets().sendGameMessage("<img=7><col=ff8c38>D ouble EXP is now live for ALL players all weekend! ");[/QUOTE]

and on TimeManager.java

[QUOTE]package com.foxtrot.game.player.content.custom;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import com.foxtrot.utils.Utils;

public class TimeManager {

private static Calendar cal = Calendar.getInstance();

final static int SUNDAY = 1;
final static int MONDAY = 2;
final static int TUESDAY = 3;
final static int WEDNESDAY = 4;
final static int THURSDAY = 5;
final static int FRIDAY = 6;
final static int SATURDAY = 7;

public static String getTime() {
SimpleDateFormat format = new SimpleDateFormat("h:mm a zzz");
return format.format(new Date());

public static boolean isEaster() {
return cal.get(Calendar.MONTH) == Calendar.APRIL && getCurrentDay() == 20;

public static int getCurrentMonth() {
return cal.get(Calendar.MONTH);

public static int getCurrentDay() {
return cal.get(Calendar.DAY_OF_MONTH);

public static int dayOfWeek() {
return cal.get(Calendar.DAY_OF_WEEK);

public static boolean isMidWeek() {
return dayOfWeek() == WEDNESDAY;

public static boolean isWeekend() {
return dayOfWeek() == SUNDAY ? true:
dayOfWeek() == FRIDAY ? true:
dayOfWeek() == SATURDAY ? true: false;

Please help me with this, I want it like it is a message when you log in, on the weekends.

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Sign in to follow this