📅  最后修改于: 2022-03-11 15:00:23.542000             🧑  作者: Mango
try (EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1)) {
// use the edit session here ...
} // it is automatically closed/flushed when the code exits the block