My first thing ive ever made and it actually works
but when i finished it i realized i need to edit the actuall source of mcforge and i dont need the plugin.
but when i finished it i realized i need to edit the actuall source of mcforge and i dont need the plugin.
- Code:
using System;
namespace MCForge
{
public class Welcomtotheserver : Plugin
{
public override string name { get { return "Welcometotheserver"; } }
public override string website { get { return "www.c41337.forumotion.com"; } }
public override string MCForge_Version { get { return ""; } }
public override int build { get { return 100; } }
public override string welcome { get { return "WTTSM loaded"; } }
public override string creator { get { return "C41337"; } }
public override bool LoadAtStartup { get { return true; } }
public override void Load(bool startup)
{
Player.PlayerConnect += new
Player.OnPlayerConnect(Player_PlayerConnect);
}
public override void Unload(bool shutdown)
{
}
public override void Help(Player p)
{
}
void Player_PlayerConnect(Player p)
{
if (p.totalLogins == 1)
{
Player.GlobalMessage("&9Welcome " + p.color + p.name + " &9to the server!");
Player.GlobalMessage("Your current rank is" + p.group.color + p.group.name);
}
}
}
}