mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 14:54:12 -04:00
change default login message to 'joined'
This commit is contained in:
parent
38b35dc2c8
commit
2f462c3c4b
@ -50,7 +50,6 @@ namespace MCGalaxy.Commands.Building {
|
|||||||
DrawArgs dArgs = (DrawArgs)state;
|
DrawArgs dArgs = (DrawArgs)state;
|
||||||
TreeDrawOp op = new TreeDrawOp();
|
TreeDrawOp op = new TreeDrawOp();
|
||||||
op.Tree = dArgs.tree;
|
op.Tree = dArgs.tree;
|
||||||
op.random = new System.Random();
|
|
||||||
Brush brush = null;
|
Brush brush = null;
|
||||||
|
|
||||||
if (dArgs.brushMsg != "") {
|
if (dArgs.brushMsg != "") {
|
||||||
|
@ -49,7 +49,7 @@ namespace MCGalaxy {
|
|||||||
if (File.Exists(path)) return CP437Reader.ReadAllText(path);
|
if (File.Exists(path)) return CP437Reader.ReadAllText(path);
|
||||||
// Unix is case sensitive (older files used correct casing of name)
|
// Unix is case sensitive (older files used correct casing of name)
|
||||||
path = "text/login/" + p.name + ".txt";
|
path = "text/login/" + p.name + ".txt";
|
||||||
return File.Exists(path) ? CP437Reader.ReadAllText(path) : "joined the game.";
|
return File.Exists(path) ? CP437Reader.ReadAllText(path) : "joined";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetLogoutMessage(Player p) {
|
public static string GetLogoutMessage(Player p) {
|
||||||
|
@ -33,7 +33,7 @@ namespace MCGalaxy.Drawing.Ops {
|
|||||||
public class TreeDrawOp : DrawOp {
|
public class TreeDrawOp : DrawOp {
|
||||||
public override string Name { get { return "Tree"; } }
|
public override string Name { get { return "Tree"; } }
|
||||||
|
|
||||||
public Random random;
|
public Random random = new Random();
|
||||||
public Tree Tree;
|
public Tree Tree;
|
||||||
static Brush defBrush = new SolidBrush(Block.leaf, 0);
|
static Brush defBrush = new SolidBrush(Block.leaf, 0);
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ namespace MCGalaxy.Eco {
|
|||||||
|
|
||||||
protected override void DoPurchase(Player p, string message, string[] args) {
|
protected override void DoPurchase(Player p, string message, string[] args) {
|
||||||
if (args.Length == 1) {
|
if (args.Length == 1) {
|
||||||
Command.all.Find("loginmessage").Use(null, p.name + " joined the game.");
|
Command.all.Find("loginmessage").Use(null, p.name);
|
||||||
Player.Message(p, "%aYour login message was removed for free.");
|
Player.Message(p, "%aYour login message was removed for free.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ namespace MCGalaxy.Eco {
|
|||||||
|
|
||||||
protected override void DoPurchase(Player p, string message, string[] args) {
|
protected override void DoPurchase(Player p, string message, string[] args) {
|
||||||
if (args.Length == 1) {
|
if (args.Length == 1) {
|
||||||
Command.all.Find("logoutmessage").Use(null, p.name + " disconnected");
|
Command.all.Find("logoutmessage").Use(null, p.name);
|
||||||
Player.Message(p, "%aYour logout message was removed for free.");
|
Player.Message(p, "%aYour logout message was removed for free.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,6 @@ namespace Sharkbite.Irc
|
|||||||
}
|
}
|
||||||
return char.ToUpper(newName[0] ) + newName.Substring(1);
|
return char.ToUpper(newName[0] ) + newName.Substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user