Advertisement
Ugleh

Untitled

Aug 14th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package com.ugleh.quickfix;
  2.  
  3.  
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.entity.Player;
  6. import org.bukkit.plugin.Plugin;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8. import org.bukkit.potion.PotionEffectType;
  9.  
  10. public class quickfix extends JavaPlugin{
  11. public static Plugin main;
  12.  
  13. public void onEnable(){
  14. main = this;
  15. getServer().getPluginManager().registerEvents(new quickfixL(), this);
  16. Bukkit.getServer()
  17. .getScheduler()
  18. .scheduleSyncRepeatingTask(main,
  19. new Runnable() {
  20. @Override
  21. public void run() {
  22.  
  23.  
  24. for(Player p : Bukkit.getOnlinePlayers()){
  25. p.removePotionEffect(PotionEffectType.INVISIBILITY);
  26. }
  27.  
  28. }
  29. }, 4L, 200L);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement