/admin chat -All messages will be sent to admins.

/admin chat -All messages will be sent to admins.

Postby HelloWorldCool » 25 Oct 2011, 23:05

Just a suggestion.

Can Anyone create this command?
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Re: /admin chat -All messages will be sent to admins.

Postby Ultima » 21 Nov 2011, 14:17

Code: Select all
/*
using System;

namespace MCDzienny
{
public class CmdAdminmeeting : Command
{
// The command's name, in all lowercase. What you'll be putting behind the slash when using it.
public override string name { get { return "adminmeeting"; } }

// Command's shortcut (please take care not to use an existing one, or you may have issues.
public override string shortcut { get { return "ameet"; } }

// Determines which submenu the command displays in under /help.
public override string type { get { return "other"; } }

// Determines whether or not this command can be used in a museum. Block/map altering commands should be made false to avoid errors.
public override bool museumUsable { get { return false; } }

// Determines the command's default rank. Valid values are:
// LevelPermission.Nobody, LevelPermission.Banned, LevelPermission.Guest
// LevelPermission.Builder, LevelPermission.AdvBuilder, LevelPermission.Operator, LevelPermission.Admin
public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }

// This is where the magic happens, naturally.
// p is the player object for the player executing the command. message is everything after the command invocation itself.
public override void Use(Player p, string message)
{
Command.all.Find( "").Use(p,"spawn");   
Player.SendMessage(p, "You are now in adminmeeting");
}

// This one controls what happens when you use /help [commandname].
public override void Help(Player p)
{
Player.SendMessage(p, "/adminmeeting - Goes into adminchat. (Shortcut ameet)");
}
}
}


Copyright zoids12345

Havent tested it.
User avatar
Ultima
 
Posts: 953
Joined: 19 Aug 2011, 23:45

Re: /admin chat -All messages will be sent to admins.

Postby HelloWorldCool » 21 Nov 2011, 21:36

um looking at the code i'm not going to test it.
Apparently it sends the player to spawn...so that'd just be pressing r.
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Re: /admin chat -All messages will be sent to admins.

Postby Ultima » 21 Nov 2011, 21:38

HelloWorldCool wrote:um looking at the code i'm not going to test it.
Apparently it sends the player to spawn...so that'd just be pressing r.


Hm, havent looked deep inside the code (busy at that time)
User avatar
Ultima
 
Posts: 953
Joined: 19 Aug 2011, 23:45

Re: /admin chat -All messages will be sent to admins.

Postby g0d01w4r99 » 21 Nov 2011, 21:43

Derp. Suggestions into the right forum.
Moved.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /admin chat -All messages will be sent to admins.

Postby HelloWorldCool » 21 Nov 2011, 22:25

g0d01w4r99 wrote:Derp. Suggestions into the right forum.
Moved.

Dude g0d01w4r99, no offence but you are being mean and ridiculous. This is the Suggestions forum!!! :ugeek:
And one more thing! Read before you post! That's your lesson for today. :arrow:
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Re: /admin chat -All messages will be sent to admins.

Postby Ultima » 22 Nov 2011, 10:54

Since i posted the command, it belongs to the commands forum.
User avatar
Ultima
 
Posts: 953
Joined: 19 Aug 2011, 23:45

Re: /admin chat -All messages will be sent to admins.

Postby g0d01w4r99 » 22 Nov 2011, 17:34

HelloWorldCool wrote:
g0d01w4r99 wrote:Derp. Suggestions into the right forum.
Moved.

Dude g0d01w4r99, no offence but you are being mean and ridiculous. This is the Suggestions forum!!! :ugeek:
And one more thing! Read before you post! That's your lesson for today. :arrow:

Cool do not try to fight with me. I moved the topic. You should get your facts right before calling me out and telling me to read before I post.

And yes Ultima, you posted the command, I'm moving it back to the commands forum.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.


Return to Requests for Addon

Who is online

Users browsing this forum: No registered users and 6 guests

cron