thats why i didnt even touch the code because the difference for what he needs is absolutely 0. but lets get real, the correct syntax is not the one you posted
i didnt give you this line...
check again
return Arrays.asList(getInventory().getItems()).stream().filter(i -> i.isEquipped() && i.getItem().getCrystalType() == type).findAny().isPresent();
put that method
public boolean hasGradeEquipped(CrystalType type)
{
return getInventory().getItems().stream().filter(i -> i.isEquipped() && i.getItem().getCrystalType() == type).findAny().isPresent();
}
in Player.class (or what you have.. L2PcInstance?)
then you wont have problems..
regarding to Super Duper Kara. the code is working BUT. If we are talking about java and your object may had 5000 'equiped items' you could have big troubles with your way... findFirst() will do the right way (by checking null) and not findAny since we need to know if there is atleast 1 item that is the type we need and not get all those items.. its like you are using for( bla bla) without returning true when you find it
regarding to baggos answer, you can add check like that:
if (Config.HERO_CUSTOM_DAY != -1)
updateDatabase(activeChar, Config.HERO_CUSTOM_DAY * 24L * 60L * 60L * 1000L);
now, when you set HeroCustomDay to -1 will be until restart
Its not my fault that you didnt register that config properly .... I bet that your config is located at another file and at servers loading, the value is the default (0) thats why you didnt see the aura. Next time read instead of wanking. topic locked
You need 1 config for that. Not Boolean at all. You can turn integer into Boolean by checking for zero value.
Value 1 is the red
Value 2 is the blue.
Value 0 is false.
The variable mustn't be final.
Must be public too to have access.
So public static int ...
Why always you dont post some code? You will get faster help...
What type is this npc?
if it is custom , make sure that you have super.onBypassFeedback
No. you can only set in database the next date. that means if you want weekly you have to change it every week manually as kara said. For weekly search in your configs about that, if not exists you have to edit your core side.
(Again: these values is only to 'remove' the castles you dont want)
no it is not 'my' solution. The solution could be by deleting the rows that you want and the server wont load the sieges for that castles. since is frozen and you cant do that i gave a temporary solution that dont need to edit the core side.
Once again you are wrong and i just approved the fact that you came here to blame instead of help. Good job Kara :D
Then your brain...
I answered in his question about how to 'delete' some castle sieges because he cant delete them from the database. The weekly thing is not answered by me and im not gonna answer something like that. Who told you that my answer was Weekly Siege? wtf?
convert date to milliseconds from the internet and put those milliseconds to the column of the castle table that is responsible for the date, or post here the structure of the Castle table