summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandrules.java
blob: e94b98755fbcea7f478713cd60b095af5d85382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.earth2me.essentials.commands;

import org.bukkit.Server;
import com.earth2me.essentials.*;


public class Commandrules extends EssentialsCommand
{
	public Commandrules()
	{
		super("rules");
	}

	@Override
	public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception
	{
		user.charge(this);
		for (String m : parent.getLines(user, "rules", "§cThere are no rules specified yet."))
		{
			user.sendMessage(m);
		}
	}
}