summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/modules/warn/Warn.java
blob: 657c8e557425062f526c69178c3fad0dd4590ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.redstoner.modules.warn;

import org.bukkit.command.CommandSender;

import com.nemez.cmdmgr.Command;
import com.redstoner.annotations.Commands;
import com.redstoner.annotations.Version;
import com.redstoner.misc.CommandHolderType;
import com.redstoner.misc.Utils;
import com.redstoner.modules.Module;

@Commands(CommandHolderType.File)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Warn implements Module
{
	@Command(hook = "warn")
	public void warn_normal(CommandSender sender)
	{
		String name = Utils.getName(sender);
		Utils.broadcast(null, "§2Lag incoming! - §9" + name, null);
	}
	
	@Command(hook = "warnp")
	public void warn_possible(CommandSender sender)
	{
		String name = Utils.getName(sender);
		Utils.broadcast(null, "§2Possible lag incoming! - §9" + name, null);
	}
}