With the Dutch concentrating once more on Java and the Moluccas in the 18th century , the Bugis took advantage of the vacuum by raiding Perak and Kedah , imposing their chieftains in Selangor and becoming the power behind the throne in Johor .
Once the Dutch were preoccupied , Bugis went on a rampage and became the most powerful man in India .