mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 20:42:55 +00:00
Included source...
This commit is contained in:
parent
4ec7baec95
commit
2705220ece
68 changed files with 9627 additions and 0 deletions
|
@ -0,0 +1,137 @@
|
|||
/*
|
||||
* Copyright (c) IntellectualCrafters - 2014.
|
||||
* You are not allowed to distribute and/or monetize any of our intellectual property.
|
||||
* IntellectualCrafters is not affiliated with Mojang AB. Minecraft is a trademark of Mojang AB.
|
||||
*
|
||||
* >> File = Command.java
|
||||
* >> Generated by: Citymonstret at 2014-08-09 01:41
|
||||
*/
|
||||
|
||||
package com.intellectualcrafters.plot.commands;
|
||||
|
||||
/**
|
||||
* Created by Citymonstret on 2014-08-03.
|
||||
* @author Citymonstret
|
||||
*/
|
||||
public enum Command {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
HELPERS("helpers", "hp"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DENIED("denied", "dn"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
CLAIM("claim", "c"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
CLEAR("clear", "delete", new CommandPermission("plots.admin")),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DEBUG("debug", "database", new CommandPermission("plots.admin")),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
HOME("home", "h"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
INFO("info", "i"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
LIST("list", "l"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
SET("set", "s"),
|
||||
/**
|
||||
*
|
||||
*/
|
||||
TP("tp", "tp");
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String command;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String alias;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private CommandPermission permission;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param command
|
||||
*/
|
||||
Command(String command) {
|
||||
this.command = command;
|
||||
this.alias = command;
|
||||
this.permission = new CommandPermission("plots." + command);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param command
|
||||
* @param permission
|
||||
*/
|
||||
Command(String command, CommandPermission permission) {
|
||||
this.command = command;
|
||||
this.permission = permission;
|
||||
this.alias = command;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param command
|
||||
* @param alias
|
||||
*/
|
||||
Command(String command, String alias) {
|
||||
this.command = command;
|
||||
this.alias = alias;
|
||||
this.permission = new CommandPermission("plots." + command);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param Command
|
||||
* @param alias
|
||||
* @param permission
|
||||
*/
|
||||
Command(String command, String alias, CommandPermission permission) {
|
||||
this.command = command;
|
||||
this.alias = alias;
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getCommand() {
|
||||
return this.command;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getAlias() {
|
||||
return this.alias;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public CommandPermission getPermission(){
|
||||
return this.permission;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue