Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package net.sf.l2j.gameserver.taskmanager.tasks;
- import net.sf.l2j.gameserver.ThreadPoolManager;
- import net.sf.l2j.gameserver.instancemanager.PremiumManager;
- /**
- *
- * @author iRevThis
- */
- public class TaskPremium
- {
- public static final String NAME = "PremiumItemDelete";
- protected TaskPremium()
- {
- ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new CheckItemsForDestroy(), 10000, 10000);
- }
- public static TaskPremium getInstance()
- {
- return SingletonHolder._instance;
- }
- private static class SingletonHolder
- {
- protected static final TaskPremium _instance = new TaskPremium();
- }
- protected class CheckItemsForDestroy extends Thread
- {
- @Override
- public void run()
- {
- PremiumManager.getInstance().deleteItemShedule();
- }
- }
- }
Add Comment
Please, Sign In to add comment