|
|
@ -32,6 +32,8 @@ import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
import java.sql.ResultSet; |
|
|
|
import java.sql.ResultSet; |
|
|
|
import java.sql.SQLException; |
|
|
|
import java.sql.SQLException; |
|
|
|
|
|
|
|
import java.time.DayOfWeek; |
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
@ -111,6 +113,11 @@ public final class Bane { |
|
|
|
|
|
|
|
|
|
|
|
public static boolean summonBanestone(PlayerCharacter player, ClientConnection origin, int rank) { |
|
|
|
public static boolean summonBanestone(PlayerCharacter player, ClientConnection origin, int rank) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(LocalDateTime.now().getDayOfWeek().equals(DayOfWeek.WEDNESDAY) == false && LocalDateTime.now().getDayOfWeek().equals(DayOfWeek.THURSDAY) == false){ |
|
|
|
|
|
|
|
ChatManager.chatSystemError(player, "You can only place banes on Wednesdays and Thursdays."); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Guild baningGuild; |
|
|
|
Guild baningGuild; |
|
|
|
Zone cityZone; |
|
|
|
Zone cityZone; |
|
|
|
City targetCity; |
|
|
|
City targetCity; |
|
|
|