Add /createkit.

Allows you to create a kit in game using your inventory.
This commit is contained in:
drtshock 2015-04-20 10:56:45 -05:00
parent 5b052c170f
commit 9a265aac48
36 changed files with 266 additions and 36 deletions

View File

@ -381,7 +381,7 @@ public class EssentialsConf extends YamlConfiguration {
}
return stack;
/*
* ,
* ,
* (byte)getInt(path + ".data", 0)
*/
}

View File

@ -254,7 +254,7 @@ public class EssentialsPlayerListener implements Listener {
if (!ess.getSettings().isCommandDisabled("mail") && user.isAuthorized("essentials.mail")) {
final List<String> mail = user.getMails();
if (mail.isEmpty()) {
if(ess.getSettings().isNotifyNoNewMail()) {
if (ess.getSettings().isNotifyNoNewMail()) {
user.sendMessage(tl("noNewMail")); // Only notify if they want us to.
}
} else {

View File

@ -52,6 +52,8 @@ public interface ISettings extends IConf {
ConfigurationSection getKits();
void addKit(String name, List<String> lines, long delay);
String getLocale();
String getNewbieSpawn();

View File

@ -4,8 +4,14 @@ import com.earth2me.essentials.utils.NumberUtil;
import com.earth2me.essentials.utils.StringUtil;
import net.ess3.api.IEssentials;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.FireworkEffect;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.*;
import org.bukkit.potion.Potion;
import org.bukkit.potion.PotionEffect;
import java.util.*;
import java.util.regex.Matcher;
@ -199,6 +205,126 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
return name;
}
@Override
public String serialize(ItemStack is) {
String mat = is.getType().name();
if (is.getData().getData() != 0) {
mat = mat + ":" + is.getData().getData();
}
int quantity = is.getAmount();
StringBuilder sb = new StringBuilder(); // Add space AFTER you add something. We can trim at end.
sb.append(mat).append(" ").append(quantity).append(" ");
// ItemMeta applies to anything.
if (is.hasItemMeta()) {
ItemMeta meta = is.getItemMeta();
if (meta.hasDisplayName()) {
sb.append("name:").append(meta.getDisplayName().replaceAll(" ", "_")).append(" ");
}
if (meta.hasLore()) {
sb.append("lore:");
boolean first = true;
for (String s : meta.getLore()) {
// Add | before the line if it's not the first one. Easy but weird way
// to do this since we need each line separated by |
if (!first) {
sb.append("|");
}
first = false;
sb.append(s.replaceAll(" ", "_"));
}
sb.append(" ");
}
if (meta.hasEnchants()) {
for (Enchantment e : meta.getEnchants().keySet()) {
sb.append(e.getName().toLowerCase()).append(":").append(meta.getEnchantLevel(e)).append(" ");
}
}
}
switch (is.getType()) {
case WRITTEN_BOOK:
// Everything from http://wiki.ess3.net/wiki/Item_Meta#Books in that order.
// Interesting as I didn't see a way to do pages or chapters.
BookMeta bookMeta = (BookMeta) is.getItemMeta();
if (bookMeta.hasTitle()) {
sb.append("title:").append(bookMeta.getTitle()).append(" ");
}
if (bookMeta.hasAuthor()) {
sb.append("author:").append(bookMeta.getAuthor()).append(" ");
}
// Only other thing it could have is lore but that's done up there ^^^
break;
case ENCHANTED_BOOK:
EnchantmentStorageMeta enchantmentStorageMeta = (EnchantmentStorageMeta) is.getItemMeta();
for (Enchantment e : enchantmentStorageMeta.getStoredEnchants().keySet()) {
sb.append(e.getName().toLowerCase()).append(":").append(enchantmentStorageMeta.getStoredEnchantLevel(e)).append(" ");
}
break;
case FIREWORK:
// Everything from http://wiki.ess3.net/wiki/Item_Meta#Fireworks in that order.
FireworkMeta fireworkMeta = (FireworkMeta) is.getItemMeta();
if (fireworkMeta.hasEffects()) {
for (FireworkEffect effect : fireworkMeta.getEffects()) {
if (effect.getColors() != null && !effect.getColors().isEmpty()) {
sb.append("color:");
boolean first = true;
for (Color c : effect.getColors()) {
if (!first) {
sb.append(","); // same thing as above.
}
sb.append(c.toString());
first = false;
}
sb.append(" ");
}
sb.append("shape: ").append(effect.getType().name()).append(" ");
if (effect.getFadeColors() != null && !effect.getFadeColors().isEmpty()) {
sb.append("fade:");
boolean first = true;
for (Color c : effect.getFadeColors()) {
if (!first) {
sb.append(","); // same thing as above.
}
sb.append(c.toString());
first = false;
}
sb.append(" ");
}
}
sb.append("power: ").append(fireworkMeta.getPower()).append(" ");
}
break;
case POTION:
Potion potion = Potion.fromItemStack(is);
for (PotionEffect e : potion.getEffects()) {
// long but needs to be effect:speed power:2 duration:120 in that order.
sb.append("effect:").append(e.getType().getName().toLowerCase()).append(" ").append("power:").append(e.getAmplifier()).append(" ").append("duration:").append(e.getDuration() / 20).append(" ");
}
break;
case SKULL_ITEM:
// item stack with meta
SkullMeta skullMeta = (SkullMeta) is.getItemMeta();
if (skullMeta != null && skullMeta.hasOwner()) {
sb.append("player:").append(skullMeta.getOwner()).append(" ");
}
break;
case LEATHER_HELMET:
case LEATHER_CHESTPLATE:
case LEATHER_LEGGINGS:
case LEATHER_BOOTS:
LeatherArmorMeta leatherArmorMeta = (LeatherArmorMeta) is.getItemMeta();
int rgb = leatherArmorMeta.getColor().asRGB();
sb.append("color:").append(rgb).append(" ");
break;
}
return sb.toString().trim().replaceAll("§", "&");
}
static class ItemData {
final private int itemNo;

View File

@ -189,7 +189,7 @@ public class Kit {
continue;
}
if(kitItem.startsWith("/")) {
if (kitItem.startsWith("/")) {
String command = kitItem.substring(1);
String name = user.getName();
command = command.replace("{player}", name);

View File

@ -308,6 +308,15 @@ public class Settings implements net.ess3.api.ISettings {
return null;
}
@Override
public void addKit(String name, List<String> lines, long delay) {
// Will overwrite but w/e
config.set("kits." + name + ".delay", delay);
config.set("kits." + name + ".items", lines);
kits = _getKits();
config.save();
}
private ChatColor operatorColor = null;
@Override

View File

@ -1,7 +1,6 @@
package com.earth2me.essentials;
import com.earth2me.essentials.utils.StringUtil;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;

View File

@ -16,4 +16,6 @@ public interface IItemDb {
public String name(ItemStack item);
List<ItemStack> getMatching(User user, String[] args) throws Exception;
public String serialize(ItemStack is);
}

View File

@ -0,0 +1,41 @@
package com.earth2me.essentials.commands;
import com.earth2me.essentials.User;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.inventory.ItemStack;
import java.util.ArrayList;
import java.util.List;
import static com.earth2me.essentials.I18n.tl;
public class Commandcreatekit extends EssentialsCommand {
public Commandcreatekit() {
super("createkit");
}
// /createkit <name> <delay>
@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
if (args.length != 2) {
throw new NotEnoughArgumentsException();
}
// Command handler will auto fail if this fails.
long delay = Long.valueOf(args[1]);
String kitname = args[0];
ItemStack[] items = user.getBase().getInventory().getContents();
List<String> list = new ArrayList<String>();
for (ItemStack is : items) {
if (is != null && is.getType() != null && is.getType() != Material.AIR) {
String serialized = ess.getItemDb().serialize(is);
list.add(serialized);
}
}
ess.getSettings().addKit(kitname, list, delay);
user.sendMessage(tl("createdKit", kitname, list.size(), delay));
}
}

View File

@ -65,7 +65,7 @@ public class Commandgamemode extends EssentialsCommand {
throw new NotEnoughArgumentsException(tl("gameModeInvalid"));
}
if(sender.isPlayer() && canChangeToMode(sender.getPlayer(), gameMode)) {
if (sender.isPlayer() && canChangeToMode(sender.getPlayer(), gameMode)) {
sender.sendMessage(tl("cantGamemode", gameMode.name()));
return;
}

View File

@ -170,11 +170,11 @@ public class LocationUtil {
}
}
Collections.sort(pos, new Comparator<Vector3D>() {
@Override
public int compare(Vector3D a, Vector3D b) {
return (a.x * a.x + a.y * a.y + a.z * a.z) - (b.x * b.x + b.y * b.y + b.z * b.z);
}
});
@Override
public int compare(Vector3D a, Vector3D b) {
return (a.x * a.x + a.y * a.y + a.z * a.z) - (b.x * b.x + b.y * b.y + b.z * b.z);
}
});
VOLUME = pos.toArray(new Vector3D[0]);
}

View File

@ -557,4 +557,5 @@ playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createKit=\u00a74/createkit <kitname> <delay>
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries.
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -555,4 +555,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -556,4 +556,6 @@ mailMessage={0}
whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
cantGamemode=\u00a74You do not have permission to change to gamemode {0}
createdKit=\u00a76Created kit \u00a7c{0} \u00a76with \u00a7c{1} \u00a76entries and delay \u00a7c{2}
spectator=spectator

View File

@ -71,6 +71,10 @@ commands:
description: Describes your current bearing.
usage: /<command>
aliases: [ecompass,direction,edirection]
createkit:
description: Create a kit in game!
usage: /<command> <kitname> <delay>
aliases: [kitcreate,createk,kc,ck]
customtext:
description: Allows you to create custom text commands.
usage: /<alias> - Define in bukkit.yml
@ -132,8 +136,8 @@ commands:
aliases: [efirework]
gamemode:
description: Change player gamemode.
usage: /<command> <survival|creative|adventure> [player]
aliases: [adventure,eadventure,adventuremode,eadventuremode,creative,eecreative,creativemode,ecreativemode,egamemode,gm,egm,gma,egma,gmc,egmc,gms,egms,gmt,egmt,survival,esurvival,survivalmode,esurvivalmode,gmsp,sp,egmsp,spec]
usage: /<command> <survival|creative|adventure|spectator> [player]
aliases: [adventure,eadventure,adventuremode,eadventuremode,creative,eecreative,creativemode,ecreativemode,egamemode,gm,egm,gma,egma,gmc,egmc,gms,egms,gmt,egmt,survival,esurvival,survivalmode,esurvivalmode,gmsp,sp,egmsp,spec,spectator]
gc:
description: Reports memory, uptime and tick info.
usage: /<command> [all]