mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-29 17:58:25 +00:00
Add /createkit.
Allows you to create a kit in game using your inventory.
This commit is contained in:
parent
5b052c170f
commit
9a265aac48
36 changed files with 266 additions and 36 deletions
|
@ -254,7 +254,7 @@ public class EssentialsPlayerListener implements Listener {
|
||||||
if (!ess.getSettings().isCommandDisabled("mail") && user.isAuthorized("essentials.mail")) {
|
if (!ess.getSettings().isCommandDisabled("mail") && user.isAuthorized("essentials.mail")) {
|
||||||
final List<String> mail = user.getMails();
|
final List<String> mail = user.getMails();
|
||||||
if (mail.isEmpty()) {
|
if (mail.isEmpty()) {
|
||||||
if(ess.getSettings().isNotifyNoNewMail()) {
|
if (ess.getSettings().isNotifyNoNewMail()) {
|
||||||
user.sendMessage(tl("noNewMail")); // Only notify if they want us to.
|
user.sendMessage(tl("noNewMail")); // Only notify if they want us to.
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -52,6 +52,8 @@ public interface ISettings extends IConf {
|
||||||
|
|
||||||
ConfigurationSection getKits();
|
ConfigurationSection getKits();
|
||||||
|
|
||||||
|
void addKit(String name, List<String> lines, long delay);
|
||||||
|
|
||||||
String getLocale();
|
String getLocale();
|
||||||
|
|
||||||
String getNewbieSpawn();
|
String getNewbieSpawn();
|
||||||
|
|
|
@ -4,8 +4,14 @@ import com.earth2me.essentials.utils.NumberUtil;
|
||||||
import com.earth2me.essentials.utils.StringUtil;
|
import com.earth2me.essentials.utils.StringUtil;
|
||||||
import net.ess3.api.IEssentials;
|
import net.ess3.api.IEssentials;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.Color;
|
||||||
|
import org.bukkit.FireworkEffect;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.enchantments.Enchantment;
|
||||||
import org.bukkit.inventory.ItemStack;
|
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.*;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
|
@ -199,6 +205,126 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
|
||||||
return name;
|
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 {
|
static class ItemData {
|
||||||
final private int itemNo;
|
final private int itemNo;
|
||||||
|
|
|
@ -189,7 +189,7 @@ public class Kit {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(kitItem.startsWith("/")) {
|
if (kitItem.startsWith("/")) {
|
||||||
String command = kitItem.substring(1);
|
String command = kitItem.substring(1);
|
||||||
String name = user.getName();
|
String name = user.getName();
|
||||||
command = command.replace("{player}", name);
|
command = command.replace("{player}", name);
|
||||||
|
|
|
@ -308,6 +308,15 @@ public class Settings implements net.ess3.api.ISettings {
|
||||||
return null;
|
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;
|
private ChatColor operatorColor = null;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package com.earth2me.essentials;
|
package com.earth2me.essentials;
|
||||||
|
|
||||||
import com.earth2me.essentials.utils.StringUtil;
|
import com.earth2me.essentials.utils.StringUtil;
|
||||||
import com.google.common.cache.Cache;
|
|
||||||
import com.google.common.cache.CacheBuilder;
|
import com.google.common.cache.CacheBuilder;
|
||||||
import com.google.common.cache.CacheLoader;
|
import com.google.common.cache.CacheLoader;
|
||||||
import com.google.common.cache.LoadingCache;
|
import com.google.common.cache.LoadingCache;
|
||||||
|
|
|
@ -16,4 +16,6 @@ public interface IItemDb {
|
||||||
public String name(ItemStack item);
|
public String name(ItemStack item);
|
||||||
|
|
||||||
List<ItemStack> getMatching(User user, String[] args) throws Exception;
|
List<ItemStack> getMatching(User user, String[] args) throws Exception;
|
||||||
|
|
||||||
|
public String serialize(ItemStack is);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
|
}
|
||||||
|
}
|
|
@ -65,7 +65,7 @@ public class Commandgamemode extends EssentialsCommand {
|
||||||
throw new NotEnoughArgumentsException(tl("gameModeInvalid"));
|
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()));
|
sender.sendMessage(tl("cantGamemode", gameMode.name()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -557,4 +557,5 @@ playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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}
|
||||||
createKit=\u00a74/createkit <kitname> <delay>
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -556,3 +556,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -557,3 +557,5 @@ whoisTempBanned=\u00a76 - Ban expires:\u00a7r {0}
|
||||||
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
playerTempBanned=\u00a76Player \u00a7c{0}\u00a76 temporarily banned \u00a7c{1}\u00a76 for \u00a7c{2}\u00a76: \u00a7c{3}\u00a76.
|
||||||
mailFormat=\u00a76[\u00a7r{0}\u00a76] \u00a7r{1}
|
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
|
|
@ -71,6 +71,10 @@ commands:
|
||||||
description: Describes your current bearing.
|
description: Describes your current bearing.
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
aliases: [ecompass,direction,edirection]
|
aliases: [ecompass,direction,edirection]
|
||||||
|
createkit:
|
||||||
|
description: Create a kit in game!
|
||||||
|
usage: /<command> <kitname> <delay>
|
||||||
|
aliases: [kitcreate,createk,kc,ck]
|
||||||
customtext:
|
customtext:
|
||||||
description: Allows you to create custom text commands.
|
description: Allows you to create custom text commands.
|
||||||
usage: /<alias> - Define in bukkit.yml
|
usage: /<alias> - Define in bukkit.yml
|
||||||
|
@ -132,8 +136,8 @@ commands:
|
||||||
aliases: [efirework]
|
aliases: [efirework]
|
||||||
gamemode:
|
gamemode:
|
||||||
description: Change player gamemode.
|
description: Change player gamemode.
|
||||||
usage: /<command> <survival|creative|adventure> [player]
|
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]
|
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:
|
gc:
|
||||||
description: Reports memory, uptime and tick info.
|
description: Reports memory, uptime and tick info.
|
||||||
usage: /<command> [all]
|
usage: /<command> [all]
|
||||||
|
|
Loading…
Reference in a new issue