mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 06:43:25 -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;
|
||||
TreeDrawOp op = new TreeDrawOp();
|
||||
op.Tree = dArgs.tree;
|
||||
op.random = new System.Random();
|
||||
Brush brush = null;
|
||||
|
||||
if (dArgs.brushMsg != "") {
|
||||
|
@ -49,7 +49,7 @@ namespace MCGalaxy {
|
||||
if (File.Exists(path)) return CP437Reader.ReadAllText(path);
|
||||
// Unix is case sensitive (older files used correct casing of name)
|
||||
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) {
|
||||
|
@ -33,7 +33,7 @@ namespace MCGalaxy.Drawing.Ops {
|
||||
public class TreeDrawOp : DrawOp {
|
||||
public override string Name { get { return "Tree"; } }
|
||||
|
||||
public Random random;
|
||||
public Random random = new Random();
|
||||
public Tree Tree;
|
||||
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) {
|
||||
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.");
|
||||
return;
|
||||
}
|
||||
@ -59,7 +59,7 @@ namespace MCGalaxy.Eco {
|
||||
|
||||
protected override void DoPurchase(Player p, string message, string[] args) {
|
||||
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.");
|
||||
return;
|
||||
}
|
||||
|
@ -109,7 +109,6 @@ namespace Sharkbite.Irc
|
||||
}
|
||||
return char.ToUpper(newName[0] ) + newName.Substring(1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user