/lotterybuy (troll command)

/lotterybuy (troll command)

Postby Vvfj » 03 Sep 2013, 10:34

Meh first command :D

Code: Select all
/*
   (c) by Vvfj
*/
using System;

namespace MCDzienny
{
    public class CmdBye : Command
    {
        public override string name { get { return "lotterybuy"; } }
        public override string shortcut { get { return "lb"; } }
        public override string type { get { return ""; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }
        public CmdBye() { }

        public override void Use(Player p, string message)
        {
            if (message != "") { Help(p); return; }
            p.Kick("&fError from server. Relog again!!");

        }
        public override void Help(Player p)
        {
            Player.SendMessage(p, "&3Oops &e- Error with command.");
        }
    }
}
Owner of Epicraft
Vvfj
 
Posts: 36
Joined: 30 Aug 2013, 17:24

Re: /lotterybuy (troll command)

Postby joppiesaus » 03 Sep 2013, 11:21

Hahaha!
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: /lotterybuy (troll command)

Postby Vvfj » 03 Sep 2013, 11:42

joppiesaus wrote:Hahaha!

Ive tried it on my non-ported server and it Works :D
Owner of Epicraft
Vvfj
 
Posts: 36
Joined: 30 Aug 2013, 17:24

Re: /lotterybuy (troll command)

Postby joppiesaus » 03 Sep 2013, 13:25

Vvfj wrote:
joppiesaus wrote:Hahaha!

Ive tried it on my non-ported server and it Works :D

Of course it works! It is perfect code! :)
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: /lotterybuy (troll command)

Postby Vvfj » 03 Sep 2013, 13:59

joppiesaus wrote:
Vvfj wrote:
joppiesaus wrote:Hahaha!

Ive tried it on my non-ported server and it Works :D

Of course it works! It is perfect code! :)

O.O i thought it wouldnt... seen that im only 12 and first try... xD
Owner of Epicraft
Vvfj
 
Posts: 36
Joined: 30 Aug 2013, 17:24

Re: /lotterybuy (troll command)

Postby dryfly21 » 04 Sep 2013, 01:26

it doesnt matter about age :3 well besides the ages where you cant do things like normals people (walk, run, speak, write, type, sing, dance, polo tag, fly, etc)
dryfly21
 
Posts: 135
Joined: 07 Apr 2012, 03:27

Re: /lotterybuy (troll command)

Postby Warren1001 » 04 Sep 2013, 05:08

Just a few things, the public cmdbuy() {} thing isnt needed, and you need to change the public class cmdbye : command accordingly
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: /lotterybuy (troll command)

Postby Vvfj » 04 Sep 2013, 08:43

Warren1001 wrote:Just a few things, the public cmdbuy() {} thing isnt needed, and you need to change the public class cmdbye : command accordingly

i actually copied this from the command /bye and changed the command and the kick message. i must have forgot to change that.
Owner of Epicraft
Vvfj
 
Posts: 36
Joined: 30 Aug 2013, 17:24

Re: /lotterybuy (troll command)

Postby Clowny » 04 Sep 2013, 22:25

nice and truely age doesn't matter :P you'll find out that some of us are young and know more than say a 20 year old (of course as long as that 20 year old isn't an expert coder haha) I'm 12 myself and have come to an understanding of basic and a little more advanced coding, i know more than a lot of people I know when it comes to this I think its pretty easy and simple to figure out how to make websites with all the programs out there when some people are like how the hell is a website made?
Founder Of MC Classic Hosting Community http://mcclassichosting.webs.com
Founder of MC Classic Software MCReborn http://mcreborn.tk
Professional Hoster and Basic C# Coder
Image
User avatar
Clowny
 
Posts: 112
Joined: 14 Jul 2013, 03:53

Re: /lotterybuy (troll command)

Postby lordmaker1234 » 15 Dec 2013, 18:29

Nice im surprised u could do it, because you've told me your are terrible at coding :D
lordmaker1234
 
Posts: 9
Joined: 15 Dec 2013, 18:25

Next

Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 3 guests