kingdomh56's freebuild ranks
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Custom command

3 posters

Go down

Custom command Empty Custom command

Post  kingdomh56 Sat Jul 30, 2011 10:40 pm

/*
Auto-generated command skeleton class.

Use this as a basis for custom commands implemented via the MCForge scripting framework.
File and class should be named a specific way. For example, /update is named 'CmdUpdate.cs' for the file, and 'CmdUpdate' for the class.
*/

// Add any other using statements you need up here, of course.
// As a note, MCForge is designed for .NET 3.5.
using System;

namespace MCForge
{
public class CmdCommand : 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 "command"; } }

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

// 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)
{
Player.SendMessage(p, "Hello World!");
}

// This one controls what happens when you use /help [commandname].
public override void Help(Player p)
{
Player.SendMessage(p, "/command - Does stuff. Example command.");
}
}
}
kingdomh56
kingdomh56
Admin
Admin

Posts : 230
Points : 328
Reputation : 0
Join date : 2011-07-30
Age : 34
Location : Texas

https://kingdomh56freebuild.forumotion.com

Back to top Go down

Custom command Empty custom comand

Post  kingdomh56 Sat Jul 30, 2011 10:41 pm

if you want to make a custom command here it is. Edit it and past it here. Name your command
kingdomh56
kingdomh56
Admin
Admin

Posts : 230
Points : 328
Reputation : 0
Join date : 2011-07-30
Age : 34
Location : Texas

https://kingdomh56freebuild.forumotion.com

Back to top Go down

Custom command Empty Re: Custom command

Post  rkb27 Tue Aug 09, 2011 9:37 am

i want to but it looks confusing can anyone make me a command where i can move faster or where i can jump higher? btw still cant get on!
rkb27
rkb27
lvl 6
lvl 6

Posts : 311
Points : 428
Reputation : -1
Join date : 2011-07-31
Age : 27

Back to top Go down

Custom command Empty move fast jump etc

Post  Min3CraftMonk3y Tue Aug 09, 2011 10:04 pm

Just download wom
Min3CraftMonk3y
Min3CraftMonk3y
Moderator
Moderator

Posts : 140
Points : 201
Reputation : 1
Join date : 2011-07-30
Age : 26
Location : Ireland

http://WWW.Pornhub.com

Back to top Go down

Custom command Empty Re: Custom command

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum