mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Merge branch 'master' of github.com:Hetal728/MCGalaxy
This commit is contained in:
commit
770d123b53
@ -31,6 +31,7 @@ namespace MCGalaxy.Commands {
|
||||
public override void Use(Player p, string message) {
|
||||
string[] parts = message.SplitSpaces(2);
|
||||
if (message == "" || parts.Length == 1) { Help(p); return; }
|
||||
if (!MessageCmd.CanSpeak(p, name)) return;
|
||||
|
||||
string receiverName = PlayerInfo.FindMatchesPreferOnline(p, parts[0]);
|
||||
if (receiverName == null) return;
|
||||
|
@ -83,7 +83,7 @@ namespace MCGalaxy {
|
||||
string hashHex = BitConverter.ToString(hash);
|
||||
if (!mppass.CaselessEq(hashHex.Replace("-", ""))) {
|
||||
if (!Player.IPInPrivateRange(p.ip)) {
|
||||
p.Leave(null, "Login failed! Try signing in again.", true); return false;
|
||||
p.Leave(null, "Login failed! Close the game and sign in again.", true); return false;
|
||||
}
|
||||
} else {
|
||||
p.verifiedName = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user