Page 1 of 3
Old warn command?
Posted:
28 May 2013, 02:51
by Stuwie
Before when I ran a server using MCDzienny there was a /warn command now there's not. How come that command isn't 'built it' any more?, Do you have to get it separate, I'm awful with commands :/.
Re: Old warn command?
Posted:
28 May 2013, 02:55
by ismellike
There are 2 in the custom command section, I don't know which one you want.
Re: Old warn command?
Posted:
29 May 2013, 02:06
by Stuwie
/warn (name) (reason) then they just get warned, I found it very helpful
Re: Old warn command?
Posted:
29 May 2013, 02:22
by ismellike
If you havent already found it, here you go.
mcdzienny.cba.pl/viewtopic.php?f=19&t=499
It's the second one (newer version)
Re: Old warn command?
Posted:
02 Jun 2013, 19:21
by Stuwie
Not being noobish or anything xD, But where do you put this code?
Re: Old warn command?
Posted:
02 Jun 2013, 19:30
by ismellike
Here is dzienny's tutorial on how to add a command
[Here]Here is lucas' tutorial
[Here]If you have trouble with those just post the step you are stuck on.
Re: Old warn command?
Posted:
02 Jun 2013, 19:36
by Stuwie
Thank you<3!
And thanks for signing up to Venture forums xD
Re: Old warn command?
Posted:
02 Jun 2013, 19:46
by Stuwie
There's a problem with the warn command, say if I did this /warn stuwie For greifing it will show as ''Stuwie123 warned Stuwie because: for'' But if I did this /warn stuwie for.griefing it will show as ''Stuwie123 warned stuwie because: for.griefing''
It won't allow you to put spaces. And ''mcdzienny'' replyed saying he fixed it :/.
Re: Old warn command?
Posted:
02 Jun 2013, 19:49
by lucasds12
Stuwie wrote:There's a problem with the warn command, say if I did this /warn stuwie For greifing it will show as ''Stuwie123 warned Stuwie because: for'' But if I did this /warn stuwie for.griefing it will show as ''Stuwie123 warned stuwie because: for.griefing''
It won't allow you to put spaces. And ''mcdzienny'' replyed saying he fixed it :/.
Are you using PlatinumKiller's /warn command?
-Lucas
Re: Old warn command?
Posted:
02 Jun 2013, 19:54
by ismellike
Try this one
- Code: Select all
using System;
namespace MCDzienny
{
public class CmdWarn : Command
{
public override string name { get { return "warn"; } }
public override string shortcut { get { return ""; } }
public override string type { get { return "mod"; } }
public override bool museumUsable { get { return true; } }
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
public override void Use(Player p, string message)
{
if (message == "") { Help(p); return; }
Player who = Player.Find(message.Split(' ')[0]);
if (who == null)
{
Player.SendMessage(p, "Player not found!");
}
{
Player.GlobalMessage(p.color + p.name + " %ewarned " + who.color + who.name + " %ebecause : &c" + message.Substring(message.IndexOf(' ') + 1));
Player.SendMessage(who, "Do it again you may be kicked!");
}
}
public override void Help(Player p)
{
Player.SendMessage(p, "/warn - /warn player reason Warns a player for that reason.");
}
}
}
It's the same thing just replaced something
it had message.Split(' ')[1] instead of message.Substring(message.IndexOf(' ') + 1)
p.s. what do you mean by Venture Forums O_O?