mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-02 14:37:46 +01:00
All the better to kick you with
(Pipe format for linebreak)
This commit is contained in:
parent
7337b86a16
commit
0c19b2feed
@ -58,7 +58,7 @@ public class Commandban extends EssentialsCommand
|
|||||||
String banReason;
|
String banReason;
|
||||||
if (args.length > 1)
|
if (args.length > 1)
|
||||||
{
|
{
|
||||||
banReason = _("banFormat", Util.replaceFormat(getFinalArg(args, 1).replace("\\n", "\n")), senderName);
|
banReason = _("banFormat", Util.replaceFormat(getFinalArg(args, 1).replace("\\n", "\n").replace("|", "\n")), senderName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@ public class Commandkick extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
String kickReason = args.length > 1 ? getFinalArg(args, 1) : _("kickDefault");
|
String kickReason = args.length > 1 ? getFinalArg(args, 1) : _("kickDefault");
|
||||||
kickReason = Util.replaceFormat(kickReason.replace("\\n", "\n"));
|
kickReason = Util.replaceFormat(kickReason.replace("\\n", "\n").replace("|", "\n"));
|
||||||
|
|
||||||
target.kickPlayer(kickReason);
|
target.kickPlayer(kickReason);
|
||||||
final String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;
|
final String senderName = sender instanceof Player ? ((Player)sender).getDisplayName() : Console.NAME;
|
||||||
|
@ -18,7 +18,7 @@ public class Commandkickall extends EssentialsCommand
|
|||||||
public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
||||||
{
|
{
|
||||||
String kickReason = args.length > 0 ? getFinalArg(args, 0) : _("kickDefault");
|
String kickReason = args.length > 0 ? getFinalArg(args, 0) : _("kickDefault");
|
||||||
kickReason = Util.replaceFormat(kickReason.replace("\\n", "\n"));
|
kickReason = Util.replaceFormat(kickReason.replace("\\n", "\n").replace("|", "\n"));
|
||||||
|
|
||||||
for (Player onlinePlayer : server.getOnlinePlayers())
|
for (Player onlinePlayer : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
|
@ -205,17 +205,11 @@ player-commands:
|
|||||||
|
|
||||||
# Note: All items MUST be followed by a quantity!
|
# Note: All items MUST be followed by a quantity!
|
||||||
# All kit names should be lower case, and will be treated as lower in permissions/costs.
|
# All kit names should be lower case, and will be treated as lower in permissions/costs.
|
||||||
# Syntax: - itemID[:DataValue] Amount [Enchantment:Level]..
|
# Syntax: - itemID[:DataValue/Durability] Amount [Enchantment:Level].. [meta:value]...
|
||||||
|
# Supported meta includes: name, lore, color, player, title, author, info
|
||||||
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
|
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
|
||||||
# For more information, visit http://wiki.ess3.net/wiki/Command_Reference/ICheat#kits
|
# For more information, visit http://wiki.ess3.net/wiki/Command_Reference/ICheat#kits
|
||||||
kits:
|
kits:
|
||||||
dtools:
|
|
||||||
delay: 10
|
|
||||||
items:
|
|
||||||
- 277 1 digspeed:3 name:Dwarf lore:Diggy|Diggy|Hole
|
|
||||||
- 278 1 efficiency:1 durability:1 fortune:1 name:Gigadrill lore:The_drill_that_pierces|the_heavens
|
|
||||||
- 298 1 color:255|0|0
|
|
||||||
- 279:780 1
|
|
||||||
tools:
|
tools:
|
||||||
delay: 10
|
delay: 10
|
||||||
items:
|
items:
|
||||||
@ -223,14 +217,21 @@ kits:
|
|||||||
- 273 1
|
- 273 1
|
||||||
- 274 1
|
- 274 1
|
||||||
- 275 1
|
- 275 1
|
||||||
|
dtools:
|
||||||
|
delay: 600
|
||||||
|
items:
|
||||||
|
- 278 1 efficiency:1 durability:1 fortune:1 name:Gigadrill lore:The_drill_that_pierces|the_heavens
|
||||||
|
- 277 1 digspeed:3 name:Dwarf lore:Diggy|Diggy|Hole
|
||||||
|
- 298 1 color:255|255|255 name:Top_hat lore:Good_day,_Good_day
|
||||||
|
- 279:780 1
|
||||||
notch:
|
notch:
|
||||||
delay: 1000
|
delay: 6000
|
||||||
items:
|
items:
|
||||||
- 397:3 1 player:Notch
|
- 397:3 1 player:Notch
|
||||||
color:
|
color:
|
||||||
delay: 1000
|
delay: 6000
|
||||||
items:
|
items:
|
||||||
- 387 1 title:Colors author:KHobbits lore:Ingame_color_codes info:Colors
|
- 387 1 title:Book_o_Colors author:KHobbits lore:Ingame_color_codes info:Colors
|
||||||
|
|
||||||
# Essentials Sign Control
|
# Essentials Sign Control
|
||||||
# See http://wiki.ess3.net/wiki/Sign_Tutorial for instructions on how to use these.
|
# See http://wiki.ess3.net/wiki/Sign_Tutorial for instructions on how to use these.
|
||||||
|
Loading…
Reference in New Issue
Block a user