mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-04 18:56:23 +02:00
24 lines
704 B
Java
24 lines
704 B
Java
package com.gmail.nossr50.runnables.commands;
|
|
|
|
import com.gmail.nossr50.locale.LocaleLoader;
|
|
import com.gmail.nossr50.util.player.UserManager;
|
|
import org.bukkit.Bukkit;
|
|
import org.bukkit.entity.Player;
|
|
import org.bukkit.scheduler.BukkitRunnable;
|
|
|
|
public class NotifySquelchReminderTask extends BukkitRunnable {
|
|
|
|
@Override
|
|
public void run() {
|
|
for (Player player : Bukkit.getOnlinePlayers()) {
|
|
if(UserManager.getPlayer(player) != null)
|
|
{
|
|
if(!UserManager.getPlayer(player).useChatNotifications())
|
|
{
|
|
player.sendMessage(LocaleLoader.getString("Reminder.Squelched"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|