Dafaq all talking about? My code is fine. Don't make me post the damn thing cause ill just waste 40 euro and my time.
The problem is about the damn method. You don't believe me? Enter his damn PC. Write player.getHWID() and if in SQL print the normal HWID come back and tell me cause for me it print SMART-GUARD.
Again even if all are FINE and i'm wrong, still this is not a SCAM. I dont know why we wasted 4 pages for a guy. He denied to let me work. One night said "its seem it working" and 5 hours later he said "its not working" and 5 hours later he reported me for scam.
There are many ways to solve delay problem, (free codes, partial refund). I have clients like Zacapa that i delayed them month and i try help them anytime i can for free without ask for money. Don't act as if we are company here. If someone believe my code is trash and not working PM me to show u the code (Only mods or people i know that they wont share like melron e.t.c). I'm done with this shit. If u want 20e refund ok but forget it.
Part of my code to see that is not shared shit or anything:
+ Site site = Site.valueOf(st.nextToken().toUpperCase());
+ SiteTemplate template = VoteManager.getInstance().getSite(site);
+
+ String action = st.nextToken();
+
+ switch (action)
+ {
+ case "reward":
+ player.getVariables().set(site.getSite(), System.currentTimeMillis() + (template.getHourToVote() * 60 * 1000));
+
+ template.getRewardList().stream().filter(r -> Rnd.get(100) <= r.getChance()).forEach(r ->
+ {
+ L2ItemInstance item = new L2ItemInstance(r.getItemId());
+ item.setCount(r.getCount());
+ item.setEnchantLevel((r.getEnchant() > 0) && (item.isEnchantable() == 1) ? r.getEnchant() : 0);
+ player.addItem("Reward", item, player, true);
+ });
+
+ template.getBuffList().stream().filter(b -> Rnd.get(100) <= b.getChance()).forEach(b -> b.getSkill().applyEffects(player, player));
+ break;
+ case "vote":
+ if (player.getVariables().hasVariable(site.getSite()) && (player.getVariables().getLong(site.getSite()) >= System.currentTimeMillis()))
+ {
+ player.sendMessage("You already vote in " + site.getSite() + ". Come in " + nextVoteAvailable(player.getVariables().getLong(site.getSite()), template));
+ return;
+ }