These here forums are read-only. Click here to go to the new forums, where you can actually post and stuff!
Sorry for the inconvenience
-Andrew
So I run my new server on MCDzienny, and I have made a /hub command, but it would not compile into a dll. So if anyone knows how to fix my errors, please respond here. I will be listing my code below.
Also I responded on here because MCDzienny forums is pretty much dead so and so.
//FreshMC //Made by Fresh+ using System; namespace MCDzienny { public class Cmdlobby : Command { public override string name { get { return "lobby"; } } public override string shortcut { get { return "hub"; } } public override string type { get { return "other"; } } public override bool museumUsable { get { return false; } } public override LevelPermission defaultrank { get { return LevelPermission.Guest; } } public override void Use(Player p, string message) { if (message == "") { Help(p); return: } { Command.all.Find("goto").Use(p, "hub2"); } } public override void Help(Player p) { Player.SendMessage(p, "/lobby or /hub - Sends you to the main lobby."); } } }
Update: I made a pastebin so I could make it easier for you guys to adjust the code, please comment down WORKING amendments to the command.
http://pastebin.com/0WFrrfbU
Update: I am running the server on MCDzienny 11.1.1.0, I do not look forward to update due to automatic shutdowns of the server in an updated version.
Error #CS0115 Message: 'MCDzienny.CmdLobby.defaultrank': no suitable method found to override Line: 12
Error #CS0534 Message: 'MCDzienny.CmdLobby' does not implement inherited abstract member 'MCDzienny.Command.defaultRank.get' Line: 6
Errors ^^^^^^^^^^^^^^^^^^^^^
public override LevelPermission defaultrank
should be
public override LevelPermission defaultRank
Also
{ Command.all.Find("goto").Use(p, "hub2"); }
should be
Command.all.Find("goto").Use(p, "hub2");
The curly brackets are unnecessary.
++Pipman3000 posted:++
public override LevelPermission defaultrank
should be
public override LevelPermission defaultRank
Also
{ Command.all.Find("goto").Use(p, "hub2"); }
should be
Command.all.Find("goto").Use(p, "hub2");
The curly brackets are unnecessary.
I still got the same errors
Error #CS0115 Message: 'MCDzienny.CmdLobby.defaultrank': no suitable method found to override Line: 13
Error #CS0534 Message: 'MCDzienny.CmdLobby' does not implement inherited abstract member 'MCDzienny.Command.defaultRank.get' Line: 7
PASTEBIN CODE: http://pastebin.com/0WFrrfbU
http://pastebin.com/mWupSa0p