with Abu Bakar. British officers were also appointed to oversee the affairs in 1883 and 1887, and were gradually given the powers similar to that of a British resident. After Sultan Ali's death in 1877, the Raja Temenggong of Muar and its village chieftains voted in favour of a merger of Muar with Johor following a succession dispute between two of Sultan Ali's sons. Sultan Ali's oldest son, Tengku Alam, disputed the legitimacy of the chieftains' wishes and staked his hereditary claims over Muar. Tengku Alam instigated the 1879 Jementah Civil War in a bid to reclaim Muar, but was quickly crushed by the Maharaja's forces. During the 1880s, Abu Bakar actively encouraged the Chinese leaders to set up new gambier and pepper plantations in Muar. Meanwhile, Weld's continued efforts to keep Abu Bakar's political influence in check and relations between Johor and Singapore became increasingly strained. Abu Bakar was reportedly said to be increasingly reluctant to accept advice from the British-appointed state lawyers, and increasingly turned to his private lawyers which he had employed. Weld voiced his intent to place a Resident in Johor, which prompted Abu Bakar to make a trip to England in August 1884 to negotiate new terms with the British Colonial Office. The Assistant Under-Secretary of the Colonial Office, Robert Meade, conceded to Abu Bakar's request for an absence of a British Resident in Johor, although Abu Bakar gave an in-principle acceptance for a British adviser in Johor (though none was appointed until 1914). An agreement was drawn up, and Abu Bakar was promised control over internal affairs in exchange for British control over foreign affairs pertaining to the state. Years as Sultan (1885–1895) The Bendahara of Pahang, Wan Ahmad, was proclaimed Sultan in 1881. Abu Bakar, who was weary of the increasingly hostile political environment imposed by Weld, considered the importance of the superior moral authority that was accorded to a "Sultan" than to a "Maharaja". In 1885, Abu Bakar instituted the creation of a state postal and judiciary system modelled along British lines, as well as a military force, the Johor Military Forces (JMF, ) upon his return to Johor. During his stay in London in late 1885, Abu Bakar expressed his desire to Meade for a formal recognition as the Sultan of Johor. He also met up with Queen Victoria, who had become a personal friend of Abu Bakar, within the same