mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-24 03:12:45 +00:00
Remove hardcoded "Default" message format
Created new default format in the config as an example
This commit is contained in:
parent
1ffdd26027
commit
e23480805c
@ -103,13 +103,12 @@ vanishsupport: true
|
|||||||
|
|
||||||
# {playerto} : player receivings name
|
# {playerto} : player receivings name
|
||||||
# {playerfrom} : player sendings name
|
# {playerfrom} : player sendings name
|
||||||
# use Default for the basic formatting
|
tellformatto: 'You message {playerto}:&7'
|
||||||
tellformatto: Default
|
tellformatfrom: '{playerfrom} messages you:&7'
|
||||||
tellformatfrom: Default
|
tellformatspy: '{playerfrom} messages {playerto}:&7'
|
||||||
tellformatspy: Default
|
replyformatto: 'You reply to {playerto}:&7'
|
||||||
replyformatto: Default
|
replyformatfrom: '{playerfrom} replies to you:&7'
|
||||||
replyformatfrom: Default
|
replyformatspy: '{playerfrom} replied to {playerto}:&7'
|
||||||
replyformatspy: Default
|
|
||||||
|
|
||||||
# {host} : party hosts name
|
# {host} : party hosts name
|
||||||
# {player} : player name
|
# {player} : player name
|
||||||
|
@ -103,13 +103,12 @@ vanishsupport: true
|
|||||||
|
|
||||||
# {playerto} : player receivings name
|
# {playerto} : player receivings name
|
||||||
# {playerfrom} : player sendings name
|
# {playerfrom} : player sendings name
|
||||||
# use Default for the basic formatting
|
tellformatto: 'You message {playerto}:&7'
|
||||||
tellformatto: Default
|
tellformatfrom: '{playerfrom} messages you:&7'
|
||||||
tellformatfrom: Default
|
tellformatspy: '{playerfrom} messages {playerto}:&7'
|
||||||
tellformatspy: Default
|
replyformatto: 'You reply to {playerto}:&7'
|
||||||
replyformatto: Default
|
replyformatfrom: '{playerfrom} replies to you:&7'
|
||||||
replyformatfrom: Default
|
replyformatspy: '{playerfrom} replied to {playerto}:&7'
|
||||||
replyformatspy: Default
|
|
||||||
|
|
||||||
# {host} : party hosts name
|
# {host} : party hosts name
|
||||||
# {player} : player name
|
# {player} : player name
|
||||||
|
@ -49,7 +49,6 @@ public class Message extends MineverseCommand {
|
|||||||
String send = "";
|
String send = "";
|
||||||
String echo = "";
|
String echo = "";
|
||||||
String spy = "";
|
String spy = "";
|
||||||
String tellColor = plugin.getConfig().getString("tellcolor", "gray");
|
|
||||||
for(int r = 1; r < args.length; r++) {
|
for(int r = 1; r < args.length; r++) {
|
||||||
msg += " " + args[r];
|
msg += " " + args[r];
|
||||||
}
|
}
|
||||||
@ -62,24 +61,9 @@ public class Message extends MineverseCommand {
|
|||||||
if(mcp.getPlayer().hasPermission("venturechat.format")) {
|
if(mcp.getPlayer().hasPermission("venturechat.format")) {
|
||||||
msg = Format.FormatString(msg);
|
msg = Format.FormatString(msg);
|
||||||
}
|
}
|
||||||
if(plugin.getConfig().getString("tellformatfrom").equalsIgnoreCase("Default")) {
|
send = Format.FormatStringAll(plugin.getConfig().getString("tellformatfrom")) + msg;
|
||||||
send = "{playerfrom} messages you:" + ChatColor.valueOf(tellColor.toUpperCase()) + msg;
|
echo = Format.FormatStringAll(plugin.getConfig().getString("tellformatto")) + msg;
|
||||||
}
|
spy = Format.FormatStringAll(plugin.getConfig().getString("tellformatspy")) + msg;
|
||||||
else {
|
|
||||||
send = Format.FormatStringAll(plugin.getConfig().getString("tellformatfrom")) + msg;
|
|
||||||
}
|
|
||||||
if(plugin.getConfig().getString("tellformatto").equalsIgnoreCase("Default")) {
|
|
||||||
echo = "You message {playerto}:" + ChatColor.valueOf(tellColor.toUpperCase()) + msg;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo = Format.FormatStringAll(plugin.getConfig().getString("tellformatto")) + msg;
|
|
||||||
}
|
|
||||||
if(plugin.getConfig().getString("tellformatspy").equalsIgnoreCase("Default")) {
|
|
||||||
spy = "{playerfrom} messages {playerto}:" + ChatColor.valueOf(tellColor.toUpperCase()) + msg;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
spy = Format.FormatStringAll(plugin.getConfig().getString("tellformatspy")) + msg;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
out.writeUTF("Message");
|
out.writeUTF("Message");
|
||||||
out.writeUTF("Send");
|
out.writeUTF("Send");
|
||||||
|
@ -40,28 +40,12 @@ public class Reply extends MineverseCommand {
|
|||||||
String send = "";
|
String send = "";
|
||||||
String echo = "";
|
String echo = "";
|
||||||
String spy = "";
|
String spy = "";
|
||||||
String tellColor = plugin.getConfig().getString("tellcolor", "gray");
|
|
||||||
for(int r = 0; r < args.length; r++) {
|
for(int r = 0; r < args.length; r++) {
|
||||||
msg += " " + args[r];
|
msg += " " + args[r];
|
||||||
}
|
}
|
||||||
if(plugin.getConfig().getString("tellformatfrom").equalsIgnoreCase("Default")) {
|
send = Format.FormatStringAll(plugin.getConfig().getString("replyformatfrom")) + msg;
|
||||||
send = "{playerfrom} replies to you:" + ChatColor.valueOf(tellColor.toUpperCase()) + msg;
|
echo = Format.FormatStringAll(plugin.getConfig().getString("replyformatto")) + msg;
|
||||||
}
|
spy = Format.FormatStringAll(plugin.getConfig().getString("replyformatspy")) + msg;
|
||||||
else {
|
|
||||||
send = Format.FormatStringAll(plugin.getConfig().getString("tellformatfrom")) + msg;
|
|
||||||
}
|
|
||||||
if(plugin.getConfig().getString("tellformatto").equalsIgnoreCase("Default")) {
|
|
||||||
echo = "You reply to {playerto}:" + ChatColor.valueOf(tellColor.toUpperCase()) + msg;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo = Format.FormatStringAll(plugin.getConfig().getString("tellformatto")) + msg;
|
|
||||||
}
|
|
||||||
if(plugin.getConfig().getString("tellformatspy").equalsIgnoreCase("Default")) {
|
|
||||||
spy = "{playerfrom} replied to {playerto}:" + ChatColor.valueOf(tellColor.toUpperCase()) + msg;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
spy = Format.FormatStringAll(plugin.getConfig().getString("tellformatspy")) + msg;
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
out.writeUTF("Message");
|
out.writeUTF("Message");
|
||||||
out.writeUTF("Send");
|
out.writeUTF("Send");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user