Advertisement
Terrah

SubHype

Dec 18th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local Hook = MOD.EventSub;
  2.  
  3. MOD.EventSub = function(sub)
  4.  
  5. print("PogChamp " .. sub .. " has subscribed! PogChamp");
  6.  
  7. MOD.NewestSub = sub;
  8. MOD.Save();
  9.  
  10. if type(Hook) == "function" then
  11. return Hook (sub);
  12. end
  13. end
  14.  
  15. return function()
  16. if type(MOD.NewestSub)~="string" or MOD.NewestSub=="" then
  17. return;
  18. end
  19. print("Latest sub: " .. MOD.NewestSub);
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement