void add(Level l, ushort x, ushort z, ushort y, string message, Player sender) { PluginMessageBlock pmb = (PluginMessageBlock)Plugin.getByType(typeof(PluginMessageBlock).Name); if (pmb == null) { Logger.Log(typeof(PluginMessageBlock).Name + " is currently not loaded"); sender.SendMessage(typeof(PluginMessageBlock).Name + " is currently not loaded"); return; } if (message.StartsWith("/") && sender.Group.Permission >= commandBlockPermission) { message = "c:" + sender.Group.Permission + ":" + message.ToHexString(); } else { message = "m" + message; } if (pmb.Add(l, new Vector3S(x, z, y), message)) { sender.SendMessage("Message block added"); } else { sender.SendMessage("Message block updated"); } }