Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ugleh.quickfix;
- import org.bukkit.Bukkit;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.Plugin;
- import org.bukkit.plugin.java.JavaPlugin;
- import org.bukkit.potion.PotionEffectType;
- public class quickfix extends JavaPlugin{
- public static Plugin main;
- public void onEnable(){
- main = this;
- getServer().getPluginManager().registerEvents(new quickfixL(), this);
- Bukkit.getServer()
- .getScheduler()
- .scheduleSyncRepeatingTask(main,
- new Runnable() {
- @Override
- public void run() {
- for(Player p : Bukkit.getOnlinePlayers()){
- p.removePotionEffect(PotionEffectType.INVISIBILITY);
- }
- }
- }, 4L, 200L);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement