Add method to get registered destination identifiers.

This commit is contained in:
benwoo1110 2021-03-09 20:05:23 +08:00
parent e3f56f6498
commit 1965aecfba
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import org.bukkit.permissions.PermissionDefault;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -164,4 +165,8 @@ public class DestinationFactory {
this.teleportCommand.addAdditonalPermission(other);
return true;
}
public Collection<String> getRegisteredIdentifiers() {
return this.destList.keySet();
}
}